File tree 1 file changed +13
-13
lines changed
1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
2
1
"""
3
2
You can specify whether images should be plotted with the array origin
4
3
x[0,0] in the upper left or upper right by using the origin parameter.
5
4
You can also control the default be setting image.origin in your
6
5
matplotlibrc file; see http://matplotlib.org/matplotlibrc
7
6
"""
8
- from pylab import *
7
+ import matplotlib .pyplot as plt
8
+ import numpy as np
9
9
10
- x = arange (100.0 )
10
+ x = np . arange (100.0 )
11
11
x .shape = (10 , 10 )
12
12
13
13
interp = 'bilinear'
14
- #interp = 'nearest'
14
+ # interp = 'nearest'
15
15
lim = - 2 , 11 , - 2 , 6
16
- subplot (211 , axisbg = 'g' )
17
- title ('blue should be up' )
18
- imshow (x , origin = 'upper' , interpolation = interp )
19
- #axis(lim)
16
+ plt . subplot (211 , axisbg = 'g' )
17
+ plt . title ('blue should be up' )
18
+ plt . imshow (x , origin = 'upper' , interpolation = interp )
19
+ # plt. axis(lim)
20
20
21
- subplot (212 , axisbg = 'y' )
22
- title ('blue should be down' )
23
- imshow (x , origin = 'lower' , interpolation = interp )
24
- #axis(lim)
25
- show ()
21
+ plt . subplot (212 , axisbg = 'y' )
22
+ plt . title ('blue should be down' )
23
+ plt . imshow (x , origin = 'lower' , interpolation = interp )
24
+ # plt. axis(lim)
25
+ plt . show ()
You can’t perform that action at this time.
0 commit comments