the graphs in the Results Viewer have a nice color but my pdf file is black and white.
code:
ods pdf file="scores\Data files for researchers - SCDE\2021\plots of sdoc_sc_top10.pdf" ;
PROC sort data=dst10_math;
by demoid;
run;
/* YAXIS LABEL = 'Rain in Inches' GRID VALUES = (0 TO 10 BY 1); */
proc sgplot data=dst10_math;
by demoid;
styleattrs
datacontrastcolors=(red green blue);
vbar testgrade / response=mathpct34 group=level groupdisplay=cluster datalabel=mathpct34;
xaxis display=(nolabel noline noticks);
yaxis display=(nolabel) values=(0 to 80 by 10) ;
run;
ods pdf close;
Style = mmh_basic_blue1 appears to be a custom style. Did you define the colours for graphs or which style does it inherit from?
@GreggB wrote:
the graphs in the Results Viewer have a nice color but my pdf file is black and white.
code:
ods pdf file="scores\Data files for researchers - SCDE\2021\plots of sdoc_sc_top10.pdf" style=mmh_basic_blue1; PROC sort data=dst10_math; by demoid; run; /* YAXIS LABEL = 'Rain in Inches' GRID VALUES = (0 TO 10 BY 1); */ proc sgplot data=dst10_math; by demoid; styleattrs datacontrastcolors=(red green blue); vbar testgrade / response=mathpct34 group=level groupdisplay=cluster datalabel=mathpct34; xaxis display=(nolabel noline noticks); yaxis display=(nolabel) values=(0 to 80 by 10) ; run; ods pdf close;
my apologies. It should not be there. When I delete it, nothing changes.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.