BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
zahir
Fluorite | Level 6

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.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenKuhfeld
Rhodochrosite | Level 12

AUTO

The system sets subpixel rendering OFF for this scatter plot, unless SUBPIXEL=ON is specified in the BEGINGRAPH statement or in an ODS GRAPHICS statement. In that case, subpixel rendering is ON for this scatter plot.

OFF

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,

View solution in original post

3 REPLIES 3
WarrenKuhfeld
Rhodochrosite | Level 12

AUTO

The system sets subpixel rendering OFF for this scatter plot, unless SUBPIXEL=ON is specified in the BEGINGRAPH statement or in an ODS GRAPHICS statement. In that case, subpixel rendering is ON for this scatter plot.

OFF

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,

zahir
Fluorite | Level 6

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?

WarrenKuhfeld
Rhodochrosite | Level 12

Right.  Off or Auto.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 953 views
  • 4 likes
  • 2 in conversation