Presentation Supercomputing Computer Database SIEpedia IT News

Follow @SIEie_IAC
Logo SIE

Description Fortran- or C-callable, device independent graphics package for making simple scientific graphs
Version installed Ubuntu 18.04: v5.2 (from the Ubuntu repositories).
Usage 64-bit libraries:
/usr/lib/   (shared).
/usr/lib/   (C library, shared)
Upgrade Notes See the PGPLOT Status Section in the website
Manuals and
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

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).