Gnuplot Installation in Gnu/Linux
A tutorial for installation and basic usage of Gnuplot, a plotting tool.
Gnuplot is a CLI (Command - Line Interface) based plotting software which can be used in GNU/Linux based systems (Ubuntu, Debian, Fedora etc), Windows, Mac OS etc which was first released in 1986. It is mainly used by scientists and engineers for visualizing and analyzing the data. It is open source, free to download and modifications can be made according to the Gnuplot License. As it is CLI based, it doesn’t have a graphical interface and is operated by giving instructions through terminal.
Advantages
-
It can read data from multiple softwares despite of their formats.
-
It can produce 2D, 3D, parametric, multiplots, contour plots etc in different styles and coordinate systems.
-
It is fast and uses less resources than other plotting softwares.
Installing Gnuplot
Gnuplot can be installed in Ubuntu/Debian based operating systems by the following method.
Open Terminal. Run the below command
sudo apt install gnuplot
Enter your password (it won’t appear in the screen) and press enter.
It may ask if you want to continue. Then enter y. That’s all. Gnuplot is installed.
Now run gnuplot by entering gnuplot
to the terminal and press enter.
It will appear as in the gif below.
You can create a test data file with some x
and y
values.