diff --git a/numpy/core/code_generators/ufunc_docstrings.py b/numpy/core/code_generators/ufunc_docstrings.py index 8d7b83239025..1b666f0980f0 100644 --- a/numpy/core/code_generators/ufunc_docstrings.py +++ b/numpy/core/code_generators/ufunc_docstrings.py @@ -46,7 +46,7 @@ def add_newdoc(place, name, doc): >>> import matplotlib.pyplot as plt - >>> x = np.linspace(-10, 10, 101) + >>> x = np.linspace(-10, 10, 10) >>> plt.plot(x, np.absolute(x)) >>> plt.show()