Created
May 11, 2022 20:48
-
-
Save Zmey56/5f18c068a045cf23c43d4f230a9cd9ad to your computer and use it in GitHub Desktop.
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(5, 2, figsize=(15,15)) | |
axs[0, 0].plot(data.index, data['BTC-USD'], 'tab:blue' ) | |
axs[0, 0].set_title('BTC') | |
axs[0, 1].plot(data.index, data['ETH-USD'], 'tab:orange') | |
axs[0, 1].set_title('ETH') | |
axs[1, 0].plot(data.index, data['USDT-USD'], 'tab:green') | |
axs[1, 0].set_title('USDT') | |
axs[1, 1].plot(data.index, data['XRP-USD'], 'tab:red') | |
axs[1, 1].set_title('XRP') | |
axs[2, 0].plot(data.index, data['LTC-USD'], 'tab:grey') | |
axs[2, 0].set_title('LTC') | |
axs[2, 1].plot(data.index, data['BCH-USD'], 'tab:purple') | |
axs[2, 1].set_title('BCH') | |
axs[3, 0].plot(data.index, data['ADA-USD'], 'tab:purple') | |
axs[3, 0].set_title('ADA') | |
axs[3, 1].plot(data.index, data['BNB-USD'], 'tab:purple') | |
axs[3, 1].set_title('BNB') | |
axs[4, 0].plot(data.index, data['LINK-USD'], 'tab:purple') | |
axs[4, 0].set_title('LINK') | |
fig.delaxes(axs[4,1]) | |
for ax in axs.flat: | |
ax.set(xlabel='Data', ylabel='Price') | |
for ax in axs.flat: | |
ax.label_outer() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment