Create legend definitions for the graphs.


legend1 label=none value=("Male" "Female") Position=(right middle outside) across=1;
legend2 label=none value=("Male" "Female");