# len(x_value) == len(y_value)self.subplot.plot(x=signal.x_value, y=signal.y_value[:-1], pen=signal.color, name=signal.name, stepMode=True)
self.subplot.setDownsampling(ds=True, auto=False, mode='peak')
self.subplot.setClipToView(clip=True)
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/9639a623-d481-4b3a-b38d-080a0bad578a%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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/1fd9e9c4-db81-40a0-8ac1-50d3e2cd48c9%40googlegroups.com.
set first, plot after that
On Tue, Feb 14, 2017 at 3:19 PM, Marija Zupunski <marija....@gmail.com> wrote:
Hi Vasilije,I used your suggestions and made a small test. I still have exception ("len(X) must be len(Y)+1 since stepMode=True (got (0L,) and (0L,))") when I zoom in/out my plot. In attachment is my test case scenario.
On Tuesday, February 7, 2017 at 5:38:18 PM UTC+1, Marija Zupunski wrote:Hi guys,I would like to draw plot items using stepMode=True and after that I would like to use setDownsampling() and setClipToView(). I have exception when i send data saying that:"len(X) must be len(Y)+1 since stepMode=True"I set length of x and y values, but still I have the same exception when I call setDownsampling() and setClipToView()My code is something like this:# len(x_value) == len(y_value)self.subplot.plot(x=signal.x_value, y=signal.y_value[:-1], pen=signal.color, name=signal.name, stepMode=True)
self.subplot.setDownsampling(ds=True, auto=False, mode='peak')
self.subplot.setClipToView(clip=True)Is there something wrong that I am doing?
--
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.