general matplotlib usage questions

Sorry! Forgot to send to the list since the reply-to isn't set properly...

Thanks very much for your reply!

I think I know what causes this, I saw something similar in the Qt backends
a while back. When the mouse cursor enters the axes, the coordinates of the
cursor are reported in the statusbar/toolbar. The backend needs to be
configured so this text widget would rather run off the end of the window
than resize the window. I don't know how this is done in Tk, I've never
worked with that GUI library.

Now you point it out it is clear that that is what is causing it. I'm
using python.org python on a Mac and it's not clear to me how best to
install Qt - so at the moment Tk is the only working backend I have.

You can use the subplot_adjust button on the toolbar for some degree of
customization. But in general, it can be a somewhat time consuming to get
the layout just right. I think it would be difficult for mpl to determine
what the appropriate axes position should be given a certain figure and text
size.

I don't know about the widget - that is fantastic and it will make a
huge difference... It is slightly confusing since I have been working
with the set_position type numbers, but being able to change them
interactively will save a lot of time.
Another thing I've noticed is that the pdf output is always slightly
different to the displayed output - for example some text might be cut
off on the interactive view, but the saved pdf is fine... Is this also
a known behaviour?

Thanks again,

Robin

···

On Thu, Nov 20, 2008 at 1:12 PM, Darren Dale <darren.dale@...163...> wrote:

Robin wrote:

Now you point it out it is clear that that is what is causing it. I'm
using python.org python on a Mac and it's not clear to me how best to
install Qt - so at the moment Tk is the only working backend I have.

try wxPython -- it's easy to install and works well.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Dear Robin,

I do agree (although the Python gurus here highly recommend Qt
instead). wxPython is well documented and has *plenty* of exemples
(much of them truly useful).

I have been working hard to developing a scientific desktop
application which uses wxPython for its GUI frontend and
Matplotlib/Basemap for plotting maps and bar charts. Have learned a
few tricks (and the help of John Hunter and Jeff Whittaker is much
appreciated), which I will make available to all as soon as possible.

Regards,

2008/11/20 Christopher Barker <Chris.Barker@...259...>:

···

Robin wrote:

Now you point it out it is clear that that is what is causing it. I'm
using python.org python on a Mac and it's not clear to me how best to
install Qt - so at the moment Tk is the only working backend I have.

try wxPython -- it's easy to install and works well.

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: maurobio@...287...
Web: http://studio.infobio.net
Linux Registered User #473524 * Ubuntu User #22717
"Life is complex. It consists of real and imaginary parts."