File: plot2.rws

package info (click to toggle)
reinteract 0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,884 kB
  • ctags: 1,244
  • sloc: python: 9,276; sh: 3,883; xml: 780; objc: 311; makefile: 253; ansic: 201
file content (20 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import replot
from numpy import *

x = linspace(0, 2*pi, 100)

# In addition to using plot() to create simple figures,
# you can also build up more complex plots using the
# matplotlib API
#   http://matplotlib.sourceforge.net/api/axes_api.html
p = replot.Axes()
p.plot(x, sin(x), 'bo')
p.plot(x, cos(x))
p.set_xlabel("X axis")
p.set_ylabel("Y Axis")
p

p.set_xlim(0, 2*pi)
p

help(p.set_xlim)