The label for the infiniteLine shows up right in the vertical middle of the plot. That's where all my data is and I'd rather not have the label right over it. What's the best way (Is it possible) to move it near the top (or bottom) of my plot?
--
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 pyqtgraph+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/9dde2306-ab4e-49b5-a939-54ec5ed711ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You need to call setValue() function.
example:
i_l = pyqtgraph.InfiniteLine(movable=True, angle=0)
line_position = 1
i_l.setValue(line_position)
read the documentation http://www.pyqtgraph.org/documentation/graphicsItems/infiniteline.html
On Tue, Jul 18, 2017 at 9:15 PM, Jeremy Webster <jweb...@gmail.com> wrote:
The label for the infiniteLine shows up right in the vertical middle of the plot. That's where all my data is and I'd rather not have the label right over it. What's the best way (Is it possible) to move it near the top (or bottom) of my plot?
--
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 pyqtgraph+...@googlegroups.com.
import pyqtgraph
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/a9922f5d-d1e5-4354-836d-b73ce4beea5e%40googlegroups.com.