BookmarkSubscribeRSS Feed
asmits
Calcite | Level 5
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
4 REPLIES 4
GraphGuy
Meteorite | Level 14
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
asmits
Calcite | Level 5
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
GraphGuy
Meteorite | Level 14
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;
asmits
Calcite | Level 5
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

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