Skip to content

Instantly share code, notes, and snippets.

@konverner
Created October 12, 2022 22:48
Show Gist options
  • Save konverner/424f50252386797b14ab3b4227bebd48 to your computer and use it in GitHub Desktop.
Save konverner/424f50252386797b14ab3b4227bebd48 to your computer and use it in GitHub Desktop.
subplots matplotlib example
fig, axs = plt.subplots(1, 2)
fig.set_figheight(4)
fig.set_figwidth(13)
axs[0].scatter(X1, Y1)
axs[1].scatter(X2, Y2)
axs[0].set_title("North")
axs[0].set_ylabel('mortality')
axs[0].set_xlabel('hardness')
axs[1].set_title("South")
axs[1].set_xlabel('hardness')
axs[1].set_ylabel('mortality')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment