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).