List of data items

33 views
Skip to first unread message

Luke M

unread,
Feb 5, 2013, 12:01:32 PM2/5/13
to pyqt...@googlegroups.com
Is there an "accepted" way to get a list of data items in a PlotItem? I don't see anything in the documentation but it looks like PlotItem has the attributes items, curves and dataItems. It looks like dataItems is what I'm looking for but since it isn't a documented method or property I figured it was worth asking to make sure I'm not overlooking something. If not, it might be nice to have a documented property or method to access these lists.
 
Thanks,
Luke M

Luke Campagnola

unread,
Feb 5, 2013, 12:16:20 PM2/5/13
to pyqt...@googlegroups.com
On Tue, Feb 5, 2013 at 12:01 PM, Luke M <lcj...@gmail.com> wrote:
Is there an "accepted" way to get a list of data items in a PlotItem? I don't see anything in the documentation but it looks like PlotItem has the attributes items, curves and dataItems. It looks like dataItems is what I'm looking for but since it isn't a documented method or property I figured it was worth asking to make sure I'm not overlooking something. If not, it might be nice to have a documented property or method to access these lists.

There's nothing in the API for that; you're right to use PlotItem.dataItems.
I'll add a method for that to the next release.

Luke 

Luke M

unread,
Feb 5, 2013, 12:18:36 PM2/5/13
to pyqt...@googlegroups.com
 Excellent, thanks!
Reply all
Reply to author
Forward
0 new messages