Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/matplotlib/legend_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def get_numpoints(self, legend):
return self._numpoints

def _default_update_prop(self, legend_handle, orig_handle):
lw = orig_handle.get_linewidth()[0]
lw = orig_handle.get_linewidths()[0]
dashes = orig_handle.get_dashes()[0]
color = orig_handle.get_colors()[0]
legend_handle.set_color(color)
Expand Down
6 changes: 6 additions & 0 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4820,6 +4820,12 @@ def test_scatter_color_masking():
assert linewidths[1] == 3


@cleanup
def test_eventplot_legend():
plt.eventplot([1.0], label='Label')
plt.legend()


if __name__ == '__main__':
import nose
import sys
Expand Down