Last active
July 20, 2022 08:05
-
-
Save cutebomb/42d3485198bb9b8dd241427e11d8153f to your computer and use it in GitHub Desktop.
matplotlib ax2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
fig = plt.figure() | |
ax1 = fig.add_subplot(111) | |
ax1.plot(v1) | |
ax2 = ax1.twinx() | |
ax2.plot(v2, 'y') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment