[Thread Prev][Thread Next][Index]

Re: [ferret_users] eps and gif are different



Thanks Edward, It worked.

--
Regards,
Nitin Patil


On Tue, Feb 17, 2015 at 11:10 PM, Edward Cokelet - NOAA Federal <edward.d.cokelet@xxxxxxxx> wrote:
Nitin, I have not looked at your .jnl file, but here is some code that works for me.  The order seems to be important, e.g. close the plot buffers, make the postscript file, then make the gif.

Here’s some pseudocode:


set mode metafile my_plot.plt           ! Assigns name to the ferret metacode file that will hold your plot
.
.
.

! Execute all your code here
.
.
.

shade my_2d_var    ! or whatever plotting commands you wish to execute

ppl clsplt                                                                                      ! Close out the plotting buffers
sp Fprint -R -l cps -p portrait -o my_plot.ps my_plot.plt               ! This runs Fprint external to ferret to turn your .plt file into a .ps file
frame/format=gif/file=my_plot.gif                                               ! This stores a screen shot of the plot in the currently open window as a .gif file

------------------------------------------------------------------------------------------
Edward D. (Ned) Cokelet, Ph.D. Oceanographer
NOAA/PMEL                         off:  (206) 526-6820
7600 Sand Point Way NE     fax: (206) 526-6485
Seattle, WA 98115-6349

Edward.D.Cokelet@xxxxxxxx

The contents of this message are mine personally and do not necessarily reflect any position of the Government or the National Oceanic and Atmospheric Administration.








[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement