We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,590 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

plotting in text

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

1
Contributor
0
Replies
1
View
abhilam
Newbie Poster
6 posts since Jun 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.1527 seconds using 2.64MB