Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
Problem
Currently, setting a Colorbar's formatter is done by assigning to thecbar.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 generalcbar.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 letticks
be an alias forlocator
.
Proposed solution
No response