11-06-2017 03:31 PM
Using SGPLOT, is there a way to change to rotation angle to a specified angle? It appears that the default is 45 degrees. I'm using a VBARPARM and a SERIES line on the chart. I've looked into the documentation and maybe I'm just not seeing something. I should think that should be easy?
11-06-2017 03:41 PM
XAXIS statement in SGPLOT provides rotation values of 0 degrees (horixontal), 90 degreees (vertical), and +/-45 degrees (diagonal or 'diagonal2').
The annotation facility allows arbitrary rotation of text, but might be more effort than you want to deal with.
11-07-2017 08:15 AM
Thanks for your response.
The reason I'm wanting this is because my xaxis labels are quite long, and when they are angled 45 degrees, it makes the whole graph look like it's shifted to the left. Yes, I could mess with the fitpolicy and the fonts size with LABELATTRS but that still doesn't accomplish what I'm looking for. I thought there'd be a way to change the angle, but I guess not.
11-07-2017 08:24 AM
I assume you mean the x-axis tick values. If your tick values are very long, it is often better to use a HBAR, or place the category variable on the y-axis, and response on the x-axis. Please see last graph in this article.
11-07-2017 08:27 AM
Hi, thanks. That's certainly an idea. (And yes, I did mean x tick mark values ) My only drawback to that is that this a combination of a bar chart and a series plot. Maybe I can work something out on that.
Thanks for the idea!
11-07-2017 01:04 PM - edited 11-07-2017 01:05 PM
If you attach an image of your graph, better suggestions could be made. These often depend on the number of categories, and other details. Providing a working program with sample data is even better.
11-07-2017 03:03 PM
Unfortunately it has company sensitive data in it and changing this data for the graph would take longer than it may be worth. I'll just go with it for now. There have been some good suggestions.