Skip to main content

Modern Qt Matplotlib backend

Project description

mpl-modernqt

A modern looking backend for Matplotlib based on the official Qt backend. Its main features are:

  • Phosphor Icons (monochromatic) thanks to the QtAwesome package.
  • Modern theme with the PyQtDarkTheme package.
  • Qt5 and Qt6 support.

Installation

Using pip, the official Python package manager...

On GNU/Linux and MacOS execute the following order in a terminal:

pip install mpl-modernqt -U

On MS Windows you may prefer:

python -m pip install mpl-modernqt -U

Usage

from matplotlib import use

use('module://mpl_modernqt.backend')

Example code

import numpy as np
from matplotlib import use
import matplotlib.pyplot as plt

use('module://mpl_modernqt.backend')

x = np.linspace(0, 7, 300)
y = np.sin(x)

plt.plot(x, y)
plt.show()

License

This project uses the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpl_modernqt-1.3.tar.gz (144.3 kB view hashes)

Uploaded Source

Built Distribution

mpl_modernqt-1.3-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page