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

Skip to content

Commit eef24e5

Browse files
committed
MEP12 on subplots_adjust.py
Placed under wrong branch, but it’s okay.
1 parent 7a4c36a commit eef24e5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from pylab import *
1+
import matplotlib.pyplot as plt
2+
import numpy as np
23

4+
plt.subplot(211)
5+
plt.imshow(np.random.random((100, 100)), cmap=plt.cm.BuPu_r)
6+
plt.subplot(212)
7+
plt.imshow(np.random.random((100, 100)), cmap=plt.cm.BuPu_r)
38

4-
subplot(211)
5-
imshow(rand(100, 100), cmap=cm.BuPu_r)
6-
subplot(212)
7-
imshow(rand(100, 100), cmap=cm.BuPu_r)
8-
9-
subplots_adjust(bottom=0.1, right=0.8, top=0.9)
10-
cax = axes([0.85, 0.1, 0.075, 0.8])
11-
colorbar(cax=cax)
12-
show()
9+
plt.subplots_adjust(bottom=0.1, right=0.8, top=0.9)
10+
cax = plt.axes([0.85, 0.1, 0.075, 0.8])
11+
plt.colorbar(cax=cax)
12+
plt.show()

0 commit comments

Comments
 (0)