[Thread Prev][Thread Next][Index]

Re: [ferret_users] Frame/file= and Framing of the output image



Dear Ryo,
I replied to fast.
With the latest version of PyFerret, when I use FRAME with the -nodisplay -scrip options, I end up having white horizontal lines over the coast topography (go fland 5 black)
I installed PyFerret v7.5 and I do not have any problems with my png outputs.
I will use this version for now on.
Have a nice day,
Serena

.¸. , . .·´¯`·
 ><(((º>     `·.¸.·´¯`·...¸><(((º>¸.¸. , . .·´¯`· ><(((º> .
`·.¸.·´¯`·...¸><(((º>                                                    .
                                                                                  .
  Serena ILLIG-THEVENIN       LEGOS/IRD             .
                                                                                  .
  Editorial Board Member for Scientific Reports      .
                                                                              .
                         14 Av. E. Belin                           .
                         31400 Toulouse                        .
                         FRANCE                                   .
                                                                             .
         E-mail : serena.illig.ird@xxxxxxxxx             .
         Web-site : http://sillig.free.fr                       .
         Phone : +33 5 61 33 29 26                      .
                                                                       .
                                                     <º)))><..·



On Fri, Jul 1, 2022 at 2:22 PM Serena Illig <serena.illig.ird@xxxxxxxxx> wrote:
Dear Ryo,
Sorry for my late reply.
I installed ubuntu 22.04 on my new laptop, but the png outputs were still badly framed.
Then I tried your suggestion, and using the -nodisplay option does the trick and my png files are perfect!
Thank you very much for your help!
Have a nice day,
Serena


.¸. , . .·´¯`·
 ><(((º>     `·.¸.·´¯`·...¸><(((º>¸.¸. , . .·´¯`· ><(((º> .
`·.¸.·´¯`·...¸><(((º>                                                    .
                                                                                  .
  Serena ILLIG-THEVENIN       LEGOS/IRD             .
                                                                                  .
  Editorial Board Member for Scientific Reports      .
                                                                              .
                         14 Av. E. Belin                           .
                         31400 Toulouse                        .
                         FRANCE                                   .
                                                                             .
         E-mail : serena.illig.ird@xxxxxxxxx             .
         Web-site : http://sillig.free.fr                       .
         Phone : +33 5 61 33 29 26                      .
                                                                       .
                                                     <º)))><..·



On Wed, Jun 29, 2022 at 6:06 AM Ryo Furue <furue@xxxxxxxxxx> wrote:
Dear Serena,

On Tue, Jun 21, 2022 at 10:55 PM Serena Illig <serena.illig.ird@xxxxxxxxx> wrote:

When I save a plot, I use the command FRAME/file=myplot.png

Since I upgraded my ubuntu to from 16.04 to 20.04 and reinstalled PyFerret, the PNG or PDF files I get are framed using a lot of white space on the right and bottom of the plot (see plot attached). 


Would you get a correct/better image if you run your Ferret script from the command line?

 pyferret -nodisplay -script yourferretscript.jnl

If you search the email archive, you'll find several threads about cropped images on Mac. The only reliable workaround is to make the plots from the command line as the above or to go back to an earlier version of PyFerret.

Although I do use PyFerret on Linux, I don't use it to make plots, so I don't know if I have the same problem as you, but your problem might be rooted in the same problem as Mac users have.

Regards,

Ryo
 

I did try to specify the size of my plot using set win/XPIXEL=1000/YPIXEL=800
and saving it with frame/file=Map_01.gif/ypixels=800, but it did not make any difference.

To use these output images, I used to crop them. But I was wondering if there is a workaround to obtain nice centered PNG/PDF outputs, knowing that I am not ready to update my system to ubuntu 22.04.

I thank you in advance for your help,

Have a nice day,

Serena Illig


.¸. , . .·´¯`·
 ><(((º>     `·.¸.·´¯`·...¸><(((º>¸.¸. , . .·´¯`· ><(((º> .
`·.¸.·´¯`·...¸><(((º>                                                    .
                                                                                  .
  Serena ILLIG-THEVENIN       LEGOS/IRD             .
                                                                                  .
  Editorial Board Member for Scientific Reports      .
                                                                              .
                         14 Av. E. Belin                           .
                         31400 Toulouse                        .
                         FRANCE                                   .
                                                                             .
         E-mail : serena.illig.ird@xxxxxxxxx             .
         Web-site : http://sillig.free.fr                       .
         Phone : +33 5 61 33 29 26                      .
                                                                       .
                                                     <º)))><..·


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

Privacy Policy | Disclaimer | Accessibility Statement