[Matplotlib-users] How do I set grid spacing?

2012-04-03 Thread Ben Harrison
I create my figure in my (non-interactive) script like so: import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot(...) Then I want to set the spacing of y grid to 50 units (axis units). Do I need a method of the matplotlib.axis.Axis, or matplotlib.axes.Axes (or are

Re: [Matplotlib-users] assigning a plot object to a figure

2012-04-03 Thread Emmanuel Mayssat
Although this work, I lose the position of the axes. How can I reposition the axes2 which was at 221 in fig2, to 221 in fig1 ? From: Emmanuel Mayssat To: Eric Firing ; "matplotlib-users@lists.sourceforge.net" Sent: Monday, April 2, 2012 3:20 PM Subject: Re:

[Matplotlib-users] Trouble installing on OSX 10.7

2012-04-03 Thread Elliot Saba
Hello, I am also having trouble installing matplotlib on OSX 10.7 (Homebrew python 2.7.2, clang v2.1) and when trying to compile it from source, I get errors regarding libpng. (https://gist.github.com/2269043) These are the same errors I get when trying to install via pip. I saw that there used to

[Matplotlib-users] clear figure, ax, etc

2012-04-03 Thread Emmanuel Mayssat
what does figure.clear() do ? what about ax.clear()? The doc is kind of sparce. The 2 function/method above do nothing on my setup. ax.clear() I was expecting to mean 'erase all the 2DLines' figure.clear()  I was expecting 'hide all the axes' Now figure.del_axes(self.figure.axes)  does not do a

[Matplotlib-users] waitforbuttonpress DeprecationWarning

2012-04-03 Thread Jonathan Slavin
Hi, I've been writing a routine that interactively finds fitting limits. Some of the time it seems that doing draw() flushes the output to the figure and some of the time it doesn't. The only way I can reliably get it to do that is to insert a waitforbuttonpress into the code. However, this rais

Re: [Matplotlib-users] installing basemap

2012-04-03 Thread Jeff Whitaker
On 4/3/12 3:09 AM, David Craig wrote: > Hi again, > So I removed everything and started again ( with version 1-0-2 :) ) > but am still having trouble, GEOS_DIR seems to be set correctly but I > get the following error when trying to make the GEOS library with, > > sudo make; make install > > make[3

Re: [Matplotlib-users] installing basemap

2012-04-03 Thread David Craig
Hi again, So I removed everything and started again ( with version 1-0-2 :) ) but am still having trouble, GEOS_DIR seems to be set correctly but I get the following error when trying to make the GEOS library with, sudo make; make install make[3]: Entering directory `/home/davcra/basemap-1.0.2/ge