On Mon, May 21, 2012 at 8:17 AM, Chao YUE <chaoyue...@gmail.com> wrote:
> Dear all,
>
> Is there a way to remove colorbar? axes.cla() clears only the region for
> map but not the colorbar.
>
> Chao
>
>
Colorbars are a bit tricky. They are actually a subplot axes separate from
your plotting axes. And I don't think they are very easy to remove. You
could do a "cbar.axes.cla()", but that would still leave the "ticks", tick
labels and the colorbar label.
I am sure that there is a way to get to what you want, but it isn't
immediately obvious. If someone knows how to do it, maybe we should make
that into a convenience function? Perhaps cbar.remove()?
Sorry I could not be more help.
Ben Root
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users