[Matplotlib-users] detect axes belonging to a colorbar

Benjamin Root ben.v.root at gmail.com
Fri Aug 19 10:26:26 EDT 2016

No, I don't think there is a way, really. From the perspective of the
figure object, the colorbar looks just like another axes object. There
might be a trick that might work in some cases, but they would be highly
fragile. It would be better to just capture the colorbar object directly,

Ben Root

On Wed, Aug 17, 2016 at 5:01 AM, <aeuii at posteo.de> wrote:

> Hi,
> I would like to iterate over fig.axes and apply some changes to regular
> axes and skip those belonging to colorbars.
> What's the best way (having only fig object) to detect if an axis
> belongs to a colorbar or not?
> Thanks for an advice.
> Best regards,
> Stefan
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160819/c80a3b44/attachment.html>

More information about the Matplotlib-users mailing list