File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,11 @@ def get_positions(self, copy=True):
103
103
def _on_pick (self , event ):
104
104
# On the pick event, find the original line corresponding to the legend
105
105
# proxy line, and toggle its visibility.
106
- klass = self ._leg_artists [event .artist ]
106
+ try :
107
+ klass = self ._leg_artists [event .artist ]
108
+ except KeyError :
109
+ # some pick event not on our legend
110
+ return
107
111
self ._current_class = klass
108
112
self ._update_legend_alpha ()
109
113
Original file line number Diff line number Diff line change 4
4
# Copyright (c) Ian Hunt-Isaak.
5
5
# Distributed under the terms of the Modified BSD License.
6
6
7
- version_info = (0 , 1 , 3 )
7
+ version_info = (0 , 1 , 4 )
8
8
__version__ = "." .join (map (str , version_info ))
You can’t perform that action at this time.
0 commit comments