BookmarkSubscribeRSS Feed
Iryna1
Fluorite | Level 6

How can I make x axis values look bigger? Code is provided below:

 

goptions reset=all
colors=(black) device=SASEMF target=CGMOF97L gunit=pct hby=3 fby=hwcgm005 rotate=landscape xmax=24cm
ymax=17cm xpixels=1800 ypixels=1300 autosize=on gsfmode=append goutmode=append htext=2.0 htitle=3
ftext= 'simplex' ftitle= 'simplex' noborder;


title2 j=c h=2 "Number";

axis1 label = (a=90 justify=center h=2 "Concentration")
%if &paramn. eq 700 or &paramn.= 710 %then %do;
order = (0 to &ordx. by 100)
%end;
%if &paramn. eq 100 %then %do;
order = (0 to &ord. by 50)
%end;

minor = NONE
offset=(8, )
;

axis2
label = (justify=center " " h=2 justify=center )
major = NONE
minor = NONE
value = (h=2.0)
%if &paramn. eq 700 or &paramn.= 710 %then %do;
order = (-1 to 120)
%end;
%if &paramn. eq 100 %then %do;
order = (-1 to 24)
%end;
origin= (10 pct)
length= 80 pct
/* split='|'*/
offset=(,2 cm)
;

%if &paramn. eq 700 or &paramn.= 710 %then %do;
symbol1 interpol=join value=dot value=square height=0.1in cv="&color1" ci="&color1" line=1 width=1;
symbol2 interpol=join value=dot height=0.1in cv="&color2" ci="&color2" line=2 width=1;
legend1 across=2 label=NONE
value=(height=1.5 justify=c "&trt2. (N=&tr1)" "&trt1. (N=&tr2)");
%end;

%if &paramn. eq 100 %then %do;

symbol1 interpol=join value=dot value=square height=0.1in cv="&color1" ci="&color1" line=1 width=1;
legend1 across=1 label=NONE
value=(height=2.0 justify=c "&trt2. (N=&tr1)");
%end;


footnote3 h=2.0 j=left "&progft.";

proc gplot data=test anno=anno_tick;
plot aval*col=trtan / legend=legend1 vaxis=axis1 haxis=axis2;
format col _colfmt.;
run;
quit;

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Hi,

 

Sorry, going to sidestep your question here and recommend you move to SGPLOT or Graph Template Language.  You will find it simpler coding, and far more options to alter the outputs (gplot is the old graph output system).  You can find plenty of help and examples here:

http://blogs.sas.com/content/graphicallyspeaking/

Many of which will cover what you are looking for.

Iryna1
Fluorite | Level 6

Hi, 

Thanks! Honestly I like sgplot much more too 🙂 But time is very limited for this task, so I'd prefer to update gplot instead of rewrite it.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 2 replies
  • 877 views
  • 0 likes
  • 2 in conversation