Skip to content

Instantly share code, notes, and snippets.

@TimOliverMaier
Created November 14, 2022 20:07
Show Gist options
  • Save TimOliverMaier/aadeff5bca60f9e7b1270ffdfb5887a0 to your computer and use it in GitHub Desktop.
Save TimOliverMaier/aadeff5bca60f9e7b1270ffdfb5887a0 to your computer and use it in GitHub Desktop.
two_axis_matplotlib

Create second axis in matplotlib

Fig, ax = plt.subplots(1,1)
ax.plot(x,y1)
ax2 = ax.twinx()
ax2.plot(x,y2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment