Data visualization with SAS programming

device=png axis label angle=90 does not work with STP

Accepted Solution Solved
Reply
Regular Contributor
Regular Contributor
Posts: 156
Accepted Solution

device=png axis label angle=90 does not work with STP

Dear all,

I'd like to have an angle of 90 degrees for the label of my plot. I have decive=png and I use SAS 9.2 on a UNIX server within the SAS portal.

please look at this code which I have in an STP:

ods html file=_webout(no_top_matter no_bottom_matter) path=&_TMPCAT (url=&_REPLAY);

goptions device=png;

proc gplot data=sashelp.class;

     plot height*weight / vaxis=axis1;

     axis1 label=("please change angle" angle=90);

run;

quit;

ods _all_ close;

The angle is not changed. But when I run this code in the Enterprise Guide it is fine with the angle.

When I run the same code in the STP but with device=javaimg the angle is shown correctly.

There is a similar post on the internet. Seems I'm not the only one with the problem.

Can anybody help? I'd like to use png but the angle is the only problem I have now.

Best wishes

Eva


Accepted Solutions
Solution
‎04-09-2013 10:08 AM
SAS Employee
Posts: 967

Re: device=png axis label angle=90 does not work with STP

Put the angle before the text ...

proc gplot data=sashelp.class;

     plot height*weight / vaxis=axis1;

     axis1 label=(angle=90 "please change angle");

run;

(If it works in dev=javaimg, that implementation of the feature is a bit 'non-standard')

View solution in original post


All Replies
Solution
‎04-09-2013 10:08 AM
SAS Employee
Posts: 967

Re: device=png axis label angle=90 does not work with STP

Put the angle before the text ...

proc gplot data=sashelp.class;

     plot height*weight / vaxis=axis1;

     axis1 label=(angle=90 "please change angle");

run;

(If it works in dev=javaimg, that implementation of the feature is a bit 'non-standard')

Regular Contributor
Regular Contributor
Posts: 156

Re: device=png axis label angle=90 does not work with STP

It works!

Thanx a lot. Funny implementation.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 257 views
  • 0 likes
  • 2 in conversation