Skip to content

Commit 7e58197

Browse files
authored
Merge pull request #22542 from meeseeksmachine/auto-backport-of-pr-22534-on-v3.5.x
Backport PR #22534 on branch v3.5.x (Fix issue with manual clabel)
2 parents c4bb391 + b3304d2 commit 7e58197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/contour.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _contour_labeler_event_handler(cs, inline, inline_spacing, event):
6767
elif (is_button and event.button == MouseButton.LEFT
6868
# On macOS/gtk, some keys return None.
6969
or is_key and event.key is not None):
70-
if event.inaxes == cs.ax:
70+
if event.inaxes == cs.axes:
7171
cs.add_label_near(event.x, event.y, transform=False,
7272
inline=inline, inline_spacing=inline_spacing)
7373
canvas.draw()

0 commit comments

Comments
 (0)