Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f02c33

Browse files
committed
Small edits suggested by tacaswell
1 parent 06452f1 commit 9f02c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/users/colormapnorms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ instance, if:
108108

109109
In [4]: norm = colors.BoundaryNorm(boundaries=bounds, ncolors=4)
110110

111-
In [5]: print norm([-0.2,-0.15,-0.02, 0.3, 0.8, 0.99])
111+
In [5]: print(norm([-0.2,-0.15,-0.02, 0.3, 0.8, 0.99]))
112112
[0 0 1 2 3 3]
113113

114114
Note unlike the other norms, this norm returns values from 0 to *ncolors*-1.

0 commit comments

Comments
 (0)