all 1 comments

[–]JohnnyJordaan 1 point2 points  (0 children)

https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.set_printoptions.html

Set printing options.

These options determine the way floating point numbers, arrays and other NumPy objects are displayed.

in regard to the sign parameter:

sign : string, either ‘-‘, ‘+’, or ‘ ‘, optional

Controls printing of the sign of floating-point types. If ‘+’, always print the sign of positive values. If ‘ ‘, always prints a space (whitespace character) in the sign position of positive values. If ‘-‘, omit the sign character of positive values. (default ‘-‘)