Clipping BarGraphItem

31 views
Skip to first unread message

Kentin Prat

unread,
Mar 30, 2021, 6:36:30 AM3/30/21
to pyqtgraph
I understand that clipping functions don't apply to BarGraphItem (I am talking about setDownsampling and  setClipToView).
I was wondering if you had an idea what I could try to clip a BarGraphItem.

Patrick

unread,
Mar 30, 2021, 11:10:17 PM3/30/21
to pyqtgraph
Hi,

If I understand the question correctly, then I think the way to do this is hook one or more of the ViewBox range change signals (sigXRangeChanged etc) and update the bar graph data to only include items in that range.

Patrick

Kentin Prat

unread,
Apr 2, 2021, 6:18:29 AM4/2/21
to pyqtgraph
That makes sense, I will try that.
Thanks

Reply all
Reply to author
Forward
0 new messages