Gnuplot is a command-line program that can generate two- and three-dimensional plots of functions, data, and data fits. It is frequently used for publication-quality graphics as well as education. The program runs on all major computers and operating systems (GNU/Linux, Unix, Microsoft Windows, Mac OS X, and others).
I simply followed the instructions in the file INSTALL and it worked perfectly:
Download GNUPlot from http://www.gnuplot.info/download.html
$ tar xzf gnuplot-5.0.1.tar.gz $ cd gnuplot-5.0.1 $ ./configure $ make $ sudo make install
done GNUPlot already installed in your system.