10000 Disable mouseover info for NonUniformImage. · matplotlib/matplotlib@047b18e · GitHub
[go: up one dir, main page]

Skip to content

Commit 047b18e

Browse files
committed
Disable mouseover info for NonUniformImage.
Currently NonUniformImage just inherits get_cursor_data from the base class, resulting in nonsensical cursor info. While properly implementing NonUniformImage.get_cursor_data would be better, at least we can disable cursor info in the meantime.
1 parent 666e6cc commit 047b18e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,8 @@ def format_cursor_data(self, data):
10081008

10091009

10101010
class NonUniformImage(AxesImage):
1011+
mouseover = False # This class still needs its own get_cursor_data impl.
1012+
10111013
def __init__(self, ax, *, interpolation='nearest', **kwargs):
10121014
"""
10131015
Parameters

0 commit comments

Comments
 (0)
0