You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a mpl.path.Path() is supplied to markers.MarkerStyle.set_marker we get a type error. This is due to the Path class being a Sized instance, since it implements len, and this is the property used to determine if set_marker was passed a set of verts (list of (x,y) pairs).
/anaconda3/envs/physics/lib/python3.6/site-packages/matplotlib/markers.py in set_marker(self, marker)
254 self._marker_function = self._set_vertices
255 elif (isinstance(marker, Sized) and len(marker) in (2, 3) and
--> 256 marker[1] in (0, 1, 2, 3)):
257 self._marker_function = self._set_tuple_marker
258 elif (not isinstance(marker, (np.ndarray, list)) and
TypeError: 'Path' object does not support indexing
Expected outcome
Should set the marker to the supplied path Matplotlib version
Bug report
Bug summary
When a mpl.path.Path() is supplied to markers.MarkerStyle.set_marker we get a type error. This is due to the Path class being a Sized instance, since it implements len, and this is the property used to determine if set_marker was passed a set of verts (list of (x,y) pairs).
Code for reproduction
Actual outcome
Expected outcome
Should set the marker to the supplied path
Matplotlib version
print(matplotlib.get_backend())
): module://ipykernel.pylab.backend_inlineThe text was updated successfully, but these errors were encountered: