How To Install rootplot on CentOS 7

In this tutorial we learn how to install rootplot on CentOS 7. rootplot is Plots ROOT data with matplotlib

Introduction

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

What is rootplot

ROOT is a powerful data analysis tool within the particle physics community, and the primary lens through which we see our data. The framework includes quite a bit of graphical capabilities, but producing high-quality graphics output was not the first priority in designing its capabilities or its interface. It becomes useful, then, to consider using an outside library focused on graphics for producing final plots. The pyROOT interface to ROOT makes it easy to have ROOT objects interact with other python modules. The goal of rootplot is to enable easy plotting of ROOT histograms using the full-featured and mature matplotlib library.

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

Install rootplot on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install rootplot

Install rootplot 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 rootplot using dnf by running the following command:

sudo dnf -y install rootplot

How To Uninstall rootplot on CentOS 7

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

sudo dnf remove rootplot

References

Summary

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