FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

inconsistent colorbar tick labels for LogNorm · Issue #12488 · matplotlib/matplotlib · GitHub

Repository navigation

inconsistent colorbar tick labels for LogNorm #12488

Closed

Description

Bug report

Bug summary

Code for reproduction

from pylab import *
rcdefaults()
imshow([[10000, 20000]], norm=matplotlib.colors.LogNorm())
colorbar()

Actual outcome

Expected outcome

Either both tick labels use a superscript exponent (preferable), or neither does.
Noted while investigating #12473 (comment).

Matplotlib version

  • Matplotlib version: master, present as far back as 2.0.0.

Activity

  1. ImportanceOfBeingErnest commented on Oct 12, 2018

    Member

    I just tested this exact code with

    • mpl 2.0.2 -> issue is not present
    • mpl 2.2.2 -> issue is not present
    • mpl 2.2.3 -> issue is not present
    • mpl 3.0.0 -> issue appears
    • current master (fetched 2 days ago) -> issue appears
  2. added this to the v3.0.x milestone on Oct 12, 2018
  3. added
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    on Oct 12, 2018
  4. anntzer commented on Oct 12, 2018

    ContributorAuthor

    let's mark this as a regression, then...
    bisects to #9903 @jklymak :)

  5. jklymak commented on Oct 12, 2018

    Member

    Before #9903 colorbar ticks were drawn by hand. After #9903 they should just behave like normal y-axes ticks. So unless we want to revert #9903 and go back to drawing by hand, the error is likely deeper in the code.

  6. anntzer commented on Oct 12, 2018

    ContributorAuthor

    It may well be that #9903 just exposed a bug deeper in the stack, I wouldn't be surprised at all by that :)
    No strong opinion as to the best course of action.

  7. jklymak commented on Oct 12, 2018

    Member

    Nope, it was a bug in colorbar. My bad.

    That code is still somewhat messy. But for 3.0.1 lets just get the bugfix in...

  8. self-assigned this
    on Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL