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
andQt6
support.
Installation
Using pip
, the official Python package manager...
On GNU/Linux and MacOS execute the following order in a terminal:
pip install matplotlib-modernqt -U
On MS Windows you may prefer:
python -m pip matplotlib-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.0.tar.gz
(144.3 kB
view details)
Built Distribution
File details
Details for the file mpl_modernqt-1.0.tar.gz
.
File metadata
- Download URL: mpl_modernqt-1.0.tar.gz
- Upload date:
- Size: 144.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 570718e50445d628fe0e1ebc20cf07955ac45466b68820649fa9798f96956e3b |
|
MD5 | a67740a059270f2466748de05bf02702 |
|
BLAKE2b-256 | b2a933d1d223a48322ffcf7fc72690bc0bb32061870043fc1ff58f73960386af |
Provenance
File details
Details for the file mpl_modernqt-1.0-py3-none-any.whl
.
File metadata
- Download URL: mpl_modernqt-1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f18ef312f54f49ecaa4e349805571e6b73c271dc1e19c8743f596d3d8f508f54 |
|
MD5 | ec80d706d2edfa6943bfc7074a56e128 |
|
BLAKE2b-256 | bf53086698ca5281983aa960bbe2310d0dedb3ce0c4b33776a87d4e700bf6ebd |