Skip to content

Unable to retrieve marker from legend handle #11357

Closed
@kdcurry

Description

@kdcurry

Bug report

Bug summary

I created a plot then manually created a legend to match the plot. When retrieving the handles from the legend object, get_marker() returns and empty string even when that is not the correct marker.

Code for reproduction

# Paste your code here
#

screen shot 2018-05-31 at 2 58 10 pm

screen shot 2018-05-31 at 2 58 21 pm

Expected outcome

Expected output is 'v' rather than ''

Matplotlib version

  • Operating system: mac OS X El Capitan
  • Matplotlib version: 2.2.2
  • Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline
  • Python version: 3.6.4
  • Jupyter version (if applicable): 1.0.0
  • Other libraries:

conda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions