summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r--numpy/core/arrayprint.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
index a3edb64d4..5e5a96b68 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -56,10 +56,14 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None,
suppress : bool, optional
Whether or not suppress printing of small floating point values
using scientific notation (default False).
- nanstr : string, optional
- String representation of floating point not-a-number (default nan).
- infstr : string, optional
- String representation of floating point infinity (default inf).
+ nanstr : str, optional
+ String representation of floating point not-a-number (default NaN).
+ infstr : str, optional
+ String representation of floating point infinity (default Inf).
+
+ See Also
+ --------
+ get_printoptions, set_string_function
Examples
--------
@@ -79,12 +83,9 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None,
>>> eps = np.finfo(float).eps
>>> x = np.arange(4.)
-
>>> x**2 - (x + eps)**2
array([ -4.9304e-32, -4.4409e-16, 0.0000e+00, 0.0000e+00])
-
>>> np.set_printoptions(suppress=True)
-
>>> x**2 - (x + eps)**2
array([-0., -0., 0., 0.])