Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/matplotlib/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def _set_marker(self, marker):
"""
if isinstance(marker, str) and cbook.is_math_text(marker):
self._marker_function = self._set_mathtext_path
elif isinstance(marker, (int, str)) and marker in self.markers:
elif isinstance(marker, (int, str, np.integer)) and marker in self.markers:
self._marker_function = getattr(self, '_set_' + self.markers[marker])
elif (isinstance(marker, np.ndarray) and marker.ndim == 2 and
marker.shape[1] == 2):
Expand Down
1 change: 1 addition & 0 deletions lib/matplotlib/tests/test_marker.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def test_marker_fillstyle():
r'$\frac{1}{2}$',
"$\u266B$",
1,
np.int64(1),
markers.TICKLEFT,
[[-1, 0], [1, 0]],
np.array([[-1, 0], [1, 0]]),
Expand Down
Loading