[Thread Prev][Thread Next][Index]

Re: [ferret_users] Error when saving as pdf using PyFerret v7.5



Hi Becki,

Glad to hear the "-nodisplay" option allows you to get the full image.

There have been a number of issues with Qt on Mac OS X within PyFerret (especially with the Sierra release; a little better in High Sierra and somewhat better in Mojave).  I am seeing this issue with PDF saves from displayed plots on my conda installation of PyFerret on Mac OS X Mojave.  At this time my only suggestion is to save the journal file and then recreate the desired plot(s) by re-running with the "-nodisplay" option.

Karl


On Tue, Jul 2, 2019 at 2:23 PM Rebecca Lynn Beadling <beadling@xxxxxxxxxxxxxxxxx> wrote:
Hi Karl,

Thank you for the quick response. The error seems to be from displayed plots. When I used the “-nodisplay” command-line flag I got the correct figure (not cut off)!

I am using Mac OS X El Capitan and downloaded PyFerretv7.5 via conda. There was not different behavior when I left off the /size= in the set window/ command.

Becki



On Jul 2, 2019, at 2:02 PM, Karl Smith - NOAA Affiliate <karl.smith@xxxxxxxx> wrote:

Hi Becki,

What operating system are you using?  Was this from a conda installation or from another source?  Was this from a displayed plot or using the "-nodisplay" command-line flag.  I just tried this with my build under RHEL7 (making a plot from coads_climatology data) and it worked fine either displayed or with "-nodisplay".  

Without the "-nodisplay" command-line flag the Qt library is used to generate the plot; with the"-nodisplay" command-line flag, the Cairographics library is used.  So there might be a chance for different behavior.

Also, with PyFerret, you can specify the plot size (/xinch or /yinch for PDFs) in the frame command, regardless of the size of the original plot.  So would also be interesting to see if leaving off the "/size" option for "set win" makes a difference (adjusting the /isize on set text as needed).

Karl


On Tue, Jul 2, 2019 at 12:19 PM Rebecca Lynn Beadling <beadling@xxxxxxxxxxxxxxxxx> wrote:
Hi all,

I recently upgraded to PyFerretv7.5 and am having an issue with the pdfs that I am saving being cut off (see attached pdf). Is there something else I need to specify for this PyFerret version when saving images?

I am using the following commands when setting the window and saving the files - these worked perfectly in my previous version of PyFerret7.1

set window 1
set window/asp=0.90/size=2
set text/font=arial/bold/isiz=4

frame/transparent/file = test.pdf

Thank you ahead of time,

Becki




-- 
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"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."



--
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"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