GnuplotGnuplot can be installed on Ubuntu using the following commands.
$ sudo apt update $ sudo apt install gnuplot
Entering the following command starts Gnuplot.
Information such as version number for Gnuplot will be displayed and you will be at the command prompt of gnuplot. As a testing, we will plot sin(x) and cos2(x) will be plotted on it again. Thereafter, the plots as illustrated in Figure. 1 should appear [Mig18]. You can enter 'q' to quit Gnuplot.
> plot sin(x) > replot cos(x)**2 > q