Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Norms need scales for good colorbars... #16375

Open
@jklymak

Description

@jklymak

Right now some color norms have accompanying scales, which allows their colorbars to have first-class scales. But some do not...

  • LogNorm:log
  • PowerNorm: no scale
  • TwoSlopeNorm: no scale
  • BoundaryNorm: shouldn't have a scale

Instead of inferring the first-class scale, I'd suggest we add a new property:norm._scale so that colorbar does not have to guess the scale. This should be a string so that it will only call registered scales, and it should beNone when no scale is defined.

If itsNone, then colorbar will use the old default way of setting the scale. Otherwise it will set the scale usingax.set_yscale(norm._scale).

Weprobably don't want the user to set this - if they want to change the colorbar scale, they can simply use the normalax.set_yscale directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp