When I transform a MarkerStyle, it displays fine in the plot but not in the legend:
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()
This results in:
How can I correct the problem?