Open
Description
Problem
Currently, setting a Colorbar's formatter is done by assigning to the cbar.formatter
property. It would be nice if a getter/setter was provided following the standard Matplotlib API (ditto for minor formatters), as that would also allow directly setting the formatter in the constructor (fig.colorbar(..., formatter=...)
) or via a general cbar.set(..., formatter=...)
The same issue applies for ticks, although in that case there's actually already set_ticks which already accepts taking a locator as argument; here I guess(?) it should be possible to just let ticks
be an alias for locator
.
Proposed solution
No response