[Thread Prev][Thread Next][Index]
Re: putting grids
Hi Joseph,
There is a script, graticule.jnl which makes a PPLUS
setting to draw the axis tic marks all the way across your
plot. So, these commands draw a grid:
go graticule
fill/hlim=20.0:120.0/vlim=-40:30.0 (dep*100)
But, the lines are too coarse for what you want. If you look
in the Users Guide index, under "axes, customizing" you will
see that /HLIM and /VLIM can take a third argument, delta,
to control the tic marks on the axes. Now if you use 1 for
the delta on both axes,
go graticule
fill/hlim=20.0:120:1/vlim=-40:30:1 (dep*100)
you will have the grid on your plot, but the numeric axis labels
are too dense! In the same part of the Users Guide is a section
called "PPLUS axis commands". PPL AXLINT lets you
control the label interval on the axes. So, putting it all together,
this does what you need:
go graticule
fill/nolab/set/hlim=20.0:120:1/vlim=-40:30:1/set dep
ppl axlint,10,5
ppl fill
go fland
Sudheer Joseph wrote:
> Dear users,
> I am using the following script for
> obtaining a ferret graph, Can any one tell me how can
> I get 3by 3 digree (Lat& Long)or 1 by 1 digree grids
> overlied on to the graph
> sincerely
> sudheer
>
> set mode metafile
> set win/asp=0.6
> ppl pen 0,1
> define viewport/xlim=.05,.95/ylim=0.05,1 thisis
> set viewport thisis
> define axis/x=0.0E:359.0E:1/units=degrees lon
> define axis/y= 90.0S: 90.0N:1/units=degrees lat
> define grid/x=lon/y=lat bath
> file/order=xy/format="(10f8.2)"/var=dep/col=360/skip=0/grid=bath
> "indian.den"
> fill/set/key/nolab/palette="rainbow.spk"/hlim=20.0:120.0/vlim=-40:30.0/
> levels="(0,100,10)(0,400,10)" (dep*100)
> ppl ylab
> ppl xlab
> ppl fill
> go fland 20
>
> =====
> *****************************************************
> Dr. Sudheer Joseph
> Scientist-B, Indian National Centre for Ocean Information Services, Plot#3, Nandagiri Hills Layout, Jubilee Hills
> Hyderabad, India Pin: 500 033
> Ph:+91 040 3553542(O)3006190(R)
> Fax:+91 040 3551096
> E-mail:sjo@123india.com ; callsjo@yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
--
Ansley Manke Pacific Marine Environmental Laboratory Seattle WA (206)526-6246
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement