How To Install python3-mplcairo on Fedora 36

In this tutorial we learn how to install python3-mplcairo in Fedora 36. python3-mplcairo is A (new) cairo backend for Matplotlib

Introduction

In this tutorial we learn how to install python3-mplcairo on Fedora 36.

What is python3-mplcairo

This is a new, essentially complete implementation of a cairo backend for Matplotlib. It can be used in combination with a Qt5, GTK3, Tk, wx, or macOS UI, or noninteractively (i.e., to save figure to various file formats). Noteworthy points include - Improved accuracy (e.g., with marker positioning, quad meshes, and text kerning). - Support for a wider variety of font formats, such as otf and pfb, for vector (PDF, PS, SVG) backends (Matplotlib’s Agg backend also supports such fonts). - Optional support for complex text layout (right-to-left languages, etc.) using Raqm. - Support for embedding URLs in PDF (but not SVG) output. - Support for multi-page output both for PDF and PS (Matplotlib only supports multi-page PDF). - Support for custom blend modes (see examples/operators.py).

We can use yum or dnf to install python3-mplcairo on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-mplcairo.

Install python3-mplcairo on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-mplcairo

Install python3-mplcairo on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-mplcairo using yum by running the following command:

sudo yum -y install python3-mplcairo

How To Uninstall python3-mplcairo on Fedora 36

To uninstall only the python3-mplcairo package we can use the following command:

sudo dnf remove python3-mplcairo

python3-mplcairo Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/ff83e55dd78ceb8420e527c0aad1dd9bc6d97a
/usr/lib64/python3.10/site-packages/mplcairo
/usr/lib64/python3.10/site-packages/mplcairo-0.4-py3.10.egg-info
/usr/lib64/python3.10/site-packages/mplcairo-0.4-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/mplcairo-0.4-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/mplcairo-0.4-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/mplcairo-0.4-py3.10.egg-info/requires.txt
/usr/lib64/python3.10/site-packages/mplcairo-0.4-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/mplcairo.pth
/usr/lib64/python3.10/site-packages/mplcairo/__init__.py
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/_backports.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/_backports.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/_util.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/_util.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/_version.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/_version.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/base.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/gtk.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/gtk.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/gtk_native.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/gtk_native.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/macosx.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/macosx.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/multipage.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/multipage.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/qt.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/qt.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/tk.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/tk.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/wx.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/mplcairo/__pycache__/wx.cpython-310.pyc
/usr/lib64/python3.10/site-packages/mplcairo/_backports.py
/usr/lib64/python3.10/site-packages/mplcairo/_mplcairo.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/mplcairo/_util.py
/usr/lib64/python3.10/site-packages/mplcairo/_version.py
/usr/lib64/python3.10/site-packages/mplcairo/base.py
/usr/lib64/python3.10/site-packages/mplcairo/gtk.py
/usr/lib64/python3.10/site-packages/mplcairo/gtk_native.py
/usr/lib64/python3.10/site-packages/mplcairo/macosx.py
/usr/lib64/python3.10/site-packages/mplcairo/multipage.py
/usr/lib64/python3.10/site-packages/mplcairo/qt.py
/usr/lib64/python3.10/site-packages/mplcairo/tk.py
/usr/lib64/python3.10/site-packages/mplcairo/wx.py
/usr/share/doc/python3-mplcairo
/usr/share/doc/python3-mplcairo/README.rst
/usr/share/licenses/python3-mplcairo
/usr/share/licenses/python3-mplcairo/LICENSE.txt

References

Summary

In this tutorial we learn how to install python3-mplcairo on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).