Infinite line only visible at the edges of the bounding rectangle in plotItem

113 views
Skip to first unread message

Eric Evarts

unread,
Sep 1, 2015, 9:11:40 PM9/1/15
to pyqtgraph
I am having an issue where I am trying to use cross hairs similar to what is used in the example, but sometimes my infinite lines are not visible.  This seems to happen the most when my x- or y-axis scale is down at 10^-15. When I zoom out, the lines are again visible.  Is there some kind of limitation I am missing or is this a bug?

Vincent Le Saux

unread,
Sep 3, 2015, 2:10:47 AM9/3/15
to pyqtgraph
Hi,

Could you provide a minimal example? I will try to reproduce the problem on my machine...

Vincent

Eric Evarts

unread,
Sep 3, 2015, 10:55:49 AM9/3/15
to pyqtgraph
This code should reproduce the problem

import pyqtgraph
aPlot
= pyqtgraph.plot()
aLine
= pyqtgraph.InfiniteLine(angle=90)
aPlot
.addItem(aLine)
aPlot
.setYRange(-1e-15,1e-15,padding=None)


Thanks for your help.

Eric Evarts

unread,
Sep 3, 2015, 10:57:30 AM9/3/15
to pyqtgraph
I should also probably mention I'm using pyqtgraph 0.9.10, python 3.4.2 64 bit, pyqt4, on Windows.

Reply all
Reply to author
Forward
0 new messages