Presentation Supercomputing Computer Database SIEpedia SIE News

Follow @SIEie_IAC
Logo SIE

PGPLOT   
Description Fortran- or C-callable, device independent graphics package for making simple scientific graphs
Version installed Fedora-26: v5.2 (comes with the OS).
Usage 64-bit libraries:
/usr/lib64/libpgplot.so (shared).
/usr/lib64/libcpgplot.so (C library, shared)

Note that PGPLOT has been compiled with gfortran.
Upgrade Notes See the PGPLOT Status Section in the website
Manuals and
Documentation
See the PGPLOT website, where you can find an Annotated List of Subroutines and Subroutine Descriptions
SIE contact Nicola Caon - - tel: 5383 - office: 1.124
Additional Info Compile with gfortran.
As pgplot was compiled with gfortran, use this same compiler to compile and link your code with pgplot. Using f77 or other old compiler versions will most likely fail with "undefined reference" messages.

Using the c-binding.
This may be a little tricky. The correct way to do this (in Linux) is:
gcc -c program.c
gfortran -o program program.o -lcpgplot -lpgplot -lX11

64-bit pgplot and missing fonts (Fedora-8 only) :
If you are running a 64-bit program linked against the 64-bit pgplot library (/usr/lib64/libpgplot.so) it is possible that fonts (for instance axis tickmarks, labels, etc.) do not get displayed properly (or are missing altogether). This problem is due to the fact that the format of the grfont.data file differs in 32-bit and 64-bit modes. To fix it, redefine the PGPLOT_FONT variable as:
export PGPLOT_FONT="/usr/share/pgplot/grfont.dat" (bash)

GIF format: The 64-bit GIF driver is buggy, and if you try to save your graphics in a GIF file you can get a "segmentation fault" error. Please save in another format (for instance Postscript).