Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and ianhi committed Jan 23, 2024
1 parent 9420b2f commit 7e165db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mpl_point_clicker/_clicker.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,19 @@ class in *classes*
self._class_leg_artists = {}

for legline, legtext, klass in zip(
self._leg.get_lines(), self._leg.get_texts(), self._classes
self._leg.get_lines(), self._leg.get_texts(), self._classes
):
legline.set_picker(pick_dist)
legtext.set_picker(pick_dist)
self._leg_artists[legtext] = klass
self._leg_artists[legline] = klass
try:
# mpl < 3.5
self._class_leg_artists[klass] = (legline, legline._legmarker, legtext)
self._class_leg_artists[klass] = (
legline,
legline._legmarker,
legtext,
)
except AttributeError:
self._class_leg_artists[klass] = (legline, legtext)

Expand Down

0 comments on commit 7e165db

Please sign in to comment.