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.
There was an error while loading. Please reload this page.
2 parents 413421d + 894ccd4 commit f0736c1Copy full SHA for f0736c1
1 file changed
lib/matplotlib/lines.py
@@ -143,6 +143,9 @@ def _slice_or_none(in_v, slc):
143
# if just an int, assume starting at 0 and make a tuple
144
elif isinstance(markevery, int):
145
markevery = (0, markevery)
146
+ # if just an numpy int, assume starting at 0 and make a tuple
147
+ elif isinstance(markevery, np.integer):
148
+ markevery = (0, markevery.item())
149
150
if isinstance(markevery, tuple):
151
if len(markevery) != 2:
0 commit comments