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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 628 views
  • 0 likes
  • 2 in conversation