Skip to content

Instantly share code, notes, and snippets.

@erikaris
Created November 12, 2017 13:05
Show Gist options
  • Save erikaris/36bb1066e0ba235820221f9035ecca06 to your computer and use it in GitHub Desktop.
Save erikaris/36bb1066e0ba235820221f9035ecca06 to your computer and use it in GitHub Desktop.
# modified from Coursera
# figure 2: Creates two subplots and unpacks the output array immediately
f, ax = plt.subplots(2, 2, sharey=True)
ax[0,0].plot(x, y)
ax[0,0].set_title('Sharing Y axis')
ax[1,1].scatter(x, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment