Re: [Matplotlib-users] matlab vs pylab png output

2009-01-14 Thread Eric Firing
Martinho MA wrote: > the script used and data file are at: > http://neptuno.fis.ua.pt/tmp/comp.html The blocks (quadrilaterals) defined by your data grid are quite a bit smaller than the png-file pixels, so perhaps it is not surprising that matlab and mpl (via Agg) might be using different strat

Re: [Matplotlib-users] Vertical alignment of a text

2009-01-14 Thread Jae-Joon Lee
Dimension of a text in mpl is renderer-dependent in general. Each renderer has "get_text_width_height_descent" method which returns width, height, and descent of the given text. If you're only interested in latex-rendered text, you may use the get_text_width_height_descent() method in the TexManage

Re: [Matplotlib-users] matlab vs pylab png output

2009-01-14 Thread Martinho MA
the script used and data file are at: http://neptuno.fis.ua.pt/tmp/comp.html the script is very simple, just: from numpy import savez,load, ma import pylab data = load('data.npz') lon = data['lon'] lat = data['lat'] sst = data['sst'] mask = data['mask'] sst=ma.masked_where(mask,sst) pylab.pc

Re: [Matplotlib-users] Vertical alignment of a text

2009-01-14 Thread Jae-Joon Lee
Take a look at http://matplotlib.sourceforge.net/users/text_props.html But I guess MPL's functionality is somewhat limited compared to PyX, especially in multiline support. -JJ On Wed, Jan 14, 2009 at 1:13 PM, wrote: > Hello, > is there a similar functionnality to the one given by PyX here

Re: [Matplotlib-users] scale the legend

2009-01-14 Thread Jae-Joon Lee
If you use recent version of mpl, the size of the overall legend should scale with the font size. See below, import matplotlib.font_manager prop = matplotlib.font_manager.FontProperties(size=5) lagend(prop=prop) Just in case, my preference in your case is to move the legend outside of the axes ar

[Matplotlib-users] Vertical alignment of a text

2009-01-14 Thread projetmbc
Hello, is there a similar functionnality to the one given by PyX here : http://pyx.sourceforge.net/examples/text/valign.html ? -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your sto

Re: [Matplotlib-users] psd question

2009-01-14 Thread Lewis, Ambrose J.
Good point Matt...I'm using the latest (and I do see the scaling warning message) I'll check on the default window type for Matlab THANXS amb Ambrose Lewis SAIC 4001 N Fairfax Drive, Suite 400 Arlington, VA 22203 703.558.2786 ambrose.j.le...@saic.com -Original Message- From: matplotlib-us

Re: [Matplotlib-users] Newbie question/closing a figure-window

2009-01-14 Thread John Hunter
On Wed, Jan 14, 2009 at 10:24 AM, Hajas, Wayne wrote: > Thanks to everybody who responded to my original post. > > I think Massimo put it best: IDLE does not play well with matplotlib. I > will just have to learn how to be effective with ipython. This may be true that idle doesn't play well with

Re: [Matplotlib-users] [matplotlib-devel] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread Sandro Tosi
On Wed, Jan 14, 2009 at 18:22, John Hunter wrote: > On Wed, Jan 14, 2009 at 10:26 AM, Sandro Tosi wrote: >> I was wondering that, for the time being, I could upload to >> experimental: developers, do you have any plan to release .3 soon? If >> not, and upload to our "experimental" area (that's a

Re: [Matplotlib-users] matplotlib and PyQt

2009-01-14 Thread John Hunter
On Wed, Jan 14, 2009 at 10:19 AM, wrote: > Hello, > > I'm searching for informations about using matplotlib interactively with > PyQt. I > would like for example to move line with the mouse. Start with the tutorial at http://matplotlib.sourceforge.net/users/event_handling.html it has a drag

Re: [Matplotlib-users] matplotlib and PyQt

2009-01-14 Thread Simson Garfinkel
Why do you want to use PyQt and not wxwidgets? On Jan 14, 2009, at 8:19 AM, projet...@club-internet.fr wrote: > Hello, > > I'm searching for informations about using matplotlib interactively > with PyQt. I > would like for example to move line with the mouse. > > > ---

Re: [Matplotlib-users] [matplotlib-devel] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread John Hunter
On Wed, Jan 14, 2009 at 10:26 AM, Sandro Tosi wrote: > On Wed, Jan 14, 2009 at 14:14, John Travers wrote: >> On Wed, Jan 14, 2009 at 8:10 AM, Sandro Tosi wrote: >>> Hi all, >>> due to some requests came lately, I decided to upload the "temp" >>> Debian package for 0.98.5.2. >>> >>> They are avai

Re: [Matplotlib-users] Using matplotlib/basemap interactively

2009-01-14 Thread Mauro Cavalcanti
Dear Jon, This is exactly what my just released MPL/Basemap/wxPython application for drawing biogeographic maps does! Get it (with source code under GNU GPL) form http://panbiog.infobio.net/croizat Hope it helps! Best regards, 2009/1/14 Jon Blower : > Hi all, > > I'd like to be able to create

Re: [Matplotlib-users] psd question

2009-01-14 Thread Fago, Matt - AES
> I'm trying to use the matplotlib psd function to plot some data. The > result from MATLAB's pWelch function looks vastly different. What is the default window type for Matlab? For Matplotlib it is the Hanning window. If Matlab defaults to a rectangular window the results will look quite differ

Re: [Matplotlib-users] psd question...

2009-01-14 Thread Ryan May
Lewis, Ambrose J. wrote: > Hi All: > > I’m trying to use the matplotlib psd function to plot some data. The > result from MATLAB’s pWelch function looks vastly different. > > Any suggestions/recommendations would be greatly appreciated! > What version of matplotlib are you running? I made som

Re: [Matplotlib-users] [matplotlib-devel] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread Sandro Tosi
On Wed, Jan 14, 2009 at 14:14, John Travers wrote: > On Wed, Jan 14, 2009 at 8:10 AM, Sandro Tosi wrote: >> Hi all, >> due to some requests came lately, I decided to upload the "temp" >> Debian package for 0.98.5.2. >> >> They are available at [1]. > > Any chance you could add them to your apt re

Re: [Matplotlib-users] Newbie question/closing a figure-window

2009-01-14 Thread Hajas, Wayne
Thanks to everybody who responded to my original post. I think Massimo put it best: IDLE does not play well with matplotlib. I will just have to learn how to be effective with ipython. Cheers, Wayne Hajas Pacific Biological Station 3190 Hammond Bay Road Nanaimo, BC Canada V9T 6N7 wayne.ha...@df

[Matplotlib-users] matplotlib and PyQt

2009-01-14 Thread projetmbc
Hello, I'm searching for informations about using matplotlib interactively with PyQt. I would like for example to move line with the mouse. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants t

[Matplotlib-users] psd question...

2009-01-14 Thread Lewis, Ambrose J.
Hi All: I'm trying to use the matplotlib psd function to plot some data. The result from MATLAB's pWelch function looks vastly different. Any suggestions/recommendations would be greatly appreciated! THANXS amb Here is the MATLAB code: Fs = 13e6; fid = fopen('C:\asp\roseRT\ics_output.bin

[Matplotlib-users] scale the legend

2009-01-14 Thread David Geller
Is it possible to make the relative size of the legend smaller? On my plots, the legend covers half the plot, and nothing I have tried so far seems to shrink the legend. Thanks! David -- This SF.net email is sponsored

Re: [Matplotlib-users] An application of Matplotlib/Basemap and wxPython to quantitative biogeography

2009-01-14 Thread Ryan May
Mauro Cavalcanti wrote: > Dear ALL, > > I am proud to announce that "Croizat", a software for quantitative > analysis in biogeography, is finally ready for public release! > "Croizat" is available for free under the GNU General Public License, > version 3.0. > > The software is written in Pytho

Re: [Matplotlib-users] Latest release of Basemap

2009-01-14 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2009/1/13 Jeff Whitaker : > >> Mauro: I'll try to get a new release tomorrow (releasing the source is >> easy, finding the time to make a windows installer is more difficult, since >> I have to borrow someone else's windows box). >> >> -Jeff >> > >

Re: [Matplotlib-users] Using matplotlib/basemap interactively

2009-01-14 Thread Jon Blower
OK, Mauro Cavalcanti has just solved my problems by posting about the release of his Croizat application! Looking through his source, I can answer both of my own questions (please correct me if I'm wrong): > 1) Remove stuff from the map in script. I need to call remove() on the items on the map t

[Matplotlib-users] fill_between a plot with gradient

2009-01-14 Thread Vergnes Nicolas
Hi all, I'm using plot(x,y) and fill_between(x,y) to make a graphic flat plot I'd like to create a fill_between with a gradient color like this geen/yellow plot in example : http://oss.oetiker.ch/rrdtool/gallery/fsu_predict.png I have seen that fill_between() have cmap = , is it a good way to d

[Matplotlib-users] An application of Matplotlib/Basemap and wxPython to quantitative biogeography

2009-01-14 Thread Mauro Cavalcanti
Dear ALL, I am proud to announce that "Croizat", a software for quantitative analysis in biogeography, is finally ready for public release! "Croizat" is available for free under the GNU General Public License, version 3.0. The software is written in Python, using the Matplotlib library with its

[Matplotlib-users] Using matplotlib/basemap interactively

2009-01-14 Thread Jon Blower
Hi all, I'd like to be able to create an GUI application based around a map created using the basemap library. In the GUI I'd like to be able to add and remove layers of information to the map interactively, based upon button presses. I have successfully interacted with basemap using IPython, me

Re: [Matplotlib-users] Newbie question/closing a figure-window

2009-01-14 Thread Mauro Cavalcanti
Dear Richard, 2009/1/14 Richard Johns : > The full edition of Python(x,y) 2.1.9 contains all of the software you > mentioned(PIL, matplotlib, IPython, Enthought Tool Suite) while any of > these missing from the basic and light editions can be added as plugins. Enthought Python includes a lot more

[Matplotlib-users] Matplotlib 0.98.5.2 - Debian packages available (source + amd64)

2009-01-14 Thread Sandro Tosi
Hi all, due to some requests came lately, I decided to upload the "temp" Debian package for 0.98.5.2. They are available at [1]. If you're using an amd64 architecture, then you can take all those python-matplotlib*.deb and "sudo dpkg -i deb" them, if you're using another architecture, then (ne