Hi!
I am having the same problem, everything about pyqtgraph is so fast. But I
have the same problem. I have to plot several vertical lines, at different
heights, using spans depending on the number of different levels I need to
set.
It looks something like this
for key, values in prf.reflections.items():
span = ((float(key) - 1)/prf.nphase, float(key)/prf.nphase)
for val in values:
line = pg.InfiniteLine(pos=val, angle=90, pen=self.pen8, span=span)
self.ui_mainwindow.peaks_graph.addItem(line)
This is painfully slow so I am wondering if there is a better way.
>
--
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/ff7d37bf-a268-4735-a518-954e01ae0f42n%40googlegroups.com.