Re: [Matplotlib-users] Loading txt files

2011-11-02 Thread yelena
It works! Thank you very much! :) Dale Chayes wrote: > > Attached is a very simple version. > It assumes your sample data is in a file. > > The first line is "magic" and makes significant assumptions about where > python is installed on your system. This may or may not be the right > answer fo

Re: [Matplotlib-users] Loading txt files

2011-11-01 Thread Dale Chayes
Attached is a very simple version. It assumes your sample data is in a file. The first line is "magic" and makes significant assumptions about where python is installed on your system. This may or may not be the right answer for your system. Plotting requires matplotlib which you may need to in

Re: [Matplotlib-users] Loading txt files

2011-11-01 Thread yelena
I have numpy. I need the body of a program, which plots y dependence of x. Maybe than I'll figure out how does it works... Daniel Hyams wrote: > > One quick way of doing this is to use numpy: > > import numpy > > dataset = numpy.genfromtxt(fname='yourfilename',skip_header=1) > > http://docs

Re: [Matplotlib-users] Loading txt files

2011-11-01 Thread Daniel Hyams
One quick way of doing this is to use numpy: import numpy dataset = numpy.genfromtxt(fname='yourfilename',skip_header=1) http://docs.scipy.org/doc/numpy/reference/generated/numpy.genfromtxt.html On Tue, Nov 1, 2011 at 8:50 AM, yelena wrote: > > Hi! > I'm new at Matplotlib, so I need a little h

[Matplotlib-users] Loading txt files

2011-11-01 Thread yelena
Hi! I'm new at Matplotlib, so I need a little help. I was trying to load data from txt files with no luck. I have 2 collumns in txt files and I need to plot a XY graph. Should I modify txt file to other format? Can someone give me a simple example for doing this? In txt file could be such inform