mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Use more common syntax to assign axis variables
This commit is contained in:
1 parent
0e38481ade
commit
a1d162a4f9
1 file changed
+1
-2
@@ -39,8 +39,7 @@ img = noise + 128
|
||||
|
||||
entr_img = entropy(img, disk(10))
|
||||
|
||||
fig, ax = plt.subplots(1, 3, figsize=(8, 3))
|
||||
ax0, ax1, ax2 = ax.ravel()
|
||||
fig, (ax0, ax1, ax2) = plt.subplots(1, 3, figsize=(8, 3))
|
||||
|
||||
ax0.imshow(noise_mask, cmap=plt.cm.gray)
|
||||
ax0.set_xlabel("Noise mask")
|
||||
|
||||
Reference in new issue
Block a user