Desktop productivity for business analysts and programmers

Keep scale on one of two axes

Reply
N/A
Posts: 0

Keep scale on one of two axes

I have multiple graphs that are generated by PROC GPLOT and I would like to keep the same scale on all of the graphs for the y-axis but not the x-axis. Does anyone know how to do this?

Thanks,
Brad
Contributor
Posts: 35

Re: Keep scale on one of two axes

If you are using the EG GUI, you specify the major tick marks when you create a graph. To specify that the scale is 1-3 will put the following ORDER command into your code.

Axis1 ORDER=(1 2 3) ;
or
Axis1 ORDER=(1 to 3 by 1);

If you are running multiple plots through code, just make them all reference the same axis which in the code for a vertical bar graph below is referenced by RAXIS.

PROC GCHART DATA=WORK.Sorted;
VBAR3D PFL_TYP_CD /
SHAPE=BLOCK FRAME TYPE=FREQ
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2;
RUN; QUIT;
Ask a Question
Discussion stats
  • 1 reply
  • 102 views
  • 0 likes
  • 2 in conversation