PythonQwt 0.14.3__py3-none-any.whl → 0.14.4__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,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: PythonQwt
3
- Version: 0.14.3
3
+ Version: 0.14.4
4
4
  Summary: Qt plotting widgets for Python
5
5
  Author-email: Pierre Raybaut <pierre.raybaut@gmail.com>
6
6
  License: PythonQwt License Agreement
@@ -1,4 +1,4 @@
1
- qwt/__init__.py,sha256=hjhBzkdip76BeZsybggyuPPEWmqrLfK9ksMQqCbJFUI,5917
1
+ qwt/__init__.py,sha256=0hOH-gcqLTxEDmC5n6WdR0u-oN8o_TQ5MxywimYE8uk,5917
2
2
  qwt/_math.py,sha256=fNcPJcaK-ldCCFB20T2N58LEkQ1lwZY1-q5veXXhwl8,1501
3
3
  qwt/color_map.py,sha256=fLRpymqOXtLrhuPrbbCxTvNINbr2GH7pYBG4fZidrcs,11812
4
4
  qwt/column_symbol.py,sha256=0aFyQ05ryTKbaSTctkhtXa0pB_tWG444zlH3991_bt0,5760
@@ -9,7 +9,7 @@ qwt/legend.py,sha256=GBUim67HWgwLat5tOWDpK98fWcFxV-RkxWjoyWd9Gao,31313
9
9
  qwt/null_paintdevice.py,sha256=AAVyQCVgZKyIw7i-J9ElB0_-8KRV9OXDr140TwMxLSs,9144
10
10
  qwt/painter.py,sha256=UGh-MC_9qw3fNF9GJ_1xbcAkVG6hD5op7jg9M2CcIXI,16527
11
11
  qwt/painter_command.py,sha256=b_uZb56YlzYFG3ZmB5ykjkBQQAadQD8epknsQSEai54,6957
12
- qwt/plot.py,sha256=Rx-LpB7j__n-kzeMFwvLgQmxkUbXByDDjGtuKc55smg,75605
12
+ qwt/plot.py,sha256=_RPXQKSkEP7Dh6PWIjEuGiR_BsMQkj4DbUZvRtxYJeE,75613
13
13
  qwt/plot_canvas.py,sha256=eYcXJgVc7MaDk5UzSjhcTmc6ptyQWApeaRKWSoi_jeE,30317
14
14
  qwt/plot_curve.py,sha256=ilb1ts7E-Ql-IE3eigjmb5LwjdCf7LMPBlYuu_cjKPw,37061
15
15
  qwt/plot_directpainter.py,sha256=JCWNhCC21L1A1HZnxd-C95QNlrVJbLztmGab-X8gCGc,10165
@@ -21,7 +21,7 @@ qwt/plot_series.py,sha256=Wa_Wunu-t_L8vl95RJq6__k-XA8UV2YNIsc8yNGpTT8,10654
21
21
  qwt/qthelpers.py,sha256=GpvLr96Ip8SIGwyFfs0f7ocHyKPB7PEjHBQyrpw84xw,1405
22
22
  qwt/scale_div.py,sha256=2Ay5mgduXgSm4OrDMcaEWIzenAiBuEASZRoX99PWEE4,9276
23
23
  qwt/scale_draw.py,sha256=DvknvoOpEerVqplH-fbEtXQlXrFebUGz-1eS5qJdDWI,36760
24
- qwt/scale_engine.py,sha256=TYrVHOrPhRMQ0G_xbsYYSANZ2Wnh-ifapwsgne5X3IM,30012
24
+ qwt/scale_engine.py,sha256=HOw5rLriO81p6CyeG9FdZzb0OVBkO9Y4-AQz33GZj-0,30002
25
25
  qwt/scale_map.py,sha256=WobkNna6_RPXYZjGK7gZLykNxN_kYnrcB6fEaWgnL2w,9182
26
26
  qwt/scale_widget.py,sha256=p202DrRgMraGbVcubzkatvVXOLbO9CPho729hz6gqa0,27125
27
27
  qwt/symbol.py,sha256=DYMMelQkP7vr8WGo3EFM72CzcWpZEHEYohlLXZEtCsI,39170
@@ -34,7 +34,7 @@ qwt/tests/conftest.py,sha256=akpTe2ofWLsMKqpbxqYURpLOmCdEdXa8MccB1E0GG5M,1690
34
34
  qwt/tests/test_backingstore.py,sha256=AIiRPqcNPY1riXSQXU43tqB2_z02PhxmK1zA4OxQixM,524
35
35
  qwt/tests/test_bodedemo.py,sha256=bOIApjBQA1J4aZkVBnzByiKqhqEcmQpag1TvIfsuHMs,9386
36
36
  qwt/tests/test_cartesian.py,sha256=0VCrvclqbQJSEGhWpZLq6brA9Qm9oRIgluEBbxOTOds,3855
37
- qwt/tests/test_cpudemo.py,sha256=ss4TXlJelYdj9ylaQkuFhCPm1R4htxoWiVugFT6I06M,12843
37
+ qwt/tests/test_cpudemo.py,sha256=E2kwRO6sUh9WSZ08FABmQBhfH2bQ49JCYXPUpoonAS0,12846
38
38
  qwt/tests/test_curvebenchmark1.py,sha256=a53CvA149Ng1Vj4oruKo4Gp952-0A5gLXvRPOiNSYQk,5891
39
39
  qwt/tests/test_curvebenchmark2.py,sha256=5TYkVuWuP8-Tp7gphsaF_ys3cufHkzKstFDHb9BCOAg,2720
40
40
  qwt/tests/test_curvedemo1.py,sha256=3jAq_pQ52F2HyO3WlDWUn43vNVw8q_g5OQ_hcseaD4s,4181
@@ -76,9 +76,9 @@ qwt/tests/data/symbol.svg,sha256=ONkkohVqpg3OO2-XEZge7UZLqqNyOQXbSpLgHXcTBFU,127
76
76
  qwt/tests/data/symbols.png,sha256=wiqRBc2MJluJ-am9LtZ0K9DHV9BnreYMiEvfzJUFzCk,55586
77
77
  qwt/tests/data/testlauncher.png,sha256=WmucObp30QYYKsVRBs5-6t1aEN0FbIWRmOVFN1gt-vQ,139676
78
78
  qwt/tests/data/vertical.png,sha256=EvyG6q6rZm6pTT08Y_nzdBYCnqmoX1QDuEQtp2pyGlw,34076
79
- PythonQwt-0.14.3.dist-info/LICENSE,sha256=qjEk8TRuXmFS7QC-omINvD1UPGqWaOs6CzcCZoMEhdI,33457
80
- PythonQwt-0.14.3.dist-info/METADATA,sha256=t-vBSbZy9XMLVsZysV97eFcFsD_0VrRVVXrdHznDD3Y,45077
81
- PythonQwt-0.14.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
82
- PythonQwt-0.14.3.dist-info/entry_points.txt,sha256=pdPda-YcYigCi00hR4tMxWKu6byxM2x3zA8BQFDYvwI,46
83
- PythonQwt-0.14.3.dist-info/top_level.txt,sha256=KB1IBdWRWnaItyJMaECwZiEi1jWt3IvqCrRVVhMjTu8,4
84
- PythonQwt-0.14.3.dist-info/RECORD,,
79
+ PythonQwt-0.14.4.dist-info/LICENSE,sha256=qjEk8TRuXmFS7QC-omINvD1UPGqWaOs6CzcCZoMEhdI,33457
80
+ PythonQwt-0.14.4.dist-info/METADATA,sha256=sPEkl_YuQgSoSGFumxPOhPeUjulgeAxI64fhzOLG0fw,45077
81
+ PythonQwt-0.14.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
82
+ PythonQwt-0.14.4.dist-info/entry_points.txt,sha256=pdPda-YcYigCi00hR4tMxWKu6byxM2x3zA8BQFDYvwI,46
83
+ PythonQwt-0.14.4.dist-info/top_level.txt,sha256=KB1IBdWRWnaItyJMaECwZiEi1jWt3IvqCrRVVhMjTu8,4
84
+ PythonQwt-0.14.4.dist-info/RECORD,,
qwt/__init__.py CHANGED
@@ -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.3"
58
+ __version__ = "0.14.4"
59
59
  QWT_VERSION_STR = "6.1.5"
60
60
 
61
61
 
qwt/plot.py CHANGED
@@ -1391,7 +1391,7 @@ class QwtPlot(QFrame):
1391
1391
  :py:meth:`QwtPlotItem.getCanvasMarginHint()`
1392
1392
  """
1393
1393
  maps = [self.canvasMap(axisId) for axisId in self.AXES]
1394
- self.drawItems(painter, self.__data.canvas.contentsRect(), maps)
1394
+ self.drawItems(painter, QRectF(self.__data.canvas.contentsRect()), maps)
1395
1395
 
1396
1396
  def drawItems(self, painter, canvasRect, maps):
1397
1397
  """
qwt/scale_engine.py CHANGED
@@ -198,7 +198,7 @@ class QwtScaleEngine(object):
198
198
  self.__data = QwtScaleEngine_PrivateData()
199
199
  self.setBase(base)
200
200
 
201
- def autoScale(self, maxNumSteps, x1, x2, stepSize, relative_margin=0.0):
201
+ def autoScale(self, maxNumSteps, x1, x2, stepSize, relativeMargin=0.0):
202
202
  """
203
203
  Align and divide an interval
204
204
 
@@ -206,7 +206,7 @@ class QwtScaleEngine(object):
206
206
  :param float x1: First limit of the interval (In/Out)
207
207
  :param float x2: Second limit of the interval (In/Out)
208
208
  :param float stepSize: Step size
209
- :param float relative_margin: Margin as a fraction of the interval width
209
+ :param float relativeMargin: Margin as a fraction of the interval width
210
210
  :return: tuple (x1, x2, stepSize)
211
211
  """
212
212
  pass
@@ -474,7 +474,7 @@ class QwtLinearScaleEngine(QwtScaleEngine):
474
474
  def __init__(self, base=10):
475
475
  super(QwtLinearScaleEngine, self).__init__(base)
476
476
 
477
- def autoScale(self, maxNumSteps, x1, x2, stepSize, relative_margin=0.0):
477
+ def autoScale(self, maxNumSteps, x1, x2, stepSize, relativeMargin=0.0):
478
478
  """
479
479
  Align and divide an interval
480
480
 
@@ -482,7 +482,7 @@ class QwtLinearScaleEngine(QwtScaleEngine):
482
482
  :param float x1: First limit of the interval (In/Out)
483
483
  :param float x2: Second limit of the interval (In/Out)
484
484
  :param float stepSize: Step size
485
- :param float relative_margin: Margin as a fraction of the interval width
485
+ :param float relativeMargin: Margin as a fraction of the interval width
486
486
  :return: tuple (x1, x2, stepSize)
487
487
 
488
488
  .. seealso::
@@ -490,8 +490,8 @@ class QwtLinearScaleEngine(QwtScaleEngine):
490
490
  :py:meth:`setAttribute()`
491
491
  """
492
492
  # Apply the relative margin (fraction of the interval width) in linear space:
493
- if relative_margin > 0.0:
494
- margin = (x2 - x1) * relative_margin
493
+ if relativeMargin > 0.0:
494
+ margin = (x2 - x1) * relativeMargin
495
495
  x1 -= margin
496
496
  x2 += margin
497
497
 
@@ -648,7 +648,7 @@ class QwtLogScaleEngine(QwtScaleEngine):
648
648
  super(QwtLogScaleEngine, self).__init__(base)
649
649
  self.setTransformation(QwtLogTransform())
650
650
 
651
- def autoScale(self, maxNumSteps, x1, x2, stepSize, relative_margin=0.0):
651
+ def autoScale(self, maxNumSteps, x1, x2, stepSize, relativeMargin=0.0):
652
652
  """
653
653
  Align and divide an interval
654
654
 
@@ -656,7 +656,7 @@ class QwtLogScaleEngine(QwtScaleEngine):
656
656
  :param float x1: First limit of the interval (In/Out)
657
657
  :param float x2: Second limit of the interval (In/Out)
658
658
  :param float stepSize: Step size
659
- :param float relative_margin: Margin as a fraction of the interval width
659
+ :param float relativeMargin: Margin as a fraction of the interval width
660
660
  :return: tuple (x1, x2, stepSize)
661
661
 
662
662
  .. seealso::
@@ -669,10 +669,10 @@ class QwtLogScaleEngine(QwtScaleEngine):
669
669
 
670
670
  # Apply the relative margin (fraction of the interval width) in logarithmic
671
671
  # space, and convert back to linear space.
672
- if relative_margin is not None:
672
+ if relativeMargin is not None:
673
673
  x1 = min(max([x1, LOG_MIN]), LOG_MAX)
674
674
  x2 = min(max([x2, LOG_MIN]), LOG_MAX)
675
- log_margin = math.log(x2 / x1, logBase) * relative_margin
675
+ log_margin = math.log(x2 / x1, logBase) * relativeMargin
676
676
  x1 /= math.pow(logBase, log_margin)
677
677
  x2 *= math.pow(logBase, log_margin)
678
678
 
qwt/tests/test_cpudemo.py CHANGED
@@ -11,7 +11,7 @@ SHOW = True # Show test in GUI-based test launcher
11
11
  import os
12
12
 
13
13
  import numpy as np
14
- from qtpy.QtCore import QRect, Qt, QTime
14
+ from qtpy.QtCore import QRectF, Qt, QTime
15
15
  from qtpy.QtGui import QBrush, QColor
16
16
  from qtpy.QtWidgets import QLabel, QVBoxLayout, QWidget
17
17
 
@@ -225,7 +225,7 @@ class CpuPieMarker(QwtPlotMarker):
225
225
 
226
226
  def draw(self, painter, xMap, yMap, rect):
227
227
  margin = 5
228
- pieRect = QRect()
228
+ pieRect = QRectF()
229
229
  pieRect.setX(rect.x() + margin)
230
230
  pieRect.setY(rect.y() + margin)
231
231
  pieRect.setHeight(int(yMap.transform(80.0)))
@@ -263,7 +263,7 @@ class Background(QwtPlotItem):
263
263
 
264
264
  def draw(self, painter, xMap, yMap, rect):
265
265
  c = QColor(Qt.white)
266
- r = QRect(rect)
266
+ r = QRectF(rect)
267
267
 
268
268
  for i in range(100, 0, -10):
269
269
  r.setBottom(int(yMap.transform(i - 10)))