PythonQwt 0.10.3__py2.py3-none-any.whl → 0.10.4__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,77 +1,74 @@
1
- Metadata-Version: 2.1
2
- Name: PythonQwt
3
- Version: 0.10.3
4
- Summary: Qt plotting widgets for Python
5
- Home-page: https://github.com/PlotPyStack/PythonQwt
6
- Author: Pierre Raybaut
7
- Author-email: pierre.raybaut@gmail.com
8
- License: UNKNOWN
9
- Platform: Any
10
- Classifier: Development Status :: 5 - Production/Stable
11
- Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
12
- Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Topic :: Scientific/Engineering :: Visualization
14
- Classifier: Topic :: Software Development :: Widget Sets
15
- Classifier: Operating System :: MacOS
16
- Classifier: Operating System :: Microsoft :: Windows
17
- Classifier: Operating System :: OS Independent
18
- Classifier: Operating System :: POSIX
19
- Classifier: Operating System :: Unix
20
- Classifier: Programming Language :: Python :: 3
21
- License-File: LICENSE
22
- Requires-Dist: NumPy (>=1.5)
23
- Requires-Dist: QtPy (>=1.3)
24
- Provides-Extra: doc
25
- Requires-Dist: Sphinx (>=1.1) ; extra == 'doc'
26
- Provides-Extra: test
27
- Requires-Dist: coverage ; extra == 'test'
28
- Requires-Dist: pytest ; extra == 'test'
29
- Requires-Dist: pytest-qt ; extra == 'test'
30
- Requires-Dist: pytest-cov ; extra == 'test'
31
-
32
- PythonQwt: Qt plotting widgets for Python
33
- =========================================
34
-
35
- .. image:: https://raw.githubusercontent.com/PierreRaybaut/PythonQwt/master/qwt/tests/data/testlauncher.png
36
-
37
- The ``PythonQwt`` package is a 2D-data plotting library using Qt graphical
38
- user interfaces for the Python programming language. It is compatible with
39
- ``PyQt4``, ``PyQt5``, ``PyQt6`` and ``PySide6``.
40
-
41
- The ``PythonQwt`` project was initiated to solve -at least temporarily- the
42
- obsolescence issue of `PyQwt` (the Python-Qwt C++ bindings library) which is
43
- no longer maintained. The idea was to translate the original Qwt C++ code to
44
- Python and then to optimize some parts of the code by writing new modules
45
- based on NumPy and other libraries.
46
-
47
- The ``PythonQwt`` package consists of a single Python package named `qwt`
48
- which is a pure Python implementation of Qwt C++ library with some
49
- limitations: efforts were concentrated on basic plotting features, leaving
50
- higher level features to the `guiqwt` library.
51
-
52
- See `README`_ and documentation (`online`_ or `PDF`_) for more details on the library and `changelog`_ for recent history of changes.
53
-
54
- The following example is a good starting point to see how to set up a simple plot widget::
55
-
56
- from qtpy import QtWidgets as QW
57
- import qwt
58
- import numpy as np
59
-
60
- app = QW.QApplication([])
61
- x = np.linspace(-10, 10, 500)
62
- plot = qwt.QwtPlot("Trigonometric functions")
63
- plot.insertLegend(qwt.QwtLegend(), qwt.QwtPlot.BottomLegend)
64
- qwt.QwtPlotCurve.make(x, np.cos(x), "Cosinus", plot, linecolor="red", antialiased=True)
65
- qwt.QwtPlotCurve.make(x, np.sin(x), "Sinus", plot, linecolor="blue", antialiased=True)
66
- plot.resize(600, 300)
67
- plot.show()
68
- app.exec_()
69
-
70
- .. image:: https://raw.githubusercontent.com/PierreRaybaut/PythonQwt/master/doc/_static/QwtPlot_example.png
71
-
72
- .. _README: https://github.com/PlotPyStack/PythonQwt/blob/master/README.md
73
- .. _online: https://pythonqwt.readthedocs.io/en/latest/
74
- .. _PDF: https://pythonqwt.readthedocs.io/_/downloads/en/latest/pdf/
75
- .. _changelog: https://github.com/PlotPyStack/PythonQwt/blob/master/CHANGELOG.md
76
-
77
-
1
+ Metadata-Version: 2.1
2
+ Name: PythonQwt
3
+ Version: 0.10.4
4
+ Summary: Qt plotting widgets for Python
5
+ Home-page: https://github.com/PlotPyStack/PythonQwt
6
+ Author: Pierre Raybaut
7
+ Author-email: pierre.raybaut@gmail.com
8
+ Platform: Any
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Topic :: Scientific/Engineering :: Visualization
13
+ Classifier: Topic :: Software Development :: Widget Sets
14
+ Classifier: Operating System :: MacOS
15
+ Classifier: Operating System :: Microsoft :: Windows
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Operating System :: POSIX
18
+ Classifier: Operating System :: Unix
19
+ Classifier: Programming Language :: Python :: 3
20
+ License-File: LICENSE
21
+ Requires-Dist: NumPy (>=1.5)
22
+ Requires-Dist: QtPy (>=1.3)
23
+ Provides-Extra: doc
24
+ Requires-Dist: Sphinx (>=1.1) ; extra == 'doc'
25
+ Provides-Extra: test
26
+ Requires-Dist: coverage ; extra == 'test'
27
+ Requires-Dist: pytest ; extra == 'test'
28
+ Requires-Dist: pytest-qt ; extra == 'test'
29
+ Requires-Dist: pytest-cov ; extra == 'test'
30
+
31
+ PythonQwt: Qt plotting widgets for Python
32
+ =========================================
33
+
34
+ .. image:: https://raw.githubusercontent.com/PierreRaybaut/PythonQwt/master/qwt/tests/data/testlauncher.png
35
+
36
+ The ``PythonQwt`` package is a 2D-data plotting library using Qt graphical
37
+ user interfaces for the Python programming language. It is compatible with
38
+ ``PyQt4``, ``PyQt5``, ``PyQt6`` and ``PySide6``.
39
+
40
+ The ``PythonQwt`` project was initiated to solve -at least temporarily- the
41
+ obsolescence issue of `PyQwt` (the Python-Qwt C++ bindings library) which is
42
+ no longer maintained. The idea was to translate the original Qwt C++ code to
43
+ Python and then to optimize some parts of the code by writing new modules
44
+ based on NumPy and other libraries.
45
+
46
+ The ``PythonQwt`` package consists of a single Python package named `qwt`
47
+ which is a pure Python implementation of Qwt C++ library with some
48
+ limitations: efforts were concentrated on basic plotting features, leaving
49
+ higher level features to the `guiqwt` library.
50
+
51
+ See `README`_ and documentation (`online`_ or `PDF`_) for more details on the library and `changelog`_ for recent history of changes.
52
+
53
+ The following example is a good starting point to see how to set up a simple plot widget::
54
+
55
+ from qtpy import QtWidgets as QW
56
+ import qwt
57
+ import numpy as np
58
+
59
+ app = QW.QApplication([])
60
+ x = np.linspace(-10, 10, 500)
61
+ plot = qwt.QwtPlot("Trigonometric functions")
62
+ plot.insertLegend(qwt.QwtLegend(), qwt.QwtPlot.BottomLegend)
63
+ qwt.QwtPlotCurve.make(x, np.cos(x), "Cosinus", plot, linecolor="red", antialiased=True)
64
+ qwt.QwtPlotCurve.make(x, np.sin(x), "Sinus", plot, linecolor="blue", antialiased=True)
65
+ plot.resize(600, 300)
66
+ plot.show()
67
+ app.exec_()
68
+
69
+ .. image:: https://raw.githubusercontent.com/PierreRaybaut/PythonQwt/master/doc/_static/QwtPlot_example.png
70
+
71
+ .. _README: https://github.com/PlotPyStack/PythonQwt/blob/master/README.md
72
+ .. _online: https://pythonqwt.readthedocs.io/en/latest/
73
+ .. _PDF: https://pythonqwt.readthedocs.io/_/downloads/en/latest/pdf/
74
+ .. _changelog: https://github.com/PlotPyStack/PythonQwt/blob/master/CHANGELOG.md
@@ -1,4 +1,4 @@
1
- qwt/__init__.py,sha256=4LVXaomFIkYQOlVKCi4UmgiDeKUGgmQyhdmDwYrOv5c,5800
1
+ qwt/__init__.py,sha256=KtaS7yoAuV0dieZcZhp7CxEUCiTsTUoJpFP1-t4I474,5800
2
2
  qwt/_math.py,sha256=Xut9qwwwnzykC5YV2H3h9F4W9z8jv61ckPtMt941hVQ,1584
3
3
  qwt/color_map.py,sha256=LkeEyZcZ60rfceZ-G6YwuY6ljjBoDfYr9NDJtX_hqGE,11824
4
4
  qwt/column_symbol.py,sha256=gY57VFgmLo0JwT-7AK7ITli61WzUAdQptQTcYHQbUdo,5720
@@ -16,7 +16,7 @@ qwt/plot_directpainter.py,sha256=TrgiFLdHu2DH-V_aOfH4DQawTaZUaS3EZxTQ-eWRyJc,105
16
16
  qwt/plot_grid.py,sha256=w4bJhR5VDvoXF0dwjcejYIF6t5nZz7vG1Jdq5g3h_1c,16563
17
17
  qwt/plot_layout.py,sha256=FhQVYDtvsuvJJqhUAcBbGUt4uUBQZ_N7UrZEvJUrzjk,45829
18
18
  qwt/plot_marker.py,sha256=ADrdoYaaRqTiyHt3ypAX_9CQvRPyE6GV3Vrm-6K2m88,21272
19
- qwt/plot_renderer.py,sha256=BdDd1dfIqzGdDwtPf0Eoiz08rH_nLkwXxtF18av4sws,26672
19
+ qwt/plot_renderer.py,sha256=Tf5aHc3mCs7YlClBEsyXozoMAMenxtt24MHJ7gOUklQ,26663
20
20
  qwt/plot_series.py,sha256=H-fUfw-0Edfrn8PIpaRQ1T1yqrHMuMDcNJffrM61aHE,11043
21
21
  qwt/qthelpers.py,sha256=koM5xFt2WQCG4JZyu96AdSB4END_CoFn4ivd1rVXcnU,1585
22
22
  qwt/scale_div.py,sha256=pZmsg-PIof3yAeLTfiFMC3tMvNSSMHomkYWnAe3eEjw,9276
@@ -70,9 +70,9 @@ qwt/tests/data/simple.png,sha256=78MdmZfA4F4tyjnvEw0jWD5wh5OEK1LjUb_Mxo7QHok,157
70
70
  qwt/tests/data/stylesheet.png,sha256=ZjWURAS_eYB5cyLmkQrUg7bTSv-V3uIm6q8FGQjGnFc,13160
71
71
  qwt/tests/data/testlauncher.png,sha256=lb6rUnlpY1Q-rezdG6gAtWMWwY5PX58Zuq6338bI8kY,110858
72
72
  qwt/tests/data/vertical.png,sha256=EvyG6q6rZm6pTT08Y_nzdBYCnqmoX1QDuEQtp2pyGlw,34076
73
- PythonQwt-0.10.3.dist-info/LICENSE,sha256=qjEk8TRuXmFS7QC-omINvD1UPGqWaOs6CzcCZoMEhdI,33457
74
- PythonQwt-0.10.3.dist-info/METADATA,sha256=lo5WMU28ZnKKZT6A8PTY0FoT4JKQRvCR-_BrW5SK7p4,3262
75
- PythonQwt-0.10.3.dist-info/WHEEL,sha256=Z-nyYpwrcSqxfdux5Mbn_DQ525iP7J2DG3JgGvOYyTQ,110
76
- PythonQwt-0.10.3.dist-info/entry_points.txt,sha256=jdJ_NZX3fpcuapzdJ948j05nLZrSSlT43jEA2EYoy2k,108
77
- PythonQwt-0.10.3.dist-info/top_level.txt,sha256=KB1IBdWRWnaItyJMaECwZiEi1jWt3IvqCrRVVhMjTu8,4
78
- PythonQwt-0.10.3.dist-info/RECORD,,
73
+ PythonQwt-0.10.4.dist-info/LICENSE,sha256=qjEk8TRuXmFS7QC-omINvD1UPGqWaOs6CzcCZoMEhdI,33457
74
+ PythonQwt-0.10.4.dist-info/METADATA,sha256=UF-RXk3Z0zncgGNjCOtluEU6ZXXeKen7oHyNAYGJfnI,3317
75
+ PythonQwt-0.10.4.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
76
+ PythonQwt-0.10.4.dist-info/entry_points.txt,sha256=wSH-OHXrA7c0ymhYRcBFLhBsMqOiw9gofXVe_5UIBYA,107
77
+ PythonQwt-0.10.4.dist-info/top_level.txt,sha256=KB1IBdWRWnaItyJMaECwZiEi1jWt3IvqCrRVVhMjTu8,4
78
+ PythonQwt-0.10.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.36.2)
2
+ Generator: bdist_wheel (0.40.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ PythonQwt-tests = qwt.tests:run [Tests]
3
+
4
+ [gui_scripts]
5
+ PythonQwt = qwt.tests:run [Tests]
qwt/__init__.py CHANGED
@@ -27,7 +27,7 @@ External resources:
27
27
  .. _GitHub: https://github.com/PlotPyStack/PythonQwt
28
28
  """
29
29
 
30
- __version__ = "0.10.3"
30
+ __version__ = "0.10.4"
31
31
  QWT_VERSION_STR = "6.1.5"
32
32
 
33
33
  import warnings
qwt/plot_renderer.py CHANGED
@@ -356,7 +356,7 @@ class QwtPlotRenderer(QObject):
356
356
  invtrans, _ok = transform.inverted()
357
357
  layoutRect = invtrans.mapRect(plotRect)
358
358
  if not (self.__data.discardFlags & self.DiscardBackground):
359
- left, top, right, bottom = plot.layout().getContentsMargins()
359
+ left, top, right, bottom = plot.getContentsMargins()
360
360
  layoutRect.adjust(left, top, -right, -bottom)
361
361
 
362
362
  layout = plot.plotLayout()
@@ -1,6 +0,0 @@
1
- [console_scripts]
2
- PythonQwt-tests = qwt.tests:run [tests]
3
-
4
- [gui_scripts]
5
- PythonQwt = qwt.tests:run [tests]
6
-