Gnuplotting

Create scientific plots using gnuplot

July 20th, 2010 | 15 Comments

Last Update: 2011-07-11

Ubuntu 10.04 (Lucid Lynx) contains not the newest Gnuplot package, but the old 4.2 version. To install Gnuplot 4.4 under Ubuntu you can download it from Debian squeeze and install it by:

wget http://ftp.us.debian.org/debian/pool/main/g/gnuplot/gnuplot-nox_4.4.0-1.1+b1_i386.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gnuplot/gnuplot-doc_4.4.0-1.1_all.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gnuplot/gnuplot-x11_4.4.0-1.1+b1_i386.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gnuplot/gnuplot_4.4.0-1.1_all.deb
sudo dpkg -i gnuplot*

It can happen that some features of Gnuplot (for me the readline stuff) do not work as expected. If you experience problems, then you have to compile gnuplot yourself, which is in most cases straight forward. You can download it from sourceforge.

15 Comments

  1. suresh says:

    Hi,
    Thanks, I was looking for gnuplot with pdf terminal and I could use your blog to install them without spending time on compiling from the source code.
    suresh

  2. Mark says:

    Hi
    I need gnuplot and perhaps Octave on Ubuntu 10.04 . My goal is to plot 2 D sine graphs for math teaching purposes . I like to generate vector based graphics from Gnuplot.
    Can you help with some advise
    thanks
    Mark

  3. hagen says:

    Hi Mark,
    maybe you will have a look at the Plotting functions and Output terminals pages. There you will find sine graphs and vector graphics output.

  4. kmb says:

    doesn’t work for me, can’t find URLs.

  5. hagen says:

    Thanks, updated the URLs.

  6. Poornima says:

    Hi,

    I want to do plots as web running scripts.
    Please help me

  7. JuanKa says:

    Thanks a lot!! It’s been very easy.

  8. Pandia says:

    It works, thanks a lot.

  9. […] I found this link which explain how to upgrade GNUPLOT 4.2 which default on Ubuntu Lucid become GNUPLOT 4.4. GNUPLOT […]

  10. sharan says:

    when i tried to install in the last step i got error kindly help me

    sharan@sharan:~$ sudo dpkg -i gnuplot*
    [sudo] password for sharan:
    (Reading database … 188038 files and directories currently installed.)
    Preparing to replace gnuplot 4.4.0-1.1 (using gnuplot_4.4.0-1.1_all.deb) …
    Unpacking replacement gnuplot …
    Preparing to replace gnuplot-doc 4.4.0-1.1 (using gnuplot-doc_4.4.0-1.1_all.deb) …
    Unpacking replacement gnuplot-doc …
    Preparing to replace gnuplot-nox 4.4.0-1.1+b1 (using gnuplot-nox_4.4.0-1.1+b1_i386.deb) …
    Unpacking replacement gnuplot-nox …
    Preparing to replace gnuplot-x11 4.4.0-1.1+b1 (using gnuplot-x11_4.4.0-1.1+b1_i386.deb) …
    Leaving `diversion of /usr/bin/gnuplot to /usr/bin/gnuplot-nox by gnuplot-x11′
    Leaving `diversion of /usr/share/man/man1/gnuplot.1.gz to /usr/share/man/man1/gnuplot-nox.1.gz by gnuplot-x11′
    Unpacking replacement gnuplot-x11 …
    Setting up gnuplot-doc (4.4.0-1.1) …
    Setting up gnuplot-nox (4.4.0-1.1+b1) …

    dpkg: dependency problems prevent configuration of gnuplot-x11:
    gnuplot-x11 depends on libwxbase2.8-0 (>= 2.8.10.1); however:
    Package libwxbase2.8-0 is not installed.
    gnuplot-x11 depends on libwxgtk2.8-0 (>= 2.8.10.1); however:
    Package libwxgtk2.8-0 is not installed.
    dpkg: error processing gnuplot-x11 (–install):
    dependency problems – leaving unconfigured
    dpkg: dependency problems prevent configuration of gnuplot:
    gnuplot depends on gnuplot-x11 (>= 4.4.0-1.1); however:
    Package gnuplot-x11 is not configured yet.
    dpkg: error processing gnuplot (–install):
    dependency problems – leaving unconfigured
    Processing triggers for install-info …
    Processing triggers for doc-base …
    Processing 1 changed doc-base file(s)…
    Registering documents with scrollkeeper…
    Processing triggers for man-db …
    Errors were encountered while processing:
    gnuplot-x11
    gnuplot

  11. hagen says:

    The critical part is this:
    Package libwxgtk2.8-0 is not installed
    Package libwxgtk2.8-0 is not installed

    I would try to install these packages first (for example with synaptic) and then retry to install gnuplot.

  12. […] artigo foi baseado em: Gnuplotting Share this:TwitterFacebookGostar disso:GostoSeja o primeiro a gostar disso post. Publicado por […]

  13. Raied says:

    Hi,
    I am a PhD student in physics and highly prefer gnuplot in editing my graphs. I try to install gnuplot under Ubuntu but I am confusing in which file I have to download and from which one I have to start installation. I will be grateful for clear information

    Raied

  14. hagen says:

    You should download all the mentioned files above into the same directory, and in this directory just run the sudo dpkg -i gnuplot* command

  15. […] <Gnuplot in Action> Gnuplotting Installing Gnuplot 4.4 under Ubuntu Lucid Compiling Gnuplot 4.4.2 on CentOS 5.5 From raw data to graphs: a gnuplot alternative This entry […]