Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kcrisman opened this issue May 29, 2012 · 1 comment · Fixed by #960
Closed

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

kcrisman opened this issue May 29, 2012 · 1 comment · Fixed by #960
Assignees

Comments

@kcrisman
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants