Qt plotting widgets for Python
Project description
The PythonQwt package is a 2D-data plotting library using Qt graphical user interfaces for the Python programming language. It is compatible with PyQt4, PyQt5, PyQt6 and PySide6.
The PythonQwt project was initiated to solve -at least temporarily- the obsolescence issue of PyQwt (the Python-Qwt C++ bindings library) which is no longer maintained. The idea was to translate the original Qwt C++ code to Python and then to optimize some parts of the code by writing new modules based on NumPy and other libraries.
The PythonQwt package consists of a single Python package named qwt which is a pure Python implementation of Qwt C++ library with some limitations: efforts were concentrated on basic plotting features, leaving higher level features to the guiqwt library.
See README and documentation (online or PDF) for more details on the library and changelog for recent history of changes.
The following example is a good starting point to see how to set up a simple plot widget:
from qtpy import QtWidgets as QW
import qwt
import numpy as np
app = QW.QApplication([])
x = np.linspace(-10, 10, 500)
plot = qwt.QwtPlot("Trigonometric functions")
plot.insertLegend(qwt.QwtLegend(), qwt.QwtPlot.BottomLegend)
qwt.QwtPlotCurve.make(x, np.cos(x), "Cosinus", plot, linecolor="red", antialiased=True)
qwt.QwtPlotCurve.make(x, np.sin(x), "Sinus", plot, linecolor="blue", antialiased=True)
plot.resize(600, 300)
plot.show()
app.exec_()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PythonQwt-0.10.5.tar.gz.
File metadata
- Download URL: PythonQwt-0.10.5.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38770051992b3d1b186f323a9ec78dcf7c43154403bae1b90309c83fad213ffd
|
|
| MD5 |
2ce56ce0da7f4e6560bbb9d85bdc4210
|
|
| BLAKE2b-256 |
5ae979999101677a77e954fc06dba9b5a4f7d5ea4ec964730051a2bd7f51acbf
|
File details
Details for the file PythonQwt-0.10.5-py2.py3-none-any.whl.
File metadata
- Download URL: PythonQwt-0.10.5-py2.py3-none-any.whl
- Upload date:
- Size: 908.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
add7b8efb277f58c5becd25db50ebcc65a11d7773a29c6948b14acabad679bf6
|
|
| MD5 |
9648bfb4f9856f0fef90f57c1251c2c0
|
|
| BLAKE2b-256 |
942861a468b4193e04dcbbf40416bac1c3d4d06f6391da9cf8c9682b9f3b9cd8
|