plots 2 charts next to each other

PHOTO EMBED

Thu Oct 14 2021 08:22:31 GMT+0000 (Coordinated Universal Time)

Saved by @CaoimhedeFrein #python

fig, (ax1, ax2) = plt.subplots(1, 2, figsize= (30,8))
ax1.plot(df_cuba.wk_year, df_cuba.GP_per_sender,'-b*')
ax1.plot(df_cuba.wk_year, df_cuba.avg_value, '--g')
ax1.plot(df_cuba.wk_year, df_cuba.std_value2p,'-r')
ax1.plot(df_cuba.wk_year, df_cuba.std_value2m,'-r')
ax1.set_title('Cuba')
ax2.plot(df_row.wk_year, df_row.GP_per_sender,'-b*')
ax2.plot(df_row.wk_year, df_row.avg_value, '--g')
ax2.plot(df_row.wk_year, df_row.std_value2p,'-r')
ax2.plot(df_row.wk_year, df_row.std_value2m,'-r')
ax2.set_title('ROW')
content_copyCOPY