8000 Merge pull request #4651 from ericmjl/mep12-subplot_toolbar.py · matplotlib/matplotlib@e23e404 · GitHub
[go: up one dir, main page]

Skip to content

Commit e23e404

Browse files
committed
Merge pull request #4651 from ericmjl/mep12-subplot_toolbar.py
Mep12 subplot toolbar.py
2 parents b1395be + b6b92e7 commit e23e404

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
#!/usr/bin/env python
1+
import matplotlib.pyplot as plt
2+
import numpy.random as rnd
23

3-
from pylab import *
4+
fig = plt.figure()
5+
plt.subplot(221)
6+
plt.imshow(rnd.random((100, 100)))
7+
plt.subplot(222)
8+
plt.imshow(rnd.random((100, 100)))
9+
plt.subplot(223)
10+
plt.imshow(rnd.random((100, 100)))
11+
plt.subplot(224)
12+
plt.imshow(rnd.random((100, 100)))
413

5-
fig = figure()
6-
subplot(221)
7-
imshow(rand(100, 100))
8-
subplot(222)
9-
imshow(rand(100, 100))
10-
subplot(223)
11-
imshow(rand(100, 100))
12-
subplot(224)
13-
imshow(rand(100, 100))
14-
15-
subplot_tool()
16-
show()
14+
plt.subplot_tool()
15+
plt.show()

0 commit comments

Comments
 (0)
0