Re: [Matplotlib-users] image blitted onto an axes is not showing up

2011-11-01 Thread Benjamin Root
On Wednesday, November 2, 2011, John Jameson wrote: > Hi, > I am trying to do an animation in two axes (subplots) and I can get it to work so-so if I do it the "wrong way" but when I do it the "right way" I don't see anything in my second subplot. > The first subplot (ax1) shows a bunch of moving

[Matplotlib-users] image blitted onto an axes is not showing up

2011-11-01 Thread John Jameson
Hi, I am trying to do an animation in two axes (subplots) and I can get it to work so-so if I do it the "wrong way" but when I do it the "right way" I don't see anything in my second subplot. The first subplot (ax1) shows a bunch of moving line segments ("sticks") and the second one (ax2) shows a

[Matplotlib-users] set xlim in a multiplot

2011-11-01 Thread gmail
hi all, i'm tring to wrote some code to do a stem plot from a dictionary of array. the code is : def multi_stem_plot(self, key, name, title="", time_min="", time_max=""): """ doc """ rows = len(key) cols = 1 gr = str(rows)+str(cols) for i in enumer

[Matplotlib-users] Warning: converting a masked element to nan

2011-11-01 Thread questions anon
Hi All, I am trying to plot time against mean daily temperature values. The problem is temperature contains no data in a few areas. I want to be able to ignore this and continue plotting. When I run the below script on my data that has all normal numbers it works fine but when I run the script on m

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