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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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