Solutions

Make a plot of period and mag_1

In [4]:
fig = plt.figure(figsize=(10,6))
ax = fig.add_subplot(1,1,1)
ax.plot(lmc_df['period'], lmc_df['mag_1'], color='k', marker='o', linestyle='None', label='LMC Cepheids')
ax.set_xlabel('Period (days)')
ax.set_ylabel('Mag 1 (magnitudes)')
ax.legend()
#plt.savefig('./images/lmc_plot_1.png', dpi=300)
Out[4]:
<matplotlib.legend.Legend at 0x7f8268fc9be0>