We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ValueError
PyQt6
1 parent 3c59a11 commit 55d080bCopy full SHA for 55d080b
3 files changed
CHANGELOG.md
@@ -2,8 +2,12 @@
2
3
## Version 2.7.3 ##
4
5
+In this release, test coverage is 80%.
6
+
7
🛠️ Bug fixes:
8
9
+* [Issue #34](https://github.com/PlotPyStack/PlotPy/issues/34) - `ValueError` when trying to plot 2D histogram items with `PyQt6`
10
11
## Version 2.7.2 ##
12
13
plotpy/items/image/misc.py
@@ -39,7 +39,7 @@
39
file=sys.stderr,
40
)
41
print(
42
- ("try running :" "python setup.py build_ext --inplace -c mingw32"),
+ ("try running: python setup.py build_ext --inplace"),
43
44
45
raise
@@ -340,7 +340,7 @@ def drawfunc(*args):
340
return BaseImageItem.draw_image(self, *args)
341
342
if self.fill_canvas:
343
- x1, y1, x2, y2 = canvasRect.getCoords()
+ x1, y1, x2, y2 = canvasRect.toAlignedRect().getCoords()
344
drawfunc(painter, canvasRect, src_rect, (x1, y1, x2, y2), xMap, yMap)
345
else:
346
dst_rect = tuple([int(i) for i in dst_rect])
plotpy/tests/items/test_mandelbrot.py
@@ -47,8 +47,7 @@ def __init__(self, xmin, xmax, ymin, ymax):
47
48
# ---- QwtPlotItem API ------------------------------------------------------
49
def draw_image(self, painter, canvasRect, srcRect, dstRect, xMap, yMap):
50
- x1, y1 = canvasRect.left(), canvasRect.top()
51
- x2, y2 = canvasRect.right(), canvasRect.bottom()
52
i1, j1, i2, j2 = srcRect
53
54
NX = x2 - x1
@@ -58,7 +57,7 @@ def draw_image(self, painter, canvasRect, srcRect, dstRect, xMap, yMap):
58
57
mandelbrot(i1, j1, i2, j2, self.data, self.IMAX)
59
60
srcRect = (0, 0, NX, NY)
61
62
RawImageItem.draw_image(
63
self, painter, canvasRect, srcRect, (x1, y1, x2, y2), xMap, yMap
64
0 commit comments