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

Skip to content

Commit 11c172f

Browse files
committed
Made PEP8 compat.
1 parent 34056bf commit 11c172f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

examples/color/colormap_normalizations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# z/colour axis on a log scale so we see both hump and spike. linear
1919
# scale only shows the spike.
2020
Z1 = bivariate_normal(X, Y, 0.1, 0.2, 1.0, 1.0) + \
21-
0.1 * bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
21+
0.1 * bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
2222

2323
fig, ax = plt.subplots(2, 1)
2424

@@ -37,7 +37,7 @@
3737
sine wave in Y. We can remove the power law using a PowerNorm.
3838
'''
3939
X, Y = np.mgrid[0:3:complex(0, N), 0:2:complex(0, N)]
40-
Z1 = (1+np.sin(Y*10.))*X**(2.)
40+
Z1 = (1 + np.sin(Y * 10.)) * X**(2.)
4141

4242
fig, ax = plt.subplots(2, 1)
4343

@@ -60,7 +60,7 @@
6060

6161
X, Y = np.mgrid[-3:3:complex(0, N), -2:2:complex(0, N)]
6262
Z1 = (bivariate_normal(X, Y, 1., 1., 1.0, 1.0))**2 \
63-
- 0.4 * (bivariate_normal(X, Y, 1.0, 1.0, -1.0, 0.0))**2
63+
- 0.4 * (bivariate_normal(X, Y, 1.0, 1.0, -1.0, 0.0))**2
6464
Z1 = Z1/0.03
6565

6666
fig, ax = plt.subplots(2, 1)
@@ -83,7 +83,7 @@
8383
'''
8484
X, Y = np.mgrid[-3:3:complex(0, N), -2:2:complex(0, N)]
8585
Z1 = (bivariate_normal(X, Y, 1., 1., 1.0, 1.0))**2 \
86-
- 0.4 * (bivariate_normal(X, Y, 1.0, 1.0, -1.0, 0.0))**2
86+
- 0.4 * (bivariate_normal(X, Y, 1.0, 1.0, -1.0, 0.0))**2
8787
Z1 = Z1/0.03
8888

8989
# Example of making your own norm. Also see matplotlib.colors.

0 commit comments

Comments
 (0)