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 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.2.tar.gz
(144.3 kB
view details)
Built Distribution
File details
Details for the file mpl_modernqt-1.2.tar.gz
.
File metadata
- Download URL: mpl_modernqt-1.2.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 | 8bda9f6092460148284d5957fb9b033ab77caea4141fede343bce35662403c06 |
|
MD5 | f22987cb76b77f9babd68d15bd44d14f |
|
BLAKE2b-256 | ba293a62b3e41ab438d3f844244a2864d955ad46c1d75d8961cb16a0a223040f |
Provenance
File details
Details for the file mpl_modernqt-1.2-py3-none-any.whl
.
File metadata
- Download URL: mpl_modernqt-1.2-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 | 552966b3e3262073533550f2fd1b99efbb2e8829464928bec17f0cf12f8a64a6 |
|
MD5 | bf5a15aee964754f09778668b46e4f2f |
|
BLAKE2b-256 | f175c6ef6faba2b55d7260c92a1e4e410d3430a7c476524957a0c21d67d32327 |