--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/03453f45-80b6-4e4c-8589-0ca26e131205%40googlegroups.com.
Hi,That is an error that occurs when you attempt to plot data that has a different number of x and y values. I need more information in order to understand why you're getting that error though. What are the shapes in the error? Can you post the whole traceback?Megan
On Tue, May 19, 2020 at 9:17 AM Lavinia B <azpa...@gmail.com> wrote:
Hi,--I have an ImageView in which I set data with mode=rgba. When I try to use the ROI , the plot gives me warnings if the ROI is not perfectly square."..\src\pyqtgraph\pyqtgraph\graphicsItems\PlotCurveItem.py", line 385, in updateDataraise Exception("X and Y arrays must be the same shape--got %s and %s." % (self.xData.shape, self.yData.shape))I don't understand why is this enforced. Can somebody explain?Note: this does not happen for mono images, or if I keep my selection shape square.
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqt...@googlegroups.com.
Hi,--The numbers correspond to the dimensions of the ROI rectangle I drag. I am pretty sure it's that, as the exception modifies with my changes... and goes away when I create a perfect square.For example:Exception: X and Y arrays must be the same shape--got (38,) and (22,).
On Tuesday, May 19, 2020 at 5:26:24 PM UTC+2, megan wrote:Hi,That is an error that occurs when you attempt to plot data that has a different number of x and y values. I need more information in order to understand why you're getting that error though. What are the shapes in the error? Can you post the whole traceback?MeganOn Tue, May 19, 2020 at 9:17 AM Lavinia B <azpa...@gmail.com> wrote:Hi,--I have an ImageView in which I set data with mode=rgba. When I try to use the ROI , the plot gives me warnings if the ROI is not perfectly square."..\src\pyqtgraph\pyqtgraph\graphicsItems\PlotCurveItem.py", line 385, in updateDataraise Exception("X and Y arrays must be the same shape--got %s and %s." % (self.xData.shape, self.yData.shape))I don't understand why is this enforced. Can somebody explain?Note: this does not happen for mono images, or if I keep my selection shape square.
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/03453f45-80b6-4e4c-8589-0ca26e131205%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/5c8c6bbd-3989-42d6-91e6-fa7dc729d527%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/5c8c6bbd-3989-42d6-91e6-fa7dc729d527%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/22b1cce2-a9da-45e2-849d-bd4271a240a3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/22b1cce2-a9da-45e2-849d-bd4271a240a3%40googlegroups.com.
axes = (self.axes['x'], self.axes['y'])
is_row_major = pg.getConfigOption('imageAxisOrder') == 'row-major'
data = None
coords = None
if (is_row_major):
data, coords = self.roi.getArrayRegion(image.view(np.ndarray), self.imageItem,
(self.axes['y'], self.axes['x']), returnMappedCoords=True)
else:
data, coords = self.roi.getArrayRegion(image.view(np.ndarray), self.imageItem, axes,
returnMappedCoords=True)
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/22b1cce2-a9da-45e2-849d-bd4271a240a3%40googlegroups.com.