mpl-qtthread
A Matplotlib backend for working with (Q)Threads and Qt
Free software: 3-clause BSD license
Documentation: (COMING SOON!) https://tacaswell.github.io/mpl-qtthread.
Features
A minimal example:
import threading
import time
import mpl_qtthread.backend
import matplotlib
import matplotlib.backends.backend_qt
mpl_qtthread.backend.initialize_qt_teleporter()
matplotlib.use("module://mpl_qtthread.backend_agg")
import matplotlib.pyplot as plt
plt.ion()
def background():
# time.sleep(1)
fig, ax = plt.subplots()
(ln,) = ax.plot(range(5))
for j in range(5):
print(f"starting to block {j}")
ln.set_color(f"C{j}")
ax.set_title(f'cycle {j}')
fig.canvas.draw_idle()
time.sleep(5)
threading.Thread(target=background).start()
matplotlib.backends.backend_qt.qApp.exec()
Release files for mpl-qtthread 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mpl-qtthread-0.0.1.tar.gz | 17.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mpl_qtthread-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.1 kB
Release files / mpl-qtthread-0.0.1.tar.gz
| Download URL | mpl-qtthread-0.0.1.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31d73c413e06efe5a5176bcdf1b68e774c0232277d004530a79cb7907e1357e5
|
|
BLAKE2b-256 checksum How to use checksums |
e023aba9a035be7f210d1c1533e1d299f7932c7ebec6b618f0c11aba4f153966
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.11.0a4+
|
Release files / mpl_qtthread-0.0.1-py3-none-any.whl
| Download URL | mpl_qtthread-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2807deb2b70ce1f46e9da454af1770ad27bc80b74b758d578a418dd78e69a70a
|
|
BLAKE2b-256 checksum How to use checksums |
1eed42f3535df2faba03ab45057221d8dca34fc6a20df673874b8ea5c24b1f03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.11.0a4+
|