Re: [Matplotlib-users] Traits

2010-03-05 Thread Eric Firing
David Arnold wrote: > All, > > In one post from John Hunter, I heard the word "traits", which I assume is > from the enthought distribution. > > Is there a move in matplotlib toward the "trait" technology taking place? How > about for Python in general? > No to both, as far as I know. Every

[Matplotlib-users] Traits

2010-03-05 Thread David Arnold
All, In one post from John Hunter, I heard the word "traits", which I assume is from the enthought distribution. Is there a move in matplotlib toward the "trait" technology taking place? How about for Python in general? Thanks. David. --

Re: [Matplotlib-users] Using callbacks to change Axes positions

2010-03-05 Thread Jae-Joon Lee
divider.get_horizontal() returns a list of size objects (http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/api/axes_size_api.html#module-mpl_toolkits.axes_grid.axes_size) that are currently used. For example, cax = divider.new_horizontal(size="5%", pad=0.05) horiz_list = divider.get_ho

Re: [Matplotlib-users] Using callbacks to change Axes positions

2010-03-05 Thread Thomas Robitaille
Hi Jae-Joon, Thanks for your help! One last question - if I create a colorbar axes with cax = divider.new_horizontal(size="5%", pad=0.05) Is it possible to then modify the size and pad parameters, or do I need to delete the axes and start again? Cheers, Tom On Mar 5, 2010, at 12:20 PM, Jae-J

Re: [Matplotlib-users] Mysterious "ValueError: zero-size array..."

2010-03-05 Thread Friedrich Romstedt
2010/3/5 David Goldsmith : > I think it's a bug in numpy.ma._extrema_operations.reduce (at least Pierre GM > couldn't explain it away and instructed me to file a bug ticket on it over > there, which I did; w/ your permission, I'll add your code to that ticket?) - > at the very least, it should b

Re: [Matplotlib-users] Mysterious "ValueError: zero-size array..."

2010-03-05 Thread David Goldsmith
(Pierre GM: are you subscribed to this list? If so, sorry for cc-ing you.) --- On Fri, 3/5/10, Friedrich Romstedt wrote: > From: Friedrich Romstedt > Subject: Re: [Matplotlib-users] Mysterious "ValueError: zero-size array..." > To: "David Goldsmith" > Date: Friday, March 5, 2010, 10:46 AM > I

[Matplotlib-users] Transparencies for land and sea

2010-03-05 Thread Bruce Ford
Has anyone had any success in making land or sea locations transparent in a resulting .png? There are instances when I would like an image to be overlayed on a map and let the underlying terrain map show through. Using an image as a ground overlay in Google Earth would be an example of such a usa

Re: [Matplotlib-users] Using callbacks to change Axes positions

2010-03-05 Thread Jae-Joon Lee
Unfortunately, axes_grid toolkit (in most cases) creates an axes using its own Axes class by default. Here is some more details. http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axisline To use mpl's original Axes class, append axes_class parameter. import matplotlib.

Re: [Matplotlib-users] Using callbacks to change Axes positions

2010-03-05 Thread Jae-Joon Lee
Hi, It turns out to be a bug (new_vertical works, but new_horizontal does not). To work around this right after cax = divider.new_horizontal(size="5%", pad=0.05, pack_start=True) add these lines locator = divider.new_locator(nx=0, ny=0) cax.set_axes_locator(locator) These two lines only need

Re: [Matplotlib-users] Using callbacks to change Axes positions

2010-03-05 Thread Thomas Robitaille
Hi Jae-Joon, I am encountering another issue, when using the method you suggest in combination with the parasite_axes from the matplotlib toolkit: --- import matplotlib.pyplot as mpl import numpy as np from mpl_toolkits.axes_grid import make_axes_locatable import mpl_toolkits.axes_grid.parasite

Re: [Matplotlib-users] Using callbacks to change Axes positions

2010-03-05 Thread Thomas Robitaille
Hi Jae-Joon, Thanks! This is exactly what I needed. Putting the colorbar on the right or bottom works great - however, I am running into issues with trying to put the colorbar on the left or bottom (which, from my understanding, is controlled by using pack_start=True?). Should the following cod