PythonQwt 0.14.4__tar.gz → 0.14.6__tar.gz
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.
- {pythonqwt-0.14.4/PythonQwt.egg-info → pythonqwt-0.14.6}/PKG-INFO +3 -2
- {pythonqwt-0.14.4 → pythonqwt-0.14.6/PythonQwt.egg-info}/PKG-INFO +3 -2
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/pyproject.toml +1 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/__init__.py +5 -5
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/graphic.py +7 -7
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/painter.py +1 -1
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/plot.py +1 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/plot_canvas.py +9 -13
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/plot_curve.py +1 -2
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/symbol.py +1 -2
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/transform.py +2 -1
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/LICENSE +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/MANIFEST.in +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/PythonQwt-tests.desktop +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/PythonQwt.egg-info/SOURCES.txt +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/PythonQwt.egg-info/dependency_links.txt +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/PythonQwt.egg-info/entry_points.txt +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/PythonQwt.egg-info/requires.txt +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/PythonQwt.egg-info/top_level.txt +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/README.md +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/_static/PythonQwt_logo.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/_static/QwtPlot_example.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/_static/panorama.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/_static/symbol_path_example.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/conf.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/bodedemo.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/cartesian.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/cpudemo.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/curvebenchmark1.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/curvebenchmark2.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/curvedemo1.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/curvedemo2.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/data.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/errorbar.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/eventfilter.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/image.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/index.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/logcurve.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/mapdemo.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/multidemo.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/simple.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/examples/vertical.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/index.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/installation.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/overview.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/plot_example.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/graphic.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/index.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/interval.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/plot.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/plot_directpainter.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/plot_layout.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/plot_series.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/scale.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/symbol.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/text.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/toqimage.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/reference/transform.rst +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/requirements.txt +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/doc/symbol_path_example.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/_math.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/color_map.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/column_symbol.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/dyngrid_layout.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/interval.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/legend.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/null_paintdevice.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/painter_command.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/plot_directpainter.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/plot_grid.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/plot_layout.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/plot_marker.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/plot_renderer.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/plot_series.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/qthelpers.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/scale_div.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/scale_draw.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/scale_engine.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/scale_map.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/scale_widget.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/__init__.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/comparative_benchmarks.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/conftest.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/PythonQwt.svg +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/bodedemo.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/cartesian.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/cpudemo.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/curvebenchmark1.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/curvebenchmark2.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/curvedemo1.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/curvedemo2.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/data.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/errorbar.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/eventfilter.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/image.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/loadtest.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/logcurve.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/mapdemo.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/multidemo.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/simple.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/stylesheet.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/symbol.svg +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/symbols.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/testlauncher.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/data/vertical.png +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_backingstore.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_bodedemo.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_cartesian.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_cpudemo.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_curvebenchmark1.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_curvebenchmark2.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_curvedemo1.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_curvedemo2.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_data.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_errorbar.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_eventfilter.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_highdpi.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_image.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_loadtest.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_logcurve.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_mapdemo.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_multidemo.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_relativemargin.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_simple.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_stylesheet.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_symbols.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/test_vertical.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/tests/utils.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/text.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/qwt/toqimage.py +0 -0
- {pythonqwt-0.14.4 → pythonqwt-0.14.6}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: PythonQwt
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.6
|
|
4
4
|
Summary: Qt plotting widgets for Python
|
|
5
5
|
Author-email: Pierre Raybaut <pierre.raybaut@gmail.com>
|
|
6
6
|
License: PythonQwt License Agreement
|
|
@@ -699,6 +699,7 @@ Requires-Dist: python-docs-theme; extra == "doc"
|
|
|
699
699
|
Provides-Extra: test
|
|
700
700
|
Requires-Dist: pytest; extra == "test"
|
|
701
701
|
Requires-Dist: pytest-xvfb; extra == "test"
|
|
702
|
+
Dynamic: license-file
|
|
702
703
|
|
|
703
704
|
# PythonQwt: Qt plotting widgets for Python
|
|
704
705
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: PythonQwt
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.6
|
|
4
4
|
Summary: Qt plotting widgets for Python
|
|
5
5
|
Author-email: Pierre Raybaut <pierre.raybaut@gmail.com>
|
|
6
6
|
License: PythonQwt License Agreement
|
|
@@ -699,6 +699,7 @@ Requires-Dist: python-docs-theme; extra == "doc"
|
|
|
699
699
|
Provides-Extra: test
|
|
700
700
|
Requires-Dist: pytest; extra == "test"
|
|
701
701
|
Requires-Dist: pytest-xvfb; extra == "test"
|
|
702
|
+
Dynamic: license-file
|
|
702
703
|
|
|
703
704
|
# PythonQwt: Qt plotting widgets for Python
|
|
704
705
|
|
|
@@ -55,7 +55,7 @@ from qwt.symbol import QwtSymbol as QSbl # see deprecated section
|
|
|
55
55
|
from qwt.text import QwtText # noqa: F401
|
|
56
56
|
from qwt.toqimage import array_to_qimage as toQImage # noqa: F401
|
|
57
57
|
|
|
58
|
-
__version__ = "0.14.
|
|
58
|
+
__version__ = "0.14.6"
|
|
59
59
|
QWT_VERSION_STR = "6.1.5"
|
|
60
60
|
|
|
61
61
|
|
|
@@ -132,28 +132,28 @@ class QwtSymbol(QSbl):
|
|
|
132
132
|
class QwtPlotGrid(QPG):
|
|
133
133
|
def majPen(self):
|
|
134
134
|
warnings.warn(
|
|
135
|
-
"`majPen` has been removed in Qwt6:
|
|
135
|
+
"`majPen` has been removed in Qwt6: please use `majorPen` instead",
|
|
136
136
|
RuntimeWarning,
|
|
137
137
|
)
|
|
138
138
|
return self.majorPen()
|
|
139
139
|
|
|
140
140
|
def minPen(self):
|
|
141
141
|
warnings.warn(
|
|
142
|
-
"`minPen` has been removed in Qwt6:
|
|
142
|
+
"`minPen` has been removed in Qwt6: please use `minorPen` instead",
|
|
143
143
|
RuntimeWarning,
|
|
144
144
|
)
|
|
145
145
|
return self.minorPen()
|
|
146
146
|
|
|
147
147
|
def setMajPen(self, *args):
|
|
148
148
|
warnings.warn(
|
|
149
|
-
"`setMajPen` has been removed in Qwt6:
|
|
149
|
+
"`setMajPen` has been removed in Qwt6: please use `setMajorPen` instead",
|
|
150
150
|
RuntimeWarning,
|
|
151
151
|
)
|
|
152
152
|
return self.setMajorPen(*args)
|
|
153
153
|
|
|
154
154
|
def setMinPen(self, *args):
|
|
155
155
|
warnings.warn(
|
|
156
|
-
"`setMinPen` has been removed in Qwt6:
|
|
156
|
+
"`setMinPen` has been removed in Qwt6: please use `setMinorPen` instead",
|
|
157
157
|
RuntimeWarning,
|
|
158
158
|
)
|
|
159
159
|
return self.setMinorPen(*args)
|
|
@@ -139,20 +139,20 @@ class PathInfo(object):
|
|
|
139
139
|
rect = transform.mapRect(self.__boundingRect)
|
|
140
140
|
else:
|
|
141
141
|
rect = transform.mapRect(self.__pointRect)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
rect.adjust(-
|
|
142
|
+
left_diff = abs(self.__pointRect.left() - self.__boundingRect.left())
|
|
143
|
+
right_diff = abs(self.__pointRect.right() - self.__boundingRect.right())
|
|
144
|
+
top_diff = abs(self.__pointRect.top() - self.__boundingRect.top())
|
|
145
|
+
bottom_diff = abs(self.__pointRect.bottom() - self.__boundingRect.bottom())
|
|
146
|
+
rect.adjust(-left_diff, -top_diff, right_diff, bottom_diff)
|
|
147
147
|
return rect
|
|
148
148
|
|
|
149
149
|
def scaleFactorX(self, pathRect, targetRect, scalePens):
|
|
150
150
|
if pathRect.width() <= 0.0:
|
|
151
151
|
return 0.0
|
|
152
152
|
p0 = self.__pointRect.center()
|
|
153
|
-
|
|
153
|
+
left_diff = abs(pathRect.left() - p0.x())
|
|
154
154
|
r = abs(pathRect.right() - p0.x())
|
|
155
|
-
w = 2.0 * min([
|
|
155
|
+
w = 2.0 * min([left_diff, r]) * targetRect.width() / pathRect.width()
|
|
156
156
|
if scalePens and self.__scalablePen:
|
|
157
157
|
sx = w / self.__boundingRect.width()
|
|
158
158
|
else:
|
|
@@ -393,7 +393,7 @@ class QwtPainterClass(object):
|
|
|
393
393
|
if widget.testAttribute(Qt.WA_StyledBackground):
|
|
394
394
|
opt = QStyleOption()
|
|
395
395
|
opt.initFrom(widget)
|
|
396
|
-
opt.rect = rect
|
|
396
|
+
opt.rect = rect.toRect()
|
|
397
397
|
widget.style().drawPrimitive(QStyle.PE_Widget, opt, painter, widget)
|
|
398
398
|
else:
|
|
399
399
|
brush = widget.palette().brush(widget.backgroundRole())
|
|
@@ -1553,6 +1553,7 @@ class QwtPlot(QFrame):
|
|
|
1553
1553
|
self.__data.layout.setLegendPosition(pos, ratio)
|
|
1554
1554
|
if legend != self.__data.legend:
|
|
1555
1555
|
if self.__data.legend and self.__data.legend.parent() is self:
|
|
1556
|
+
self.__data.legend.setParent(None)
|
|
1556
1557
|
del self.__data.legend
|
|
1557
1558
|
self.__data.legend = legend
|
|
1558
1559
|
if self.__data.legend:
|
|
@@ -13,7 +13,7 @@ QwtPlotCanvas
|
|
|
13
13
|
:members:
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
import
|
|
16
|
+
from collections.abc import Sequence
|
|
17
17
|
|
|
18
18
|
from qtpy.QtCore import QEvent, QObject, QPoint, QPointF, QRect, QRectF, QSize, Qt
|
|
19
19
|
from qtpy.QtGui import (
|
|
@@ -34,8 +34,6 @@ from qtpy.QtWidgets import QFrame, QStyle, QStyleOption, QStyleOptionFrame
|
|
|
34
34
|
from qwt.null_paintdevice import QwtNullPaintDevice
|
|
35
35
|
from qwt.painter import QwtPainter
|
|
36
36
|
|
|
37
|
-
QT_API = os.environ["QT_API"]
|
|
38
|
-
|
|
39
37
|
|
|
40
38
|
class Border(object):
|
|
41
39
|
def __init__(self):
|
|
@@ -71,17 +69,15 @@ class QwtStyleSheetRecorder(QwtNullPaintDevice):
|
|
|
71
69
|
self.__origin = state.brushOrigin()
|
|
72
70
|
|
|
73
71
|
def drawRects(self, rects, count):
|
|
74
|
-
if
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
else:
|
|
79
|
-
for i in range(count):
|
|
80
|
-
self.border.rectList += [rects.getRect().index(i)]
|
|
72
|
+
if isinstance(rects, (QRect, QRectF)):
|
|
73
|
+
self.border.rectList = [QRectF(rects)]
|
|
74
|
+
elif isinstance(rects, Sequence):
|
|
75
|
+
self.border.rectList.extend(QRectF(rects[i]) for i in range(count))
|
|
81
76
|
else:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
raise TypeError(
|
|
78
|
+
"drawRects() expects a QRect, QRectF or a sequence of them, "
|
|
79
|
+
f"but got {type(rects).__name__}"
|
|
80
|
+
)
|
|
85
81
|
|
|
86
82
|
def drawPath(self, path):
|
|
87
83
|
rect = QRectF(QPointF(0.0, 0.0), self.__size)
|
|
@@ -16,6 +16,7 @@ QwtPlotCurve
|
|
|
16
16
|
import math
|
|
17
17
|
import os
|
|
18
18
|
|
|
19
|
+
import numpy as np
|
|
19
20
|
from qtpy.QtCore import QLineF, QPointF, QRectF, QSize, Qt
|
|
20
21
|
from qtpy.QtGui import QBrush, QColor, QPainter, QPen, QPolygonF
|
|
21
22
|
|
|
@@ -40,8 +41,6 @@ if QT_API == "pyside6":
|
|
|
40
41
|
|
|
41
42
|
import shiboken6 as shiboken
|
|
42
43
|
|
|
43
|
-
import numpy as np
|
|
44
|
-
|
|
45
44
|
|
|
46
45
|
def qwtUpdateLegendIconSize(curve):
|
|
47
46
|
if curve.symbol() and curve.testLegendAttribute(QwtPlotCurve.LegendShowSymbol):
|
|
@@ -1104,8 +1104,7 @@ class QwtSymbol(object):
|
|
|
1104
1104
|
painter.scale(ratio, ratio)
|
|
1105
1105
|
isPinPointEnabled = self.__data.isPinPointEnabled
|
|
1106
1106
|
self.__data.isPinPointEnabled = False
|
|
1107
|
-
|
|
1108
|
-
self.renderSymbols(painter, pos, 1)
|
|
1107
|
+
self.renderSymbols(painter, [QPointF()])
|
|
1109
1108
|
self.__data.isPinPointEnabled = isPinPointEnabled
|
|
1110
1109
|
painter.restore()
|
|
1111
1110
|
|
|
@@ -169,7 +169,8 @@ class QwtLogTransform(QwtTransform):
|
|
|
169
169
|
:param float value: Value to be bounded
|
|
170
170
|
:return: Value modified
|
|
171
171
|
"""
|
|
172
|
-
|
|
172
|
+
bval = np.clip(np.asarray(value, dtype=np.float64), self.LogMin, self.LogMax)
|
|
173
|
+
return bval.item() if bval.ndim == 0 else bval
|
|
173
174
|
|
|
174
175
|
def transform(self, value):
|
|
175
176
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|