Closed schlamar closed 7 years ago
Thanks for reporting this and sorry I didn't reply earlier!
There's a partial fix in 0ef492ac496cabc9eb7ea823d390eb89032fb950. However, there's an underlying bug in the way matplotlib detects whether a point is on a line in Line2D.contains
. Basically, it doesn't take into account a line's drawstyle
. (plt.step
is actually plt.plot(..., drawstyle='steps-pre')
.)
Note to self: Leaving this open as a reminder to file an MPL issue and a PR for a fix.
Yikes, that is a fun bug!
Fixed upstream (matplotlib/matplotlib#6497).
I assume this is fixed, but haven't confirmed it yet :)
If I create a step diagram (randomly?) some areas do not work. Sometimes I click on the plot and nothing happens. Sometimes I select a point of from the plot and it gets selected.