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 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.1.tar.gz (144.3 kB view details)

Uploaded Source

Built Distribution

mpl_modernqt-1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file mpl_modernqt-1.1.tar.gz.

File metadata

  • Download URL: mpl_modernqt-1.1.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

Hashes for mpl_modernqt-1.1.tar.gz
Algorithm Hash digest
SHA256 1e7c3f6c919b506e367b6ce8e67af313189787fe73c453d6b9a849b319dbf714
MD5 9994a865b85831f04e66bc41f4ab29f7
BLAKE2b-256 82c419ea2878a3954a86173f1846c4615cf6a5a9c206d1198a4183b17396dff6

See more details on using hashes here.

Provenance

File details

Details for the file mpl_modernqt-1.1-py3-none-any.whl.

File metadata

  • Download URL: mpl_modernqt-1.1-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

Hashes for mpl_modernqt-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a17350e843b2ad1c2cd6b58330152de9c0be88bc5e770a6ecf7fec5e1b1677ea
MD5 08355dd1e67564bb063e73289fefa3b8
BLAKE2b-256 b62406efeef58c73891793019edb6b29667542ab28186fdaafddefa185bf97ce

See more details on using hashes here.

Provenance

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