Re: [Matplotlib-users] import pylab problem

2009-01-26 Thread Alan G Isaac
On 1/24/2009 4:38 PM Linda Chen apparently wrote: C:\Documents and Settings\Linda\Desktop\pythonpython readdata.py Traceback (most recent call last): File readdata.py, line 1, in module import pylab File C:\Python25\Lib\site-packages\pylab.py, line 1, in module from

[Matplotlib-users] bounding box again

2009-01-26 Thread Willi Richert
Hi, lots of user requests mentioned the problem of a too big bounding box in saved figures. Some even provided patches to the svn (http://www.nabble.com/savefig- with-tight-bounding-box.-td21515002.html). To date there is no way of automatically getting a figure plotted so tightly that it

Re: [Matplotlib-users] plotting a circle in log space

2009-01-26 Thread Michael Droettboom
At one point in history, the Agg backend would not do NaN removal on paths with curves -- but it looks like that's been inadvertently lost, probably in all the shuffling wrt simplification that went on, since simplification has similar restrictions. So at present, we have problems because

Re: [Matplotlib-users] unfilled markers?

2009-01-26 Thread Gary Ruben
Has the mec always been black? I thought it used to be the same as the line colour. I expected it to default to the line colour, as Che expected. Gary R. Norbert Nemec wrote: Sorry for my misleading words - I did not correctly recall my own work from back then... In fact, the code as it

[Matplotlib-users] building from source on Windows

2009-01-26 Thread Marcin Krol
Hello everyone, I'm trying to get 0.98.5.2 installed on Windows to use Python 2.6 (dependency packages I need to use on that version, long story, etc). When I was trying to build it (python setup.py build), it was finding the VC 9.0 C++ compiler on my comp. However, after adding necessary

Re: [Matplotlib-users] plotting a circle in log space

2009-01-26 Thread Michael Droettboom
Support for handling NaNs in curves is now on the branch and trunk. While this solves the infinite recursion problem, it still may be better in your specific case to use a CirclePolygon. All my fix does is remove an entire bezier curve when any of its elements are non-finite -- so we're

Re: [Matplotlib-users] plotting a circle in log space

2009-01-26 Thread John Hunter
On Mon, Jan 26, 2009 at 8:40 AM, Michael Droettboom md...@stsci.edu wrote: Support for handling NaNs in curves is now on the branch and trunk. While this solves the infinite recursion problem, it still may be better in your specific case to use a CirclePolygon. All my fix does is remove an

Re: [Matplotlib-users] unfilled markers?

2009-01-26 Thread John Hunter
On Mon, Jan 26, 2009 at 6:17 AM, Gary Ruben gru...@bigpond.net.au wrote: Has the mec always been black? I thought it used to be the same as the line colour. I expected it to default to the line colour, as Che expected. It's been this way since at least 2004:

[Matplotlib-users] Axes Pie chart wrong legend colors

2009-01-26 Thread AlsCdz
I have the following code: ax1.pie(fracs, explode=explode, labels=labels, autopct='%1.1f%%', shadow=True, pctdistance=0.9, labeldistance=1.1,) ax1.legend(labels, loc=0, shadow=True, prop = smallfont) And the chart:

Re: [Matplotlib-users] plotting a circle in log space

2009-01-26 Thread Michael Droettboom
John Hunter wrote: On Mon, Jan 26, 2009 at 8:40 AM, Michael Droettboom md...@stsci.edu wrote: Support for handling NaNs in curves is now on the branch and trunk. While this solves the infinite recursion problem, it still may be better in your specific case to use a CirclePolygon. All my

Re: [Matplotlib-users] bounding box again

2009-01-26 Thread Jouni K . Seppänen
Willi Richert w.rich...@gmx.net writes: Isn't there a convenient way just to not plot the big white rectangle in matplotlib? It seems that fig=plt.figure(frameon=False) omits the rectangle. -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Matplotlib-users] building from source on Windows

2009-01-26 Thread Patrick Marsh
Greetings, Did you download the win32_static folder and place it in the top level of the matplotlic source? I had similar problems building on my windows machine until I did this and now it works fine. You might also check all the README documents, as one of them gives you more information

Re: [Matplotlib-users] bounding box again

2009-01-26 Thread Willi Richert
Hi, in my version 0.98.5 frameon=False (as a subplot argument) just omits the black lines at the x and y axes. The huge white rectangle is still plotted. wr Am Montag, 26. Januar 2009 16:20:10 schrieb Jouni K. Seppänen: Willi Richert w.rich...@gmx.net writes: Isn't there a convenient way

Re: [Matplotlib-users] building from source on Windows

2009-01-26 Thread Marcin Krol
Hello Patrick, I had similar problems building on my windows machine until I did this and now it works fine. You might also check all the README documents, as one of them gives you more information about building for windows. I followed the instructions from README in win32_static precisely.

Re: [Matplotlib-users] bounding box again

2009-01-26 Thread Jae-Joon Lee
As Jouni suggested, the frameon argument needs to be applied to the figure, not to the axes (or subplot). Regards, -JJ On Mon, Jan 26, 2009 at 10:54 AM, Willi Richert w.rich...@gmx.net wrote: Hi, in my version 0.98.5 frameon=False (as a subplot argument) just omits the black lines at the x

Re: [Matplotlib-users] bounding box again

2009-01-26 Thread Jouni K . Seppänen
Willi Richert w.rich...@gmx.net writes: Isn't there a convenient way just to not plot the big white rectangle in matplotlib? It seems that fig=plt.figure(frameon=False) omits the rectangle. in my version 0.98.5 frameon=False (as a subplot argument) just omits the black lines at

Re: [Matplotlib-users] import pylab problem

2009-01-26 Thread Linda Chen
Dear John Hunter, Thanks for your response. Here is what I get: C:\Documents and Settings\Linda\Desktop\pythondir Volume in drive C is WinXP Volume Serial Number is 543D-51FE Directory of C:\Documents and Settings\Linda\Desktop\py 01/24/2009 04:34 PMDIR . 01/24/2009 04:34 PM

Re: [Matplotlib-users] import pylab problem

2009-01-26 Thread John Hunter
On Mon, Jan 26, 2009 at 11:12 AM, Linda Chen ch...@mit.edu wrote: Dear John Hunter, Thanks for your response. Here is what I get: C:\Documents and Settings\Linda\Desktop\pythondir Volume in drive C is WinXP Volume Serial Number is 543D-51FE Directory of C:\Documents and

Re: [Matplotlib-users] using savefig to save plot in desired size

2009-01-26 Thread Eric Firing
Abhinav Verma wrote: Yes Eric this is what I wanted and Many thanks for your help. My question now extends a little. Due to this .. my yaxis label is truncated in the png. How can I make sure that my figure is square and also contains everything. Is it possilbe? There is no standard

Re: [Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-26 Thread Christopher Barker
John Hunter wrote: OK, I can reproduce the problem and the solution is easy. Open the file in universal mode and pass the file handle to csv2rec:: Shouldn't csv2rec open files in Universal mode by default anyway? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response

Re: [Matplotlib-users] matplotlib-0.98.5.2-py2.5-macosx10.5.mpkg install problem

2009-01-26 Thread Christopher Barker
Glenn wrote: I tried to install matplotlib-0.98.5.2-py2.5-macosx10.5.mpkg, but got the following error: You cannot install matplotlib 0.98.5.2-r0 on this volume. matplotlib requires System Python 2.5 to install. That message is a misnomer -- the mpkg is built for the Framework install

Re: [Matplotlib-users] Fwd: Croizat on Mac OS X

2009-01-26 Thread Nick Matzke
Hi Mauro Lionel, I tried changing the backend to WX (and WxAgg) via the matplotlibrc file, but got the same result. Other suggestions welcome! Nick WX: == mws2:/bioinformatics/croizat/Croizat nick$ py Croizat.py matplotlib data path

Re: [Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-26 Thread John Hunter
On Mon, Jan 26, 2009 at 1:10 PM, Christopher Barker chris.bar...@noaa.gov wrote: John Hunter wrote: OK, I can reproduce the problem and the solution is easy. Open the file in universal mode and pass the file handle to csv2rec:: Shouldn't csv2rec open files in Universal mode by default

Re: [Matplotlib-users] Fwd: Croizat on Mac OS X

2009-01-26 Thread Nick Matzke
Hi Mauro, Update: 1. I went to the place that threw an error in the basemap code: /Library/Frameworks/Python.framework/Versions/4.1.30101/lib/python2.5/site-packages/basemap-0.99.1.0001-py2.5-macosx-10.3-fat.egg/mpl_toolkits/basemap/__init__.py, line 2501, in set_axes_limits

Re: [Matplotlib-users] Fwd: Croizat on Mac OS X

2009-01-26 Thread John Hunter
On Mon, Jan 26, 2009 at 2:14 PM, Nick Matzke mat...@berkeley.edu wrote: Hi Mauro, Update: 1. I went to the place that threw an error in the basemap code:

Re: [Matplotlib-users] Fwd: Croizat on Mac OS X

2009-01-26 Thread Jeff Whitaker
John Hunter wrote: On Mon, Jan 26, 2009 at 2:14 PM, Nick Matzke mat...@berkeley.edu wrote: Hi Mauro, Update: 1. I went to the place that threw an error in the basemap code:

Re: [Matplotlib-users] unfilled markers?

2009-01-26 Thread Gary Ruben
Thanks John, That shows how long it is since I used line markers in my plots. Because I use them so infrequently, I'm probably not the best one to suggest it, but I think it would be nicer for the default colour to match the line colour by default, or for an option to be added to allow its

Re: [Matplotlib-users] building from source on Windows

2009-01-26 Thread Patrick Marsh
Hi Marcin, I didn't catch on the first email you were trying to build for python2.6. I haven't been able to get matplotlib to build correctly with python2.6. I'm actually curious as to how you were able to build matplotlib using the win32_static folder since it doesn't contain the libs and

[Matplotlib-users] legend for plots with points

2009-01-26 Thread mfabulous
Hi all, I apologize if this was asked before. I just started adding legends to my plots and found the legend stile for a point-plot, i.e. a plot using points rather than lines to be a bit confusing. Example: pylab.plot(arange(5), arange(5), 'o', label=foo) pylab.legend() Will produce a