File: subplots_adjust.py

package info (click to toggle)
matplotlib 0.99.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 33,060 kB
  • ctags: 28,162
  • sloc: python: 79,063; cpp: 64,496; objc: 4,513; ansic: 1,948; makefile: 146; sh: 7
file content (12 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
from pylab import *


subplot(211)
imshow(rand(100,100))
subplot(212)
imshow(rand(100,100))

subplots_adjust(bottom=0.1, right=0.8, top=0.9)
cax = axes([0.85, 0.1, 0.075, 0.8])
colorbar(cax=cax)
show()