shelling (owner)

Revisions

gist: 229128 Download_button fork
public
Public Clone URL: git://gist.github.com/229128.git
Embed All Files: show embed
testplot.py #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
 
import matplotlib as mpl
mpl.use("Agg") # this must be called before imorting pylab
 
import pylab as pl
import numpy as np
from math import *
 
t = pl.arange(-10, 5, 0.001)
 
print pl.axis()
 
pl.axis("auto")
 
pl.plot(t, np.cos(t))
pl.plot(t, np.sin(t))
pl.plot(t, np.sin(np.exp(t)))
pl.plot(t, np.cos(np.exp(t)))
 
 
pl.savefig("a.png", dpi=80)