Data visualization with SAS programming

Inline formatting axis tick values in ODS graphics

Reply
Occasional Contributor
Posts: 19

Inline formatting axis tick values in ODS graphics

Hi all,

I am trying to format some of my axis values in bold, can I use some inline formatting in the variable so that it appears bold on the axis?

thanks,
Alain
SAS Employee
Posts: 963

Re: Inline formatting axis tick values in ODS graphics

Which proc are you using?
And by "axis values", do you mean the axis label text, or the individual values in the tickmarks?

If you're using the traditional SAS/Graph procs (such as 'gplot'), you can change the font settings in the axis label as follows...


axis1 label=(font="arial" 'normal text ' font="arial/bold"
'bold text ' font="arial" 'plain again');

proc gplot data=sashelp.class;
plot height*weight / haxis=axis1;
run; Message was edited by: Robert Allison @ SAS
Occasional Contributor
Posts: 19

Re: Inline formatting axis tick values in ODS graphics

Hi Robert,

I am working in ODS graphics not SAS/graph using GTL. I want to have selected tick values in bold, so I may need to adapt the values in the data set to do some inline formatting but I don't see how to change the formatting.

Thanks,
Alain
SAS Employee
Posts: 963

Re: Inline formatting axis tick values in ODS graphics

Ahh, ok! Well, if you don't find a way to do it in ODS Graphics, here's how to do it with the traditional SAS/Graph procs. The following example shows how to make the 3rd and 5th tickmark text (t=3 and t=5) bold ...


axis1 value=(t=3 font="arial/bold" t=5 font="arial/bold");

proc gplot data=sashelp.class;
plot height*weight / haxis=axis1;
run;
Occasional Contributor
Posts: 19

Re: Inline formatting axis tick values in ODS graphics

Thanks Robert,

We are really venturing into 9.2 ODS graphics as our new platform for graphics generation and we would like to be able to do all of our graphs in it. If you want I could send you an example of what I want to do.

thanks again,
Alain
Post a Question
Discussion Stats
  • 4 replies
  • 144 views
  • 0 likes
  • 2 in conversation