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 both PyQt4, PyQt5 and PySide2 (see documentation for more information on a performance issue due to PySide2 itself when plotting huge data sets).

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:

import qwt
import numpy as np

app = qtpy.QtGui.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()
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.8.2.tar.gz (941.3 kB view details)

Uploaded Source

Built Distribution

PythonQwt-0.8.2-py2.py3-none-any.whl (729.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: PythonQwt-0.8.2.tar.gz
  • Upload date:
  • Size: 941.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for PythonQwt-0.8.2.tar.gz
Algorithm Hash digest
SHA256 4be627374eb0783e04267f8e405e2f22e8a6ec62766fbcaf54c1c1316731958b
MD5 412478f37fd97817206f57a143667c24
BLAKE2b-256 43953e30b216b64260283b3153694587c50bcbf8a74ed6fb412c024d0e48e54e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: PythonQwt-0.8.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 729.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for PythonQwt-0.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ac157b0c007dbd0d361839c6052b057e05c2fc10f295132462b0af246f0e929f
MD5 867cab6a50a1f3225777c56f082d00a2
BLAKE2b-256 58e816ce35d72dd08d5df00929b3236409e07be8ba86696284f3732147a1869a

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