Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef060f4

Browse files
nepix32QuLogic
authored andcommitted
Makes eventplot legend work
Fixes issue #7662
1 parent ab98852 commit ef060f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/legend_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def get_numpoints(self, legend):
267267
return self._numpoints
268268

269269
def _default_update_prop(self, legend_handle, orig_handle):
270-
lw = orig_handle.get_linewidth()[0]
270+
lw = orig_handle.get_linewidths()[0]
271271
dashes = orig_handle.get_dashes()[0]
272272
color = orig_handle.get_colors()[0]
273273
legend_handle.set_color(color)

0 commit comments

Comments
 (0)