Skip to main content

Qt plotting widgets for Python

Project description

https://raw.githubusercontent.com/PierreRaybaut/PythonQwt/master/qwt/tests/data/testlauncher.png

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_()
https://raw.githubusercontent.com/PierreRaybaut/PythonQwt/master/doc/images/QwtPlot_example.png

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

PythonQwt-0.10.2.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

PythonQwt-0.10.2-py2.py3-none-any.whl (869.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file PythonQwt-0.10.2.tar.gz.

File metadata

  • Download URL: PythonQwt-0.10.2.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for PythonQwt-0.10.2.tar.gz
Algorithm Hash digest
SHA256 a4913e781c8b06ddd56ed5cf6b99093b6b3285e0262bcc911bc4cb7c080d82f0
MD5 c98306dfdc525b24fbb8d98e2b64efec
BLAKE2b-256 a56c522c74043a28debc0f6696722806649240c17ed5ec9b0c6b24b4b012de40

See more details on using hashes here.

Provenance

File details

Details for the file PythonQwt-0.10.2-py2.py3-none-any.whl.

File metadata

  • Download URL: PythonQwt-0.10.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 869.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for PythonQwt-0.10.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 861a1fb399cf460a964df60956502c6e6d18d320475117e4f21e3274f57b230f
MD5 e5613dafdcb3e0774fbf877b981b5580
BLAKE2b-256 1d799abb3b631cfa40c995c6fa0bbce747bc216436620c884877b9b4b6ee0f01

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