Hi Vasilije,

I tried every combination and in all cases I have the same exception. :( 
This test that I sent you is working when there is no setClipToView but 
with that method turned on, before or after plotting, I have exception.

On Tuesday, February 14, 2017 at 4:52:25 PM UTC+1, Vasilije Mehandzic wrote:
>
> set first, plot after that
>
> On Tue, Feb 14, 2017 at 3:19 PM, Marija Zupunski <[email protected] 
> <javascript:>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pyqtgraph/1fd9e9c4-db81-40a0-8ac1-50d3e2cd48c9%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/pyqtgraph/1fd9e9c4-db81-40a0-8ac1-50d3e2cd48c9%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/4fbec8c6-ec68-4f97-91fd-8fd0ac593a03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to