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

RICHARD H D TOWNSEND townsend at astro.wisc.edu
Fri Aug 23 21:42:35 UTC 2024


Dear Paul —

I’m not aware that pgplot can output PDF, but it *can* write Encapsulated PostScript (eps). In your &pgstar namelist group, add the following:

      file_device = 'vcps'             ! options 'png' and 'vcps' for png and postscript respectively
      file_extension = 'eps'           ! common names are 'png' and ‘ps'

You can then convert the eps file to PDF using one of a variety of tools (epspsf, eps2pdf, epstopdf), or in Adobe Illustrator.

Best wishes,

Rich

> On Aug 23, 2024, at 4:02 PM, Pau A.S. via Mesa-users <mesa-users at lists.mesastar.org> wrote:
> 
> 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.org
> https://urldefense.com/v3/__https://lists.mesastar.org/mailman/listinfo/mesa-users__;!!Mak6IKo!ILBg5WZPvZda6A_pWhlmdlSjQnIg6Br3UPYmYTfkBFpuTSpQVr7PT_za1xKe5bH3DfDzOX3UWVpN-f-yVTy1Isb9Qi8k-GE$ 
> 

--
Rich Townsend • Professor of Astronomy
Astronomy Department • University of Wisconsin-Madison
Phone: 608-262-1752 • E-mail: rhtownsend at wisc.edu







More information about the Mesa-users mailing list