Hi! I have used PROC SGPLOT to produce some nice graphs.
In the title statement I used "Albany AMT" - a tips from SAS written in the Log. Looks REALLY nice!
Then I download this as a flat file "mygraph.svg" and include it in standard MsWord (Office 365).
BUT now it does not look equally nice.
It turns out that Word does NOT support Albany AMT. Instead it uses Arial (Arial MSFontService).
The file mygraph.svg is a textfile, which can be viewed.
MY QUESTION: What Font shall I use in PROC SGPLOT in SAS Studio, so a file mygraph.svg is produced,
which then looks nice and good in MsWord on the PC?
The importance is the look in MsWord (not that it lokks nice in SAS Studio).
(A little like a problem of "merging two files with allowed fonts". Only those obs that are in both files are accepted.)
MANY THANKS in for any response!
p.s. %SGANNO macros are great!
"options nofontembedding;" does NOT solve the problem with the font.
The svg-file comnatins the name of the font - and that font is not available on MsWord.
BUT - "Nice try" - a VERY GODD Idea. Many thanks. /Br Anders
Hi! I tested BOTH RTF and PNG. The code below produces both.
In Word I think that RTF is better.
xval=1; yval=2; output;
xval=3; yval=6; output; run;
Title1 "RTF_PNG " height=2 font="Albany AMT";
ods rtf file='/home/anders.skollermo/RTF_PNG.rtf' dpi=300 ;
ODS LISTING GPATH= "/home/anders.skollermo" image_dpi=300;
ODS GRAPHICS / ANTIALIASMAX= 20000 LINEPATTERNOBSMAX= 20000 height= 480px
width= 640px outputfmt= PNG imagename= "RTF_PNG";
proc sgplot data= work.test NOautolegend;
series x= Xval y= Yval;
ODS RTF CLOSE;
Hi! The log in SAS Studio:
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.
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.