This is a constant source of confusion.  The colorbar object should be
thought of as just another subaxes.  To get the ticks, you want the ticks
from the colorbar's yaxis or xaxis object accordingly.  Of course, I could
have sworn we added a helper function for this at some point, but I could
be wrong.

I hope that helps!
Ben Root


On Tue, Jul 2, 2013 at 5:43 AM, Chao YUE <chaoyue...@gmail.com> wrote:

> Dear all matplotlib users,
>
> I found there is not a get_ticks method available for colorbar instance,
> how could I quick get the ticks of a colorbar?
>
> thanks,
>
> Chao
> --
>
> ***********************************************************************************
> Chao YUE
> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> UMR 1572 CEA-CNRS-UVSQ
> Batiment 712 - Pe 119
> 91191 GIF Sur YVETTE Cedex
> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
>
> ************************************************************************************
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to