[Thread Prev][Thread Next][Index]

Re: Plotting Graphs (a value VS Longitude)



Hi Bruce,
	You can always impose Longitude and Latitude style labels
on axes (even if the underlying axes were not defined as geographic)
by using the "ppl xfor" and "ppl yfor" commands.

For example if the x-values in the plot/vs can be interpreted as
east longitudes (range 0:360 or -180:180)

set view upper
let/title="my-elons" xval={  0, 60,120,180,240,210,180}
let/title="my-lats"  yval={-60,-30,  0, 20, 40, 60, 80}
plot/vs/line=1 xval,yval ! axes are not geographically styled
ppl xfor,(i3,''lone'') ; ppl yfor,(i2,''lat'') ; ppl plot

There is a version "ppl xfor,(i3,''lon'')" which handles the
case where the x-values are WEST longitudes. Take care though
as in this case you may want to reverse the xaxis range to
get the chart oriented in the normal way

set view lower
let/title="my-wlons" xval={  0, 60,120,180,240,210,180}
plot/vs/line=1/set xval,yval
ppl xaxis,240,0,-20 ; ppl xfor,(i3,''lon'') ; ppl plot

Good luck,
Mick

|____Mick.Spillane@noaa.gov____|
|__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