Skip to content

MarkerStyle transformation not carried over to legend #20613

Closed
@mdaeron

Description

@mdaeron

Bug report

When I transform a MarkerStyle, it displays fine in the plot but not in the legend.

Code for reproduction

import matplotlib.pyplot as ppl
from matplotlib.markers import MarkerStyle

hdiamond = MarkerStyle("d")
hdiamond._transform.rotate_deg(90)

ppl.plot(0, 0, marker = hdiamond, label = 'foo', ls = 'None')
ppl.legend()

ppl.show()

Actual outcome

Screen Shot 2021-07-09 at 13 33 33

Matplotlib version

  • Operating system: macOS 10.15.7 (19H15)
  • Matplotlib version: 3.3.4
  • Matplotlib backend: MacOSX
  • Python version: 3.7.10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions