[Thread Prev][Thread Next][Index]
Re: "%XAXIS" command & 'nmstc' argument
Dear Ferretters,
It does turn out from the discussion with Ansley
Manke that,there's a bug in %xaxis(in 'nmstc' argument) and it is
to be fixed. He suggested a viewport method to get the axis in the
required position with required number of small tics and it suited
well for my requirement. Here is the trick for your reference....
1.define two viewports, one larger than the other in the Y direction.
2.make a plot in the larger viewport which has nothing in it but an
X axis, by shading a constant variable with the white palette.
3.then plot the data in the smaller viewport, placing the title
separately so that it is below the first axis
use coads_climatology
! Define two viewports, one larger in the y direction and
! the same size in x.
def view/xlim=0:1/ylim=0:1 v1
def view/xlim=0:1/ylim=.05:1 v2
! make a plot in the larger viewport having nothing but
! the X axis. Use axnmtc to set the tics on the X axis.
ppl axnmtc, 1,0
set view v1
shade/axes=0,1,0,0/l=1/pal=white/nolab/nokey 0*x[gx=sst] + 0*y[gy=sst]
! Now plot the data in the smaller viewport, placing the
! title below the X axis.
set view v2
shade/l=1/axes=1,0,1,1/title=" " sst
label/nouser `($ppl$xlen)/2`,-1.2,0,0,0.18,"@CR`sst,return=title`
(`sst,return=units`)"
With Regards
Jaison Kurian
On Fri, 12 Dec 2003, Jaison Kurian wrote:
> Dear Ferretters,
> In normal case we can set the number of small tics
> between the large tics on an axis by using PPLUS command 'AXNMTC'. In the
> case of %XAXIS command we have an argument 'nmstc'(5th one) to set the
> number of small tics. It is confusing me why ferret is not taking that
> argument while making the plot. Whatever may be the values given, no
> effect. I can controll the label intervals of large tics by
> a combination of hlimits qualifier in plot command and 'lint'
> argument (6th one) in %XAXIS. But how to make ferret to take the 'nmstc'
> argument ? My script is somewhat like this...
>
> plot/set/over/hlim=32:36:0.5 salinity[d=2]
> PPL %XAXIS/nouser,32,36,0.5,4.0,2,2.0,,,,(i2)
> ppl window off
> ppl plot/over
>
>
> I would like to know one more thing.....does there is any other way to
> shift the axis like what we can do by the argument 'y' (4th one) in
> %XAXIS ?
>
> thanks ....in advance
>
> Jaison Kurian
>
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement