abhilam 0 Newbie Poster

Dear all, I have the data like this, Truely saying i have data like this with more than 50 column and more than this rows. I am tryng to plot these data.

1   23  123
2   12  124
3   15  125
4   18  135
5   19  137
6   12  141
7   13  146
8   17` 151
9   14  154
10  16  146

I had used this code to plot this,

import numpy as np
import pylab as pl
data = np.loadtxt('c:/py/new3.txt')
x=data[:,0]
y=data[:,1]
z=data[:,2]
pl.plot(x,y)
pl.plot(x,z)
pl.show()

But i get the error, I would be happy if someone else solve this problem

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.