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

Skip to content

Symlog plotting is broken for anything other than base 10 #681

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

Merged
merged 1 commit into from
Jan 17, 2012

Conversation

joferkington
Copy link
Contributor

Symlog plotting raises an IndexError if basex or basey is anything other than 10.

As an example:

import matplotlib.pyplot as plt

fig, ax = plt.subplots()
ax.set_xscale('symlog', basex=2)

x = range(1024)
ax.plot(x)

plt.show()

This is caused by a mutable default argument in ticker.SymmetricalLogLocator.

efiring added a commit that referenced this pull request Jan 17, 2012
Symlog plotting is broken for anything other than base 10
@efiring efiring merged commit e4893f5 into matplotlib:master Jan 17, 2012
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 this pull request may close these issues.

2 participants