Re: [Matplotlib-users] saving animations

2010-08-25 Thread Daπid
I cannot see what is wrong, but after saving each figure you should add plt.clf() in order to delete the image and preventing memory leaks, because MPL stores one image in top of the other. For the filecode I suggest you to use something like: savefig(head+str(filecode).zfill(digits)+format,

Re: [Matplotlib-users] legend missed one dataset

2010-08-25 Thread xyz
Thank you, but why the coordinates start from 2 and not from 0 with the following code? from pylab import * import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) for i in [[2,2], [2,3], [4.2,3.5]]: print i[0],i[1] plt.plot(i[0],i[1],'o') ax.grid(True)

[Matplotlib-users] Problem installing matplotlib

2010-08-25 Thread Joses Ho
Hi, I run Mac OS X 10.6.4 with the official Python 2.6.3 distribution. I have already installed NumPy ver 1.4.1. I downloaded and unzipped the matplotlib-1.0.0.tar.gz from the SourceForge site. When I enter the command : python setup.py install It finally gives me the following error right at

Re: [Matplotlib-users] Problem installing matplotlib

2010-08-25 Thread Jeff Whitaker
On 8/25/10 3:53 AM, Joses Ho wrote: Hi, I run Mac OS X 10.6.4 with the official Python 2.6.3 distribution. I have already installed NumPy ver 1.4.1. I downloaded and unzipped the matplotlib-1.0.0.tar.gz from the SourceForge site. When I enter the command : python setup.py install

Re: [Matplotlib-users] saving animations

2010-08-25 Thread Benjamin Root
On Tue, Aug 24, 2010 at 10:28 PM, David Pine djp...@gmail.com wrote: I am trying to save the frames from a matplotlib animation and I have a question that is undoubtedly based on a profound lack of understanding about how matplotlib/python works, but I'm hoping someone can offer me an

Re: [Matplotlib-users] legend missed one dataset

2010-08-25 Thread Benjamin Root
On Wed, Aug 25, 2010 at 4:53 AM, xyz mit...@op.pl wrote: Thank you, but why the coordinates start from 2 and not from 0 with the following code? from pylab import * import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) for i in [[2,2], [2,3], [4.2,3.5]]: print

[Matplotlib-users] removing legend box

2010-08-25 Thread Bala subramanian
Friends, 1) I want to remove the rectangular box around the legend. How to do the same. I apologize if this query had been asked before. 2) reduce the distance (vertical) between two legends in the same plot. Thanks, Bala

Re: [Matplotlib-users] Problem installing matplotlib

2010-08-25 Thread Friedrich Romstedt
2010/8/25 Jeff Whitaker jsw...@fastmail.fm: gcc-4.2 is the default compiler for 10.6 - I wonder if you need to upgrade your dev tools?  Xcode 3.2.2 is available for download (free with registration) from Apple. No, he's using Python.org Python I believe, and that was compiled with gcc-4.0. So

[Matplotlib-users] exclude something from legend

2010-08-25 Thread Carlos Grohmann
Hello all, Is there a way to tell MPL that something I plotted (like a series of Line2D, to create a grid) should not be considered for the legend? I'm plotting a lot of things, and because of these objects (without label), I always got these msgs: