[Thread Prev][Thread Next][Index]
Re: Questions about viewport
Hi Ding,
You might also explore the DEFINE VIEWPORT/AXES
option, which gives you complete control over where the
viewports and their axes are.
Ansley Manke
Chi Ding wrote:
> Hi everybody
> I'm drawing a plot which includes multiple viewport vertically.
> Suppose there are 3 viewports, each of them takes up the full width of
> the screen, and 1/3 of the screen vertically.
> The problem is that the more viewports I defined, the smaller each
> of them vertically. If the number of viewports is over 4 or 5, I can
> hardly see the vertical scale of the picture because it's too small.
> How can I make the picture bigger? My code is attached below.
> Thanks a lot, Ding
>
> ! Main ferret script
> ! Ferret v3.0 *jd* 3.93/8.96
> ! Description: create a filled-area test plot
>
> let varnum = $1
> let dataset= varnum+2
> let depth = varnum+3
> let t_lo = varnum+4
> let t_hi = varnum+5
>
> use $`dataset`
> if `varnum eq 1` then
> go Mooring_do_plot 0 1 0 1 $`varnum+1` $`depth` $`t_lo` $`t_hi`
> endif
>
>
> if `varnum gt 1` then
> repeat/l=2:`varnum+1` (go Mooring_do_plot 0 1 `(l-2)/varnum`
> `(l-1)/varnum` $`l` $`depth` $`t_lo` $`t_hi` $`dataset`)
> endif
> exit
>
> !Here is the script Mooring_do_plot
> DEFINE VIEWPORT/XLIM=$1,$2/YLIM=$3,$4 myview
> SET VIEWPORT myview
> plot/z=$6/t=$7:$8 $5
>
>
--
Ansley Manke Pacific Marine Environmental Laboratory Seattle WA
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement