Re: [Matplotlib-users] Speeding up pcolor plot

2011-12-20 Thread Paul Ivanov
Hey again, Brad, Brad Malone, on 2011-12-19 23:44, wrote: Hi, I am plotting a grid with pcolor. Below I've got a 1000x1000 grid. xi=linspace(-0.1,x[-1]+2,1000) yi=linspace(-0.1,maxfreq+10,1000) print 'Calling griddata...' zi=griddata(x,y,z,xi,yi,interp='nn')

[Matplotlib-users] animation.FuncAnimation

2011-12-20 Thread Nils Wagner
Hi all, How do I use animation.FuncAnimation to plot real-life data from parsing a text file ? import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation import sys import time import re x = [] # x y = [] # y fig = plt.figure() ax=

Re: [Matplotlib-users] animation.FuncAnimation

2011-12-20 Thread Benjamin Root
On Tue, Dec 20, 2011 at 8:00 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Hi all, How do I use animation.FuncAnimation to plot real-life data from parsing a text file ? import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation import sys import

Re: [Matplotlib-users] animation.FuncAnimation

2011-12-20 Thread Ryan May
On Tue, Dec 20, 2011 at 8:00 AM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: Hi all, How do I use animation.FuncAnimation to plot real-life data from parsing a text file ? Here's a version that does what I think you want: import matplotlib.pyplot as plt import matplotlib.animation as

Re: [Matplotlib-users] Speeding up pcolor plot

2011-12-20 Thread Brad Malone
HI Paul, Thanks. I didn't realize it was that simple (appears that doing this essentially plots everything against integers in x and y). This will be a good backup plan if I can't get pcolor to work, although as you say, I'll have to fiddle around some with the axis formatters and such I suppose

Re: [Matplotlib-users] Speeding up pcolor plot

2011-12-20 Thread Tony Yu
On Tue, Dec 20, 2011 at 9:22 AM, Brad Malone brad.mal...@gmail.com wrote: HI Paul, Thanks. I didn't realize it was that simple (appears that doing this essentially plots everything against integers in x and y). This will be a good backup plan if I can't get pcolor to work, although as you

Re: [Matplotlib-users] basemap UTM conversion discrepancy

2011-12-20 Thread Stefan Mertl
Jeff, Here are the versions that I'm working with: basemap:1.0.2 matplotlib: 1.1.0 numpy: 1.5.1 libgeos:3.2.0 I ran the coordinate conversion on another computer with the same system configuration and there it works as it should. I have tried to clean my system and removed all the

Re: [Matplotlib-users] Speeding up pcolor plot

2011-12-20 Thread Brad Malone
Tony, Thanks for the pcolormesh suggestion! It is quite a bit faster than pcolor for me (maybe 50-100x faster)! Best, Brad On Tue, Dec 20, 2011 at 10:10 AM, Tony Yu tsy...@gmail.com wrote: On Tue, Dec 20, 2011 at 9:22 AM, Brad Malone brad.mal...@gmail.comwrote: HI Paul, Thanks. I didn't

Re: [Matplotlib-users] Speeding up pcolor plot

2011-12-20 Thread Eric Firing
On 12/20/2011 10:48 AM, Brad Malone wrote: Tony, Thanks for the pcolormesh suggestion! It is quite a bit faster than pcolor for me (maybe 50-100x faster)! There is also the Axes.pcolorfast() method. It has no pylab wrapper, and it is fussier than the others about its input arguments, but it

[Matplotlib-users] Griddata failling; how to try natgrid version?

2011-12-20 Thread Brad Malone
Hi, I'm still working on my interpolating from an irregularly space grid and then running pcolormesh on the resulting output. With some of the newer data I've been plotting I've noticed that my plots are complete garbage. I realized that this was actually because of the output from griddata rather