Given two Numeric
vectors, make a simple
x-y line plot.
Say we have the following data (points along a sine curve):
import Numeric as N
x = N.arange(17)*N.pi/8.
y = N.sin(x)
The x-y plot then is:
import vcs
v = vcs.init()
v.xvsy(x, y, 'default', 'default', name='Sine Curve')
The two 'default'
arguments refer to the
graphics method
and template
that are used.
The keyword name
gives the title of the plot.
Some bad news: Even a slightly more complex line plot (say, one that includes axis titles) is a lot more work. You can see this in this complex line plot example.
Notes: This discussion applies to CDAT 3.3.