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)

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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