InfiniteLine to mark spots (performance)

26 views
Skip to first unread message

Andy

unread,
Nov 16, 2018, 4:19:11 AM11/16/18
to pyqtgraph
Hi everybody,

currently I mark spots with a infinite line everytime a (y) value is higher as the passed max value in my pyqtgraph.
This works well for an amount of ~7200 lines, but in cases with more lines the perfomance is not the best anymore.

So i tried to manipulate the infinite lines via the the parameter span to trim the lines, in the hope it will reduce the calculation time.
But in my inplemetation of the class i dont have these parameter in the __init__ method like in the reference page.

Is there a better way to mark spots with a vertical line which is not infinite in a scattergraph?
For example a method like addline(x,y). y specifies the interval of the vertical line with a tupel.

addline(x, (-1000,1000))

I would be great if you can help me :)

API reference.

in my pyqtgraph library:

class InfiniteLine(GraphicsObject):

def __init__(self, pos=None, angle=90, pen=None, movable=False, bounds=None,
hoverPen=None, label=None, labelOpts=None, name=None):
Reply all
Reply to author
Forward
0 new messages