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

Log Formatter for tick labels can't handle non-integer base · Issue #909 · matplotlib/matplotlib · GitHub

Repository navigation

Log Formatter for tick labels can't handle non-integer base #909

Closed

Description

In LogFormatterMathtext, we have

    else:
        if usetex:
            s = r'$%s%d^{%d}$'% (sign_string, b, nearest_long(fx))
        else:
            s = r'$\mathdefault{%s%d^{%d}}$'% (sign_string, b,
                                               nearest_long(fx))

But this is a problem if one is using non-integer base for a plot, like 1.5. Suggestion is to fix by %.2f^{%d} or something similar if a non-integer base is detected. Joint suggestion of Punarbasu Purkayastha, Karl-Dieter Crisman.

Activity

  1. ghost assigned on Jun 13, 2012
  2. pelson commented on Aug 15, 2012

    Member

    Fixed in master. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL