make_lightcurve and plot_lightcurve