We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dualx seems to have an issue handling log scale axis.
dualx
import numpy as np import proplot as pplt x = np.logspace(-1, 1, 100) fig, ax = pplt.subplots() ax.semilogx(x, np.sin(x)) ax.dualx(lambda x: 1/x)
The top tick labels are a mess.
import numpy as np import matplotlib.pyplot as plt x = np.linspace(0.1, 10, 1000) fig, ax = plt.subplots() ax.semilogx(x, np.sin(x)) ax.grid() ax.secondary_xaxis('top', functions=(lambda x: 1/x, lambda x: 1/x))
3.4.3 0.9.7
The text was updated successfully, but these errors were encountered:
Not a real solution but for now you could do:
import numpy as np import proplot as plt x = np.logspace(-1, 1, 100) fig, ax = plt.subplots() ax.semilogx(x, np.sin(x)) tax = ax.dualx(lambda x: x) tax.invert_xaxis() plt.show(block=1)
Sorry, something went wrong.
Which produces
No branches or pull requests
Description
dualx
seems to have an issue handling log scale axis.Steps to reproduce
The top tick labels are a mess.
Equivalent steps in matplotlib
Proplot version
3.4.3
0.9.7
The text was updated successfully, but these errors were encountered: