Proc GPLOT - Centering multi-line y-axis labels

  • Follow


For proc gplot, in theory you can make a multi-line y-axis label as
follows:

axis2 label = (j = center "Line 1 of label" j = center "Line 2 of
label") length = 5 in;

However this doesn't seem to work (I'm using v. 9.1 and Windows XP).
The first line is usually centered, but to center the second line I
have to experiment with padding leading and/or trailing spaces -- by
trial-and-error in a slow process.

Has anyone else noticed this and is there a solution or workaround?

Thanks,

John Uebersax
www.john-uebersax.com
0
Reply jsuebersax (61) 12/18/2009 5:12:54 PM

http://support.sas.com/kb/00/615.html

axis1 label=none;
title2 f="Arial" A=90 R=0 "Line 1 of Label" j=c 'Different Length Line
2 of label';
proc gplot data=sashelp.class;
   plot weight*height / vaxis=axis1;
   run;
   quit;

On 12/18/09, John Uebersax <jsuebersax@gmail.com> wrote:
> For proc gplot, in theory you can make a multi-line y-axis label as
> follows:
>
> axis2 label = (j = center "Line 1 of label" j = center "Line 2 of
> label") length = 5 in;
>
> However this doesn't seem to work (I'm using v. 9.1 and Windows XP).
> The first line is usually centered, but to center the second line I
> have to experiment with padding leading and/or trailing spaces -- by
> trial-and-error in a slow process.
>
> Has anyone else noticed this and is there a solution or workaround?
>
> Thanks,
>
> John Uebersax
> www.john-uebersax.com
>
0
Reply iebupdte 12/18/2009 7:26:13 PM


1 Replies
266 Views

(page loaded in 0.049 seconds)

Similiar Articles:








7/21/2012 8:26:14 PM


Reply: