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 <[email protected]> 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 > updateData > raise 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pyqtgraph/03453f45-80b6-4e4c-8589-0ca26e131205%40googlegroups.com > <https://groups.google.com/d/msgid/pyqtgraph/03453f45-80b6-4e4c-8589-0ca26e131205%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/CAOTkkr6nDDAo-J0QWoHFrCSxpN0UmPZBchgpBsa0YCv588ou0A%40mail.gmail.com.
