BookmarkSubscribeRSS Feed
Almighty
Fluorite | Level 6

Hi 

I am not able to get the gridlines on Yaxis, though I was using griddisplay=on.  And also; how can I customize the grid line color/pattern/line size?

 

Thanks in advance.

 

proc template;
define statgraph plotlab;
dynamic _byval2_;
begingraph;
layout overlay / xaxisopts=(display=(label ticks tickvalues) label='Visit' tickvalueattrs=(size=8pt)
linearopts=(tickvaluelist=(&incrm_x ) viewmin=1 viewmax=&maxvis_x TICKVALUEFITPOLICY=ROTATE) )
yaxisopts= (griddisplay=on label='Subject' display=(label ticks tickvalues) tickvalueattrs=(size=8pt));

scatterplot x=visitnum y=sub_vis / group=wma 
markerattrs=(size=10px) name='a' ;

discretelegend 'a' / title = '' halign=center valign=bottom ;

endlayout;
endgraph;
end;
run;

2 REPLIES 2
ballardw
Super User

With graphics questions it is a good idea to include the SAS version you are using as options change (increase) with every release.

 

 

The GRIDATTRS option should control the appearance of grid lines and defaults to the active style's GraphGridLines style element.

 

I would be tempted to examine your active style for the value of the GraphGridLines style element. Perhaps for some reason it is using the same as the background color so the grids are drawn just not visible.

Almighty
Fluorite | Level 6

Hi Ballardw,

 

I am using SAS 9.4

 

Thanks

 

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1347 views
  • 0 likes
  • 2 in conversation