*il.label.setPosition()* ? look at classInfLineLabel: http://www.pyqtgraph.org/documentation/_modules/pyqtgraph/graphicsItems/InfiniteLine.html
*import pyqtgraphwin = pyqtgraph.GraphicsWindow()pl = win.addPlot()il = pyqtgraph.InfiniteLine(label='some label', movable=True, angle=0)pl.addItem(il)il.label.setPosition(0.1) # 0.0 to 1.0if __name__ == '__main__': import sys if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'): pyqtgraph.QtGui.QApplication.instance().exec_()* On Tue, Jul 18, 2017 at 10:06 PM, Jeremy Webster <[email protected]> wrote: > I believe you misunderstood the question. I know how to move the line. > What I want to know is how to move the *LABEL* of the line. > > > > > On Tuesday, July 18, 2017 at 1:34:11 PM UTC-6, Vasilije Mehandzic wrote: >> >> You need to call setValue() function. >> >> >> >> >> *example:i_l = pyqtgraph.InfiniteLine(movable=True, angle=0)line_position >> = 1i_l.setValue(line_position)* >> >> read the documentation http://www.pyqtgraph.org/docum >> entation/graphicsItems/infiniteline.html >> >> On Tue, Jul 18, 2017 at 9:15 PM, Jeremy Webster <[email protected]> >> 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 [email protected]. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/pyqtgraph/9dde2306-ab4e-49b5-a939-54ec5ed711ce%40googlegroups.com >>> <https://groups.google.com/d/msgid/pyqtgraph/9dde2306-ab4e-49b5-a939-54ec5ed711ce%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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/a9922f5d-d1e5-4354-836d-b73ce4beea5e%40googlegroups.com > <https://groups.google.com/d/msgid/pyqtgraph/a9922f5d-d1e5-4354-836d-b73ce4beea5e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAD_qyJo%2BhBeEqVmCnXJwGa%3DO07yfh7bacnGvJKKH1sV%2Bwyr3TA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
