PlotPyStack / PythonQwt

Qt plotting widgets for Python (pure Python reimplementation of Qwt C++ library)
https://pypi.org/project/PythonQwt/
Other
86 stars 25 forks source link

PyQt/NumPy types conflict #67

Closed PierreRaybaut closed 1 year ago

PierreRaybaut commented 2 years ago

I: pybuild base:237: xvfb-run -a --server-args="-screen 0 1024x768x24" python3.10 -m qwt.tests.init Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/tests/curvedemo1.py", line 88, in paintEvent self.drawContents(painter) File "/<>/qwt/tests/curvedemo1.py", line 102, in drawContents curve.draw(painter, self.xMap, self.yMap, r) File "/<>/qwt/plot_series.py", line 99, in draw self.drawSeries(painter, xMap, yMap, canvasRect, 0, -1) File "/<>/qwt/plot_curve.py", line 562, in drawSeries self.drawCurve( File "/<>/qwt/plotcurve.py", line 593, in drawCurve self.drawSticks(painter, xMap, yMap, canvasRect, from, to) File "/<>/qwt/plot_curve.py", line 653, in drawSticks painter.drawLine(xi, y0, xi, yi) TypeError: arguments did not match any overloaded call: drawLine(self, QLineF): argument 1 has unexpected type 'float' drawLine(self, QLine): argument 1 has unexpected type 'float' drawLine(self, int, int, int, int): argument 1 has unexpected type 'float' drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float' drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float' Aborted Traceback (most recent call last): File "/<>/qwt/tests/curvedemo2.py", line 85, in paintEvent self.drawContents(painter) File "/<>/qwt/tests/curvedemo2.py", line 92, in drawContents curve.draw(painter, xMap, yMap, r) File "/<>/qwt/plot_series.py", line 99, in draw self.drawSeries(painter, xMap, yMap, canvasRect, 0, -1) File "/<>/qwt/plot_curve.py", line 568, in drawSeries self.drawSymbols( File "/<>/qwt/plot_curve.py", line 837, in drawSymbols symbol.drawSymbols(painter, points) File "/<>/qwt/symbol.py", line 1047, in drawSymbols self.renderSymbols(painter, points, numPoints) File "/<>/qwt/symbol.py", line 1130, in renderSymbols qwtDrawXCrossSymbols(painter, points, numPoints, self) File "/<>/qwt/symbol.py", line 248, in qwtDrawXCrossSymbols painter.drawLine(x1, y1, x2, y2) TypeError: arguments did not match any overloaded call: drawLine(self, QLineF): argument 1 has unexpected type 'float' drawLine(self, QLine): argument 1 has unexpected type 'float' drawLine(self, int, int, int, int): argument 1 has unexpected type 'float' drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float' drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted Traceback (most recent call last): File "/<>/qwt/null_paintdevice.py", line 249, in metric value = self.sizeMetrics().width() File "/<>/qwt/graphic.py", line 386, in sizeMetrics return QSize(np.ceil(sz.width()), np.ceil(sz.height())) TypeError: arguments did not match any overloaded call: QSize(): too many arguments QSize(int, int): argument 1 has unexpected type 'numpy.float64' QSize(QSize): argument 1 has unexpected type 'numpy.float64' Aborted