## ···

Is

there a quick and easy way to plot the columns of a matrix versus a

vector and get different color lines for each column? If I try

In [50]: shape(timevector)

Out[50]: (21001, 1)

In [51]: shape(datamatrix)

Out[51]: (21001, 3)

In [52]: plot(timevector,datamatrix)

I get:

RuntimeError: xdata and ydata must be the same length

In matlab, this would give me 3 diffent color lines, one for each

column of datamatrix.

plot(timevector,datamatrix[:,i]) works just fine for one line

Do I need to define a matrix plotting function like

def matrixplot(xvect,ymat):

ioff()

for i in range(shape(ymat)[1]):

```
plot(xvect,ymat[:,i])
```

show()

ion()

or is there an easier/faster way?

Ryan