[Thread Prev][Thread Next][Index]

Re: [ferret_users] multi-stereographic plots



Hi Manfredi,
I have several suggestions. The main one is to issue the SET VIEWPORT command just before starting the plotting commands. It turns out that when your run the the mp_aspect.jnl script, it issues a SET WINDOW/ASPECT= command, and this turns off the viewport setting that you made. This is something I had not been aware of, and it only seems to happen with /ASPECT and not other SET WINDOW options. We'll have to see if this is a bug, or what. Try this sequence to see this:

set viewport ul
show viewport ! shows "current viewport is UL"
set window/asp=2
show viewport ! shows "current viewport is NONE"

Also, I notice that you are using a SHAKEY command to move the shade key. This is a PPLUS setting, and so it only takes effect after a FILL/SET (or shade/set) command.

Last, the comments at the start of the "go margins" script suggest that it should be called after any calls to set the viewport. You might want to experiment with the placement of the call to this script, or decide whether you want to call it at all.

Note that you could do the contour lines over the fill plot with a single command FILL/LINE if you wish.

So, your script should work if you do things in this order (removing the /LEVELS and /PALETTE qualifiers from your example commands just for easier reading)

go mp_stereographic_north.jnl

set grid DALBEDO
go mp_aspect
set region/x=0:360/y=65:90

set viewport ul
fill /set /noaxis /nolabels DALBEDO[l=@ave], x_page, y_page
ppl shaset,1,0
ppl fill

contour /over /noaxis /nolabels DALBEDO[l=@ave], x_page, y_page

go mp_fland 120 gray
go mp_graticule 0 360 30 65 90 10

set viewport ur
(same commands as above)





Manfredi Manizza wrote:

Dear Ferreters,

I would like to
have a multiple plot with stereographic
plots of the polar oceans.

I am testing a simple case here using Ferret predefined
viewports (ul, ur, ll, lr) and repeting the same plot.

With these commands below it plots the first figure as upper left
and then it should plot the same in the upper right subwindow.

What it does in practice is opening a window, plotting the first figure
and then cancelling the same and plots the same figure in the same
window but as before it takes the whole window.

According to that it does not work as planned.

Is there a way to fix it or it is basically impossible
to have multiple stereographic plots with Ferret ?

Thanks in advance for your help.

Manfredi.





set viewport ul

go mp_stereographic_north.jnl

go margins .2, .6, .2, .2

set grid DALBEDO

go mp_aspect

set region/x=0:360/y=65:90

ppl shakey 1,0,
fill /noaxis /nolabels /pal=light_centered
/lev=(-10,10,1)(-20)(20)(-30)(30)(-40)(40)(-50)(50)(-60)(60)
DALBEDO[l=@ave]*100, x_page, y_page
contour /over /noaxis /nolabels /pal=light_centered
/lev=(-10,10,0.5)(-20)(20)(-30)(30)(-40)(40)(-50)(50)(-60)(60)
DALBEDO[l=@ave], x_page, y_page
go mp_fland 120 gray

go mp_graticule 0 360 30 65 90 10

set viewport ur




Manfredi Manizza
PhD Student
School of Environmental Sciences
University of East Anglia
NR4 7TJ, Norwich
United Kingdom
Telephone : +44-(0)1603-591315
FAX : +44-(0)1603-591327
Email : m.manizza@uea.ac.uk



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement