<div dir="ltr"><div>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, somehow.<br><br></div>Ben Root<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 17, 2016 at 5:01 AM,  <span dir="ltr"><<a href="mailto:aeuii@posteo.de" target="_blank">aeuii@posteo.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I would like to iterate over fig.axes and apply some changes to regular<br>
axes and skip those belonging to colorbars.<br>
<br>
What's the best way (having only fig object) to detect if an axis<br>
belongs to a colorbar or not?<br>
<br>
Thanks for an advice.<br>
<br>
Best regards,<br>
Stefan<br>
<br>
______________________________<wbr>_________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/matplotlib-<wbr>users</a><br>
</blockquote></div><br></div>