Re: [Matplotlib-users] warining with ipython

2009-04-28 Thread Bala subramanian
Hi, I was nt running any script of my own. This warning came when i was working on matplotlib-pyplot tutorials (simple plot and multiple line plots). Bala On Mon, Apr 27, 2009 at 10:42 PM, Sandro Tosi mo...@debian.org wrote: On Mon, Apr 27, 2009 at 15:18, Bala subramanian

[Matplotlib-users] installation issue

2009-04-28 Thread Bala subramanian
Friends, I installed matplotlib in Fedora10 using yum which installed the version 0.98.1 .I could nt upgrade matplotlib using yum. Hence i downloaded the source and tried to install but i am getting the following error. Kindly write me what is going wrong. [r...@ramana matplotlib-0.98.5.2]#

Re: [Matplotlib-users] xlabel vertical positioning

2009-04-28 Thread Thomas Robitaille
Hi Jouni, Thanks for your help! Following what you suggested, I've decided to use ax.text(0.5,-0.13,xlabel,transform =ax.transAxes,ha='center',va='center') Thanks, Thomas On 28 Apr 2009, at 01:39, Jouni K. Seppänen wrote: Thomas Robitaille thomas.robitai...@gmail.com writes: This is

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Sandro Tosi
On Tue, Apr 28, 2009 at 14:46, Bala subramanian bala.biophys...@gmail.com wrote: [r...@ramana matplotlib-0.98.5.2]# python setup.py build In file included from src/ft2font.cpp:1: src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared src/ft2font.h:31: error: ‘FT_Int’ has not been declared

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Bala subramanian
Hi, I think freetype is already installed in Fedora10. When i search yum as follows, yum says freetype is installed already. *[r...@ramana cbala]# yum info freetype* Loaded plugins: refresh-packagekit Installed Packages Name : freetype Arch : i386 Version: 2.3.7 Release:

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Jouni K . Seppänen
Bala subramanian bala.biophys...@gmail.com writes: I think freetype is already installed in Fedora10. When i search yum as follows, yum says freetype is installed already. You probably need to install a package named freetype-devel (or something like that) to get the freetype headers you need

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Bala subramanian
Hi, Thank you. I will install the headers and try again. Meanwhile i would like to know. Suppose if i install the latest mpl that i just downloaded, will it overwrite the mpl version 0.98.1 previously installed with yum ? If not, when i give ipython -pylab, which version will be loaded, I mean

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Sandro Tosi
On Tue, Apr 28, 2009 at 15:26, Bala subramanian bala.biophys...@gmail.com wrote: Hi, I think freetype is already installed in Fedora10. When i search yum as I said freetype2 *headers*, those files needed for development, not runtime support. Install the according packages for your distribution.

Re: [Matplotlib-users] installation issue

2009-04-28 Thread Jouni K . Seppänen
Bala subramanian bala.biophys...@gmail.com writes: Meanwhile i would like to know. Suppose if i install the latest mpl that i just downloaded, will it overwrite the mpl version 0.98.1 previously installed with yum ? If not, when i give ipython -pylab, which version will be loaded, I mean

Re: [Matplotlib-users] installation issue

2009-04-28 Thread John Hunter
On Tue, Apr 28, 2009 at 9:51 AM, Jouni K. Seppänen j...@iki.fi wrote: Bala subramanian bala.biophys...@gmail.com writes: Meanwhile i would like to know. Suppose if i install the latest mpl that i just downloaded, will it overwrite the mpl version 0.98.1 previously installed with yum ? If

Re: [Matplotlib-users] overriding the save button

2009-04-28 Thread John Hunter
On Tue, Apr 28, 2009 at 8:21 AM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hi, I was wondering if it is possible to override the 'save' button in wxAgg so that once a filename has been specified in the dialog, a custom function is run instead of the default savefig? Maybe this

[Matplotlib-users] First public release of APLpy

2009-04-28 Thread Astronomical Python
We are pleased to announce the first public beta release of APLpy, a python module that makes it easy to interactively produce publication-quality plots of astronomical images in FITS format. More details are available at http://aplpy.sourceforge.net/ From the front page you

Re: [Matplotlib-users] xlabel vertical positioning

2009-04-28 Thread Yong-Duk Jin
You can use 'LABELPAD' to adjust label position. e.g. import pylab hAxes = pylab.axes() pylab.xlabel('test') hAxes.xaxis.LABELPAD = 0 pylab.show() -- Yong-Duk Jin On Tuesday 28 April 2009 14:08:50 Thomas Robitaille wrote: Hi, This is probably a simple question, but what is the best way to

[Matplotlib-users] Font size and savefig

2009-04-28 Thread Thomas Robitaille
Hi, I am using the savefig method to save plots - however, I am finding that the font size is systematically larger in the saved images than in the WxAgg window. It seems that text is ~30% larger in PNG and PDF files compared to the WxAgg display (relative to the axes box size). This can

Re: [Matplotlib-users] xlabel vertical positioning

2009-04-28 Thread Thomas Robitaille
Thanks! I could not find any documentation relating to this, so I was wondering whether it would be better to go with a well-documented function such as text or figtext? What would be best to use? Thomas On 28 Apr 2009, at 22:27, Yong-Duk Jin wrote: You can use 'LABELPAD' to adjust label

Re: [Matplotlib-users] overriding the save button

2009-04-28 Thread Thomas Robitaille
Hi John, Thanks for your help! I'm not sure how I should go about overriding the existing method. Say I have the following custom savefig(): def savefig(self, evt): print Hello world and a figure() instance fig, how do I actually tell fig.canvas.manager.frame.toolbar.save to actually

Re: [Matplotlib-users] overriding the save button

2009-04-28 Thread John Hunter
On Tue, Apr 28, 2009 at 10:01 PM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hi John, Thanks for your help! I'm not sure how I should go about overriding the existing method. Say I have the following custom savefig(): def savefig(self, evt): print Hello world and a

Re: [Matplotlib-users] Font size and savefig

2009-04-28 Thread John Hunter
On Tue, Apr 28, 2009 at 9:52 PM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hi, I am using the savefig method to save plots - however, I am finding that the font size is systematically larger in the saved images than in the WxAgg window. It seems that text is ~30% larger in PNG

Re: [Matplotlib-users] Font size and savefig

2009-04-28 Thread Jae-Joon Lee
On Tue, Apr 28, 2009 at 11:09 PM, John Hunter jdh2...@gmail.com wrote: If you want the relative fontsizes in the figure window and saved figure to agree, pass the same dpi to the figure command and savefig command. John, I thought the font size (which is specified in points) is independent of