BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
vandhan
Fluorite | Level 6

Hi,

 

I don't see any option for rotating axis labels in sgplot wherein gplot I have rotate and angle option but here I don't see any option.

 

 yaxis label="Value"   min=0 max=30 ;

 

I want to rotate label "Value" vertical. currently, it is horizontally

 

Please help.

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

fitpolicy=rotate

 

That should be added to your axis statement.

 

Any graph question you have your first port of call should be this website:

http://blogs.sas.com/content/graphicallyspeaking/

 

Which for instance has:

https://blogs.sas.com/content/graphicallyspeaking/2016/12/19/axis-values-display/

 

And thousands of other examples.

View solution in original post

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

fitpolicy=rotate

 

That should be added to your axis statement.

 

Any graph question you have your first port of call should be this website:

http://blogs.sas.com/content/graphicallyspeaking/

 

Which for instance has:

https://blogs.sas.com/content/graphicallyspeaking/2016/12/19/axis-values-display/

 

And thousands of other examples.

tb1
Calcite | Level 5 tb1
Calcite | Level 5

fitpolicy=rotate statement appears specific to X axis.

I wonder if someone could let me know how to rotate Y axis tick values.

Jay54
Meteorite | Level 14

SGPLOT or GTL does not have a FitPolicy to rotate the y-axis values.  Normally, this is not needed as the values are horizontal, and cause minimal collisions.  Rotatin them may not help, and is harder to read.  Sometimes there are too many values on the y-axis so the spacing available for each value is less then the height of the value font, and they collide.  In this case, only some values are displayed.  To prevent this, you can set FitPolicy=none.

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
  • 3 replies
  • 14732 views
  • 0 likes
  • 4 in conversation