axes_grid1 and colorbar ticks

does someone knows how to specify ticks for a colorbar
inside axesgrid? the following does not work as expected:

from mpl_toolkits.axes_grid1 import AxesGrid
ticks = [.01, .25, .5, .75, .99]
grid = AxesGrid()
[...]
grid.cbar_axes[i].colorbar(im, ticks=ticks)

i'm thankfull for any pointers,
yoshi

This seems to be a bug that need to be fixed.
Meanwhile, use "locator" parameter as below.

cbar = grid.cbar_axes[0].colorbar(im, locator=ticks)
Regards,

-JJ

ยทยทยท

On Thu, Nov 17, 2011 at 5:35 AM, Yoshi Rokuko <yoshi@...3676...> wrote:

does someone knows how to specify ticks for a colorbar
inside axesgrid? the following does not work as expected:

from mpl_toolkits.axes_grid1 import AxesGrid
ticks = [.01, .25, .5, .75, .99]
grid = AxesGrid()
[...]
grid.cbar_axes[i].colorbar(im, ticks=ticks)

i'm thankfull for any pointers,
yoshi

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

+--------------------------- Jae-Joon Lee -----------+

This seems to be a bug that need to be fixed.
Meanwhile, use "locator" parameter as below.

cbar = grid.cbar_axes[0].colorbar(im, locator=ticks)

that works, thank you!

best regards, yoshi