[Thread Prev][Thread Next][Index]

Re: [ferret_users] problems in generating post scrip file plot



hi -
The third argument to shakey was changed in the last year or two so that a negative value of the size of the numeric labels will change the location of the the labels - to the rightof the shade key if the key is vertical and on the top if it's horizontal.
To change the spacing between viewports, I'd suggest defining a set of viewports using the /AXES qualifier. This sets the location of the viewports on the page according to where the axes are and so you can control exactly how much space there is between the viewports.

Ansley

Yogesh K. Tiwari wrote:

Hello Billy,

Thanks for your answere.

According to the ferret users guide if we keep shakey second argument as zero and third as positive then by default the labels would be above the horizontal key. But its not. When I gave the third argument as negative then the labels gone above.

I tried and experimented in a set view for nine plots , the follwoing key is looking good, but the key position I am not able to handel.
I want it in bottom of all the nine plots i.e. bottom of window or where it is comfortable because above each plot I have to write signature of plot. Is it possible in shakey command to handle the key position in bottom ?

The second thing anoying me is the spacing between each row plots. I have nine plots in three rows and the white space between the two row is looking bit odd.

I tried window size , aspect but could not get the desire one.

If any body can help me, that would be great !

Many thanks,

Cheers,
Yogesh



William S Kessler wrote:

The problem is that you have a negative value for the 3rd argument to
SHAKEY. The 3rd argument is the label size and must be positive. ALso
note that the last 4 arguments, which give the bottom left and top right
corners of the key box, are all relative to the lower left corner of the
*page*, not of any of the plot boxes. Therefore they must also be
positive. I can't think of any reason why any of the SHAKEY arguments
should ever be negative.

The syntax of SHAKEY is:

shakey  [0=nokey,1=key] [0=hor,1=vert] lab-size lab-inc lab-digit
lab-length xlo xhi ylo yhi

A typical use of SHAKEY to make a single key for a set of 4 vertically
stacked plots might be:

shakey 1 1 .12 0 3 9 `1.2+($ppl$xlen)+.4` `1.2+($ppl$xlen)+.7` 1.4
`1.4+4*($ppl$ylen)+0.8`

The "0 3 9" are the defaults, and the last 4 arguments say that the key
extends from 0.4 to 0.7 units to the right of the plot stack, and from
the bottom of the lowest plot to 4 times the plot height +0.8.

Note that the lower left corner of the lowest plot box is at (1.2,1.4).

The only problem I see with SHAKEY is that the distance between the
plots is dependent on the aspect ratio of the window. Therefore it is
impossible to know how tall the key should be to extend over the entire
height of the (in the case 4) plot boxes without experimentation.

Billy K


----- Original Message -----
From: "Yogesh K. Tiwari" <ktiwari@bgc-jena.mpg.de>
Date: Thursday, August 4, 2005 1:24 am
Subject: Re: [ferret_users] problems in generating post scrip file plot


Helo Ansley,

Thanks for reply.

I tried the shakey option as you suggested (ppl shakey 1,0,-0.1,2,,,5,9,5.5,6) but the key is not appearing on the plot. I played with the shakey numbers and I could get the key on the plot.

ppl shakey 1,0,-0.14, 4, 4, 8

Now, how to inlarge this key so it should look comfortable for 9 view plots in a window.

I tried many option with many numbers in shakey command but could not get success.

Also I want the key in horizontal in bottom, not in vertical.

One more problem I am facing.

How to decrease the spacing of each row. There are total three rows and there is much space between each row.

Many thanks,

Regards,
Yogesh






Manke wrote:

Hi Yogesh,
I am just back from a vacation and I see this was never answered.

To

use SHAKEY you need to call the SHADE command with the /SET_UP

option:>

shade/set v1
ppl shakey 1,,0.26, 4, 4, 8
ppl shade

Also, in general when using many plots in a window with the same colorbar, it is a good idea to put just one colorbar somewhere on

the

page rather than one for each plot. The shade key is located

relative

to the current viewport, but it can be drawn on the page outside

the

viewport. So with 9 viewports you might draw one shade key

across the

top, or down one side of the page, and remove it from all the

other

plots. For example to draw it across the top. Note that using

/LEV

without any levels settings will use the levels from the previous

plot.>

 go portraitNxN 3 3

 SET VIEW 1
 shade/nolab/lev=(374,382.5,.5)/set v1
  ppl shakey 1,0,-0.1,2,,,5,9,5.5,6
  ppl shade

 SET VIEW 2
 shade/nolab/lev/set v2
 ppl shakey 0
 ppl shade

 SET VIEW 3
 shade/nolab/lev/set v3
 ppl shakey 0
 ppl shade

 set view 4
 shade/nolab/set v4
 ppl shakey 0
 ppl shade

 set view 5

...





Yogesh K. Tiwari wrote:


Hello Ferret Users,

I want to generate nine plots in a single window and want to

save as
'.ps' file. To do this I am using my attched script.

Some of the ppl commands are not fully worked in the script, for example the 'ppl shakey' to control color bar.

The generated plot color bar looks crowded with data.

I know I am making mistake in issuing commands in my script.

Kindly suggest.

Many thanks,

Regards,

Yogesh

------------------------------------------------------------------

------

set data file1.cdf

set data file2.cdf

set data file3.cdf


set mode metafile del.plt


set window/size=0.7

set windo>>

go portraitNxN 3 3

ppl dfltfnt,@tr

ppl axlsze 0.14 0.14

go margins  " "   " "   1.6 2.3


!*****************Jan03-Feb03*****************************
SET VIEW 1

shade/nolab/lev=(374,382.5,.5) v1[l=1:2@ave,y=-40:40]+16.4

ppl shakey 1,,0.26, 4, 4, 8

ppl shade

go land 7

label ,,-1,90,.13 "LATITUDE"
label "LONGITUDE"
label "Jan03-Feb03,[TM3]"

SET VIEW 2

shade/nolab/lev=(374,382.5,.5) v2[l=1:2@ave,y=-40:40]-23.9

ppl shakey 1,,0.26, 4, 4, 8

ppl shade

go land 7

label ,,-1,90,.13 "LATITUDE"
label "LONGITUDE"
label "Jan03-Feb03,[LMDZ]"

SET VIEW 3

shade/nolab/lev=(374,382.5,.5) v3[l=1:2@ave,y=-40:40]

ppl shakey 1,,0.26, 4, 4, 8

ppl shade

go land 7

label ,,-1,90,.13 "LATITUDE"
label "LONGITUDE"
label "Jan03-Feb03,[AIRS]"
!****************************************

!Similarly the following set view in next time steps.

SET VIEW 4

SET VIEW 5

SET VIEW 6

SET VIEW 7

SET VIEW 8

SET VIEW 9


cancel mode metafile
spawn Fprint -l cps -p portrait -R -o test.ps del.plt


cancel dat>>







--

===========================================
Yogesh Tiwari,
Max-Planck Institute for Biogeochemistry,
Hans-Knoell Strasse 10,
D-07745 Jena,
Germany

Office   : 0049 3641 576 376
Home     : 0049 3641 223 163
Fax      : 0049 3641 577 300
Cell     : 0049 1520 4591 008
e-mail   : yogesh.tiwari@bgc-jena.mpg.de
===========================================













[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement