Closed mathause closed 6 months ago
mpu.colorbar
ax1
ax2
plt.colorbar
plt.colorbar( mappable: 'ScalarMappable | None' = None, cax: 'matplotlib.axes.Axes | None' = None, ax: 'matplotlib.axes.Axes | Iterable[matplotlib.axes.Axes] | None' = None, **kwargs, ) -> 'Colorbar'
We should also set
def colorbar( mappable, ax: 'matplotlib.axes.Axes | Iterable[matplotlib.axes.Axes], *, ... )
(deprecating ax1 and ax2) so that both take ax as argument.
ax
This would also allow to pass all axes and then use the rightmost/ bottommost of them.
mpu.colorbar
currently takesax1
andax2
as input. https://github.com/mathause/mplotutils/blob/e48e8d156990f269b786e0d7f29b3c8c3ac2f16f/mplotutils/_colorbar.py#L10-L13plt.colorbar
, in contrast usesWe should also set
(deprecating
ax1
andax2
) so that both takeax
as argument.