Gnuplot on Ubuntu 12.04


I have worked on OpenShoe project for almost a month now as a part of my Bachelor Thesis. Off late I had to use GNUPlot to plot the trajectory of the First Responder. The scripts for the same were already present. I had to get those scripts working on one laptop. I had to use GNUPlot 4.6 patchlevel 0 version.

Software Center was somehow showing me GNUPlot 4.4.* Version which I didn’t want. The reason I had to use GNUPlot 4.6.0 was because of the terminal type ‘pngcairo’. My application specifically asked for this particular type of terminal which didn’t come with this default setting. Anyhow, I went to the GNUPlot ‘s homepage and downloaded GNUPlot 4.6.0 . The website said that this particular version came with stable and full featured terminals like pngcairo , pdfcairo , epscairo and cairolatex . However there were some dependencies issues with Cairo and Pango.

I unzipped the GNUPlot 4.6.0 and ran

sudo ./configure

However it threw up various dependency errors. We can now remove those errors simply by using the following command.

sudo apt-get install libwxgtk2.8-dev libpango1.0-dev libx11-dev libxt-dev texinfo libreadline5-dev

Once this is done, you can go back to the GNUPlot folder and run the following.

sudo ./configure

sudo make

sudo make check

sudo make install

sudo make check allows you to check whether you have the fully functional GNUPlot or not.

You can also do

sudo apt-get install ffmpeg mencoder

However, it all depends on your application 🙂



  1. Hi Priyans,

    I did as you have mentioned in this post. The gnuplot installed well and thanks for that.



  2. Martin Scholtz · · Reply

    Thank you

  3. xinfeei · · Reply

    no obvious errors show in the long screen scrolling, however, when I type “gnuplot” after everything finished, it returns, “bash: /usr/bin/gnuplot: No such file or directory “, any suggestions? thanks.

  4. Ajit Garg · · Reply

    Searched in google and found that an India based company Inertial Elements( which are jointly developed by GT Silicon Pvt Ltd and their research partners at the Signal Processing Department of KTH Royal Institute of Technology, Stockholm under OpenShoe project.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: