Created
October 12, 2022 22:48
-
-
Save konverner/424f50252386797b14ab3b4227bebd48 to your computer and use it in GitHub Desktop.
subplots matplotlib example
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
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