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
Views that share the x-axis could be plotted using an alternative right y-axis. Is this possible?
The text was updated successfully, but these errors were encountered:
In matplotlib, this is possible using the command twinx, see the code below. I don´t know how easy it is to integrate this code in Reptate.
import numpy as np import matplotlib.pyplot as plt
fig, ax1 = plt.subplots() t = np.arange(0.01, 10.0, 0.01) s1 = np.exp(t) ax1.plot(t, s1, 'b-') ax1.set_xlabel('time (s)')
ax1.set_ylabel('exp', color='b') ax1.tick_params('y', colors='b')
ax2 = ax1.twinx() s2 = np.sin(2 * np.pi * t) ax2.plot(t, s2, 'r.') ax2.set_ylabel('sin', color='r') ax2.tick_params('y', colors='r')
fig.tight_layout() plt.show()
Sorry, something went wrong.
I think this would complicate the code a lot without adding any necessary functionality
No branches or pull requests
Views that share the x-axis could be plotted using an alternative right y-axis.
Is this possible?
The text was updated successfully, but these errors were encountered: