How To Install plplot on CentOS 7

In this tutorial we learn how to install plplot on CentOS 7. plplot is Library of functions for making scientific plots

Introduction

In this tutorial we learn how to install plplot on CentOS 7.

What is plplot

PLplot is a library of functions that are useful for making scientific plots. PLplot can be used from within compiled languages such as C, C++, FORTRAN and Java, and interactively from interpreted languages such as Octave, Python, Perl and Tcl. The PLplot library can be used to create standard x-y plots, semilog plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar charts and pie charts. Multiple graphs (of the same or different sizes) may be placed on a single page with multiple lines in each graph. A variety of output file devices such as Postscript, png, jpeg, LaTeX and others, as well as interactive devices such as xwin, tk, xterm and Tektronics devices are supported. New devices can be easily added by writing a small number of device dependent routines. There are almost 2000 characters in the extended character set. This includes four different fonts, the Greek alphabet and a host of mathematical, musical, and other symbols. Some devices supports its own way of dealing with text, such as the Postscript and LaTeX drivers, or the png and jpeg drivers that uses the Freetype library.

We can use yum or dnf to install plplot on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install plplot.

Install plplot on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install plplot using yum by running the following command:

sudo yum -y install plplot

Install plplot on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install plplot using dnf by running the following command:

sudo dnf -y install plplot

How To Uninstall plplot on CentOS 7

To uninstall only the plplot package we can use the following command:

sudo dnf remove plplot

References

Summary

In this tutorial we learn how to install plplot on CentOS 7 using yum and dnf.