Skip to content

Merged 158f36e #7718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 1, 2017
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