File: plot.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 (19 lines) | stat: -rw-r--r-- 516 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
from replot import plot
from numpy import *

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

# Basic plotting of a single data set. (If only
# one parameter is given, then [0,1,2,...] is 
# used for the X values.
plot(x, cos(x))

# You can plot multiple sets of data in a single command
plot(x, cos(x), x, sin(x))

# You can also specify styles for each data set, see 
# http://matplotlib.sourceforge.net/matplotlib.axes.html#Axes-plot
# for more details

plot(x, cos(x), 'r--', # red dashed lines
     x, sin(x), 'bo')  # blue circles