BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
1 REPLY 1
rab24
Calcite | Level 5
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;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1101 views
  • 0 likes
  • 2 in conversation