Dataless colorbars break when updated #13963
Labels
Release critical
For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
topic: color/colorbar
Milestone
#13171 documented how to construct a colorbar "without an associated artist", via
fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap), ax=ax)
. It is also possible e.g. to update the colorbar via(Although this is only documented in master, the recipe has existed for a while.)
But this got broken by #13234: one now gets
Indeed, the ScalarMappable class does not define get_alpha(). I think the solutions are either to make Colorbar.update_normal first check for whether such a method exists, or to add a dummy get_alpha() (always returning 1) to ScalarMappable.
Allowing myself to label as release critical (as a regression) but feel free to relabel if you disagree.
mpl master, arch linux, py3.7
The text was updated successfully, but these errors were encountered: