[Mesa-users] [EXT] Pgplot - how to produce pdf plots?

Pau A.S. lamarededeusenyor at googlemail.com
Sat Aug 24 00:31:32 UTC 2024


Thanks a lot!

PS is more than fine... I actually think that the world became a tad worse
when we started using PDF... Although maybe a MESA mailing list is not the
best place to say this!

I'm wondering how I can get a ps of the final profile, but I'll find out.

Thanks so much!

On Fri, 23 Aug 2024, 23:49 Mathieu Renzo via Mesa-users, <
mesa-users at lists.mesastar.org> wrote:

> Hi Pau,
>
> To add to Rich's answer, from $MESA_DIR/star/defaults/pgstar.defaults it
> appears you can make pgplot output pdf directly. However, this is also
> *incorrect*! Thanks for bringing our attention to this, we will improve the
> documentation on this in future releases.
>
> What is currently that file:
>
>    ! File output
>    ! -----------
>
>
>       ! file_device
>       ! ~~~~~~~~~~~
>       ! file_extension
>       ! ~~~~~~~~~~~~~~
>
>       ! 'png' is Portable Network Graphics format; can also use 'pdf'
>
>       ! ::
>
>     file_device = 'png'
>     file_extension = 'png'
>
> This may make one think that  you can achieve what you want just setting
> `file_device` and `file_extension` to pdf. I tested this and it does not
> work.
>
> However, as a workaround, what does  work is to set those two options to
> `ps` (for postscript), or go the way Rich suggested. As he said, ps and eps
> are vector formats too, and should be easy to convert them to pdf
> afterwards.
> Cheers,
> Mathieu
>
>
>
> On 8/23/24 14:02, Pau A.S. via Mesa-users wrote:
>
>
> * External Email *
> ------------------------------
> Dear all...
>
> I was wondering whether there's a tool to produce a pdf of the last
> instant of output that pgplot produces on the screen, but of better
> quality, maybe with python?
>
> Those two plots are very informative and it would be nice to have them on
> pdf to explain things to students, etc
>
> Thanks!
>
> _______________________________________________mesa-users at lists.mesastar.orghttps://lists.mesastar.org/mailman/listinfo/mesa-users
>
>
> --
> Mathieu Renzo <https://users.flatironinstitute.org/~mrenzo/>
> Assistant Professor
> University of Arizona & Steward Observatory
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20240824/3d60963d/attachment.htm>


More information about the Mesa-users mailing list