Date: Mon, 27 Nov 2000 16:13:15 -0500
Reply-To: Richard DeVenezia <radevenz@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Richard DeVenezia <radevenz@IX.NETCOM.COM>
Organization: MindSpring Enterprises
Subject: Re: How to unequally have major tick mark in X-axis?
Meifen:
I don't think there is a way to indicate the minor ticks you want using only
default options of Proc GPLOT.
You will have to use an annotate dataset to control how you want to draw
tick marks;
The following example works, but you will see a 'negative percentage' error
message in the log.
data noise;
do db = -21 to 140;
db ++ int(5*ranuni(0));
readings = int (25 * ranuni(0));
output;
end;
run;
axis1 order = (-21, -7, 0, 28, 56, 84, 112, 140);
data tickAnnotate;
retain xsys '2' ysys '1'; * read the SAS/Graphics manual, annotate
chapters;
length function $8;
do x = -6 to -1;
y = 0; function = 'move'; output;
y = -1; function = 'draw'; output;
end;
run;
proc gplot data=noise anno=tickAnnotate;
plot readings * db
/ haxis = axis1;
run;
--
Richard DeVenezia - SAS Macros and AF Tools, http://www.devenezia.com/
"Xu, Meifen" <mxu@AMGEN.COM> wrote in message
news:2868C7D82610D311A3930008C7CF288B0465137F@red-exch.amgen.com...
> Hi, there:
>
> My x-axis major tick mark will be as follow: -21, -7, 0, 28, 56, 84, 112,
> 140. How I can have the tick mark between -7 to 0 made. Any idea will be
> appreciated.
>
> Thank you in advance,
>
> Meifen
|