8000 Log Formatter for tick labels can't handle non-integer base · Issue #909 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Log Formatter for tick labels can't handle non-integer base #909
Closed
@kcrisman

Description

@kcrisman

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.

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

    0