Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[ENH]: Add Colorbar.{get,set}_{,minor}{locator,formatter} #26896

Copy link
Copy link
Open
@anntzer

Description

@anntzer
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.