8000 legend handle size does not automatically scale with linewidth · Issue #8789 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
legend handle size does not automatically scale with linewidth #8789
Closed
@janssen

Description

@janssen

Bug report

If I use a line style that's dash-dot plus a linewidth that's greater than 1, the linestyle doesn't appear in the legend if numpoints > 1.

Here's linewidth == 1 and various line styles:

legend-ok

And here's linewidth == 2 and various line styles:

legend-fail

Legend is drawn with

leftaxis.legend(handles=lines, loc='best', numpoints=3, frameon=True, fancybox=True, framealpha=0.5)

where lines are generated with Axes.plot.

Matplotlib version

Linux 16.04
Matplotlib 2.0.2 with Agg backend, from source
Python 2.7.13

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0