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

Skip to content

Commit 05aecc8

Browse files
committed
Adds whitespace to increase readability.
1 parent f8ac8f6 commit 05aecc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/specialty_plots/hinton_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def hinton(matrix, max_weight=None, ax=None):
1717
ax = ax if ax is not None else plt.gca()
1818

1919
if not max_weight:
20-
max_weight = 2**np.ceil(np.log(np.abs(matrix).max())/np.log(2))
20+
max_weight = 2 ** np.ceil(np.log(np.abs(matrix).max()) / np.log(2))
2121

2222
ax.patch.set_facecolor('gray')
2323
ax.set_aspect('equal', 'box')

0 commit comments

Comments
 (0)