Skip to content

IndexError when moused over panned image #4957

Closed
@WeatherGod

Description

@WeatherGod

The new get_cursor_data() function has an indexing bug. If the user pans an image such that there is a gap between the edge of the image and the axes edges, and you mouse over that area, IndexError exceptions are thrown all over the place.

@joferkington 's mpl data cursor takes care of this correctly, IIRC, and I know I covered this in my book as well. Hopefully, someone will buy a copy and take a look and adapt it to get_cursor_data().

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions