BookmarkSubscribeRSS Feed
mknowles
Calcite | Level 5
Is it possible to have two different formats for the Y1 and Y2 axis labels? For example, the Y1 axis labels might have a format of z5.3 and the Y2 axis labels might have a format of 3.1. I can't seem to figure where, if possible, the two formats would be positioned.

Thanks,
Mike
1 REPLY 1
GraphGuy
Meteorite | Level 14
The plot and plot2 axes should display the values using whatever format is assigned in the data set, or you can specify a format in the 'proc gplot' to over-ride that. Here is an example of the latter:

symbol1 v=dot i=join color=red;
symbol2 v=none i=needle color=blue;

proc gplot data=sashelp.stocks (where=(stock='IBM'));
format close dollar5.0;
format volume z10.;
plot close*date=1;
plot2 volume*date=2;
run;

(of course, with the limitation that device=java and device=activex might not support all the SAS formats, if you're using one of those devices)

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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