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:
v = vcs.init()
v.xvsy(x, y, 'default', 'default', name='Sine Curve')
'default' arguments refer to the
that are used.
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.