File tree Expand file tree Collapse file tree 1 file changed +22
-21
lines changed Expand file tree Collapse file tree 1 file changed +22
-21
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
- from pylab import *
3
2
4
- dt = 0.01
5
- x = arange (- 50.0 , 50.0 , dt )
6
- y = arange (0 , 100.0 , dt )
3
+ import matplotlib .pyplot as plt
4
+ import numpy as np
7
5
8
- subplot (311 )
9
- plot (x , y )
10
- xscale ('symlog' )
11
- ylabel ('symlogx' )
12
- grid (True )
13
- gca ().xaxis .grid (True , which = 'minor' ) # minor grid on too
6
+ dt = 0.01
7
+ x = np .arange (- 50.0 , 50.0 , dt )
8
+ y = np .arange (0 , 100.0 , dt )
14
9
15
- subplot (312 )
16
- plot (y , x )
17
- yscale ('symlog' )
18
- ylabel ('symlogy' )
10
+ plt .subplot (311 )
11
+ plt .plot (x , y )
12
+ plt .xscale ('symlog' )
13
+ plt .ylabel ('symlogx' )
14
+ plt .grid (True )
15
+ plt .gca ().xaxis .grid (True , which = 'minor' ) # minor grid on too
19
16
17
+ plt .subplot (312 )
18
+ plt .plot (y , x )
19
+ plt .yscale ('symlog' )
20
+ plt .ylabel ('symlogy' )
20
21
21
- subplot (313 )
22
- plot (x , np .sin (x / 3.0 ))
23
- xscale ('symlog' )
24
- yscale ('symlog' , linthreshy = 0.015 )
25
- grid (True )
26
- ylabel ('symlog both' )
22
+ plt . subplot (313 )
23
+ plt . plot (x , np .sin (x / 3.0 ))
24
+ plt . xscale ('symlog' )
25
+ plt . yscale ('symlog' , linthreshy = 0.015 )
26
+ plt . grid (True )
27
+ plt . ylabel ('symlog both' )
27
28
28
- show ()
29
+ plt . show ()
You can’t perform that action at this time.
0 commit comments