Skip to content

Instantly share code, notes, and snippets.

@cutebomb
Last active July 20, 2022 08:05
Show Gist options
  • Save cutebomb/42d3485198bb9b8dd241427e11d8153f to your computer and use it in GitHub Desktop.
Save cutebomb/42d3485198bb9b8dd241427e11d8153f to your computer and use it in GitHub Desktop.
matplotlib ax2
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