I've used a guide to try and get pgplot to work and I've had some success. I can run the precompiled demo that comes with pgplot however when I come to compile my own code I get a load errors about gfortran.
The guide I'm using can be found here:
http://www.dur.ac.uk/physics.astrolab/ppgplot.html
and here are the errors:
rob@rob-laptop:~/Desktop$ gcc -c fractal1original.crob@rob-laptop:~/Desktop$ f77 -o fractal1original fractal1original.o -lcpgplot -lpgplot -lX11 -lgcc -lm
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_concat_string'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_write_done'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_transfer_integer'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_read'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_inquire'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_stop_numeric'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_pow_i4_i4'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_write'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_getenv'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_read_done'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_runtime_error'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_compare_string'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_transfer_array'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_string_index'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_close'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_open'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_transfer_character'
/usr/local/lib/libpgplot.so: undefined reference to `_gfortran_os_error'
collect2: ld returned 1 exit status
I've also added: int MAIN__() {return 0;} to the code.