I am using SAS 9.4 L1M3, I came to know that SUBPIXEL rendering is by default ON for some plot statement like ScatterPlot.
I want to make it OFF for all template and then want to make it enable when necessary, this is why I tried following way;
ODS GRAPHICS ON /RESET=all SUBPIXEL=OFF ANTIALIAS=ON ;
*Grouping a Scatter Plot with yaxis dropline;
PROC TEMPLATE;
define statgraph dropline1;
begingraph ;
EntryTitle "Grouping a Scatter Plot with yaxis dropline" /;
layout overlay ;
ScatterPlot X=Height Y=Weight / subpixel=on primary=true Group=Sex LegendLabel="Weight" NAME="SCATTER";
Dropline X=70 Y=120 / clip=true DropTo=y Lineattrs=GRAPHDATA2;
DiscreteLegend "SCATTER"/ title="Sex";
endlayout;
endgraph;
end;
RUN;
PROC SGRENDER DATA=sashelp.class TEMPLATE=dropline1;
RUN;
But its not working and Log getting following error message;
94 ODS GRAPHICS ON /RESET=all SUBPIXEL=OFF ANTIALIAS=ON ;
95
96 *Grouping a Scatter Plot with yaxis dropline;
97 PROC TEMPLATE;
98 define statgraph dropline1;
99 begingraph ;
100 EntryTitle "Grouping a Scatter Plot with yaxis dropline" /;
101 layout overlay ;
102 ScatterPlot X=Height Y=Weight / subpixel=on primary=true Group=Sex
--
772
102! LegendLabel="Weight" NAME="SCATTER";
ERROR 772-580: Syntax error: expecting a constant or a dynamic.
103 Dropline X=70 Y=120 / clip=true DropTo=y Lineattrs=GRAPHDATA2;
104 DiscreteLegend "SCATTER"/ title="Sex";
105 endlayout;
106 endgraph;
107 end;
WARNING: Object will not be saved.
108 RUN;
NOTE: PROCEDURE TEMPLATE used (Total process time):
real time 0.02 seconds
cpu time 0.03 seconds
WARNING: Errors were produced.
NOTE: The SAS System stopped processing this step because of errors.
Can you please tell me how can I resolve this?, or, Could you please let me know if there have any other thing.
disables subpixel rendering for image output only for this scatter plot.
Sorry, but it is not designed the way you want. You can enable it in general (generarlly a good thing) and disable it for a graph component that is expensive,
disables subpixel rendering for image output only for this scatter plot.
Sorry, but it is not designed the way you want. You can enable it in general (generarlly a good thing) and disable it for a graph component that is expensive,
Thank you very much. So, if we use subpixel option with inline gtl plot statement then we can only make it off from there, isn't it?
Right. Off or Auto.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.