I have :

  • Ubuntu 13.10 64 bit
  • wxMaxima 13.04.2 ( Maximy:5.31.3 )
  • Lisp:SBCL
  • gnuplot version 4.6 patchlevel 4 last modified 2013-10-06

When I check terminals in gnuplot using :

set terminal 

then I do not see png terminal.

What should I do to change it ?


png terminal is related with gd library so I have to :

  1. install gd library

  2. reinstall gnuplot from source file

| improve this answer | |

To set png as the output file format of your graph you need to set the following in your *.gnu file:

set terminal png
set output filename.png
| improve this answer | |
  • the png terminal is not on the list of available terminals so I can not use it. The problem is why ? – Adam Dec 21 '13 at 13:59
  • How do you know it is not available, how did you check that? – jobin Dec 21 '13 at 15:29
  • run gnuplot , then type set terminal. Then you will have a list of all available terminals. png is not on that list. I think that is a problem with libpg and libz libraries – Adam Dec 21 '13 at 17:28

What worked for me to get the PNG terminal was typing,

sudo apt-get install libgd2-noxpm-dev

then re-compiling and re-installing gnuplot.

| improve this answer | |
  • Why do we need to re-compile ? – Panther Apr 9 '15 at 23:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.