You mean like so:
[pre]
proc sort data=kon;
by state;
run;
axis1 order=10000 to 25000 by 5000;
axis2 order=('Gävle' 'Mora' 'Norrköping' 'Sala' 'Stockholm') ;
proc boxplot data=kon;
where gender=1;
plot salary*state /name='A' vaxis=axis1 haxis=axis2 cboxes=red;
run;
proc boxplot data=kon;
where gender=2;
plot salary*state /name='B' vaxis=axis1 haxis=axis2 cboxes=blue;
run;
ods graphics on;
goptions gaccess='sasgastd > nul';
proc greplay igout=work.gseg tc=sashelp.templt nofs;
template=whole;
treplay 1:A
1:B name='C' ;
quit;
ods graphics off;