[Matplotlib-users] strange inconsistency
Fabrice Silva
silva at lma.cnrs-mrs.fr
Fri Jan 8 07:15:50 EST 2016
Le vendredi 08 janvier 2016, Neal Becker a écrit :
> In the following script, in the call to hexbin, I can use
> ax.hexbin
> or
> plt.hexbin
>
> but in the call to colorbar, I can only use
> plt.colorbar
> not
> ax.colorbar
>
> This seems strangely inconsistent
Because the colorbar is not attached to the axes instance, but to the
figure instance as it can illustrate any Image, ContourSet, etc... in
the figure.
More information about the Matplotlib-users
mailing list