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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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