[Thread Prev][Thread Next][Index]

Re: [ferret_users] figure window can not save the full figure



Dear Ryo,
G'day

I had a offline conversation with Pratik, who was facing the same problem. For me it is working fine now. These are the steps that I followed in ubuntu 20.04 LTS.

Installing pyferret from conda (conda create -n FERRET -c conda-forge pyferret ferret_datasets --yes)
activate the FERRET environment (conda activate FERRET)
now for the first instance I issued the command ( pyferret -nojnl -nodisplay)
Then I save the colads_climatology figure (e.g.) and yes you are right I can not save .JPEG format in -nodisplay mode but I can save .PNG file in (-nodisplay mode). It is now able to save the figure file correctly.
Then I exit all the linux terminals and restarted it again.
This time after activating FERRET environment I issued only (-nojnl mode)
And magically now my Pyferret is working fine and able to save full figure file in my desired format.

I don't know what was wrong and how it got corrected. But it seems working for me. Hope this helps.

Cheers, Saurabh

On Mon, Aug 24, 2020 at 1:00 AM Ryo Furue <furue@xxxxxxxxxx> wrote:
Hi Saurabh,

On Sat, Aug 22, 2020 at 7:51 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
use coads_climatology
fill sst[l=1]
frame/file=sst.jpeg

and it is saving just a portion of the plot.

I confirm the behavior.  I thought the problem was limited to PDF, but PNG and JPEG have the same problem now.

The only solution I know is to produce the image non-interactively:

pyferret -nodisplay -script yourscript.jnl

Moreover, "jpg" or "jpeg" doesn't work for this case. You'd need to use PNG instead.

**ERROR: invalid command: cairoCFerBind_saveWindow: unrecognized format 'JPG'
frame/file=sst.jpg
Command file, command group, or REPEAT execution aborted

In any case, PNG is better than JPEG for scientific plots, unless you need to reduce the file size of the image at the cost of quality.

Regards,
Ryo



--


REGARDS

Saurabh Rathore
Research Scholar (PhD.)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434

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

Privacy Policy | Disclaimer | Accessibility Statement