Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3db87c6 commit c8b4dfbCopy full SHA for c8b4dfb
1 file changed
lib/matplotlib/markers.py
@@ -129,7 +129,7 @@
129
"""
130
import copy
131
132
-from collections.abc import Sized
+from collections.abc import Hashable, Sized
133
134
import numpy as np
135
@@ -308,7 +308,7 @@ def _set_marker(self, marker):
308
309
if isinstance(marker, str) and cbook.is_math_text(marker):
310
self._marker_function = self._set_mathtext_path
311
- elif isinstance(marker, (int, str, np.integer)) and marker in self.markers:
+ elif isinstance(marker, Hashable) and marker in self.markers:
312
self._marker_function = getattr(self, '_set_' + self.markers[marker])
313
elif (isinstance(marker, np.ndarray) and marker.ndim == 2 and
314
marker.shape[1] == 2):
0 commit comments