[Thread Prev][Thread Next][Index]
Re: aline
Hi Richard,
Your syntax is not correct but, depending on how the initial plot was
drawn, there is another quirk of ALINE that can cause unexpected
results. Try the following
def axis/x=1:32:1 xax ; def grid/x=xax grd
let dang=atan(1.)/4 ; let ang=(x[g=grd]-1)*dang
let x1=cos(ang) ; let y1=sin(ang)
let x2=2*x1 ; let y2=2*y1
plot/vs/nolab x2,y2
let ipen=mod(i,6)+1
ppl line,1,0,0
repeat/i=1:32 (ppl pen,1,`ipen` ; ppl aline,1,`x1`,`y1`,`x2`,`y2`)
Things to note are as follows
1) the syntax, luckily simpler for aline
2) the way you can change pen color, maybe not of use in your problem
3) most important here is the need for "ppl line,1,0,0" in the above.
The plot/vs/nolab x2,y2 command sets the line style as MARKS ONLY
which appears to stay in force. The command "ppl line,1,0,0"
resets the line style of line 1 to LINE ONLY.
Good luck,
Mick.
PS For further info on PlotPlus and its Ferret-specific enhancements
see the links on the Ferret documentation page
http://ferret.wrc.noaa.gov/Ferret/Documentation/
|--****--****-*---*---***--***--|____spillane@pmel.noaa.gov____|
|-*__---*-----*--*-*--*--*-*--*-|_SCIENCE APPLICATIONS SUPPORT_|
|--***--*-----*-*---*-***--***--|____EPIC/Ferret/PlotPlus______|
|-----*-*-----*-*****-*----*----|__Room 2070 Bldg#3 NOAA/PMEL__|
|-****---****-*-*---*-*----*----|____Phone_:_(206)526-6780_____|
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement