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;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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