The docstring for scatter
says that the marker
keyword argument will accept a matplotlib.markers.MarkerStyle
instance. However, when I pass one in, it breaks when trying to initialize a new MarkerStyle
instance using an existing one. We could easily replace https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes/_axes.py#L3647 with the following to fix it:
if not isinstance(marker, mmarkers.MarkerStyle):
marker_obj = mmarkers.MarkerStyle(marker)
else:
marker_obj = marker
or we could just fix the constructor for MarkerStyle to be smarter (a better option).
Hello, the patch mentioned by rosenbrockc did solve the failure of my test code:
But if I change the fillstyle to
u'none'
, I still get all the circle filled with black colors, not a black ring. Fillstyle works OK withu'left'
,u'right'
,u'bottom'
,u'top'
andu'full'
.PS: I was asked this question in Stackoverflow: matplotlib, why custom marker style is not allowed in scatter functions, and someone pointed me here.