def METHOD_NAME(
    filename, plot_type, savefig=True, savename="JD_history.png", dpi=800
):
    plotter = JDHistoryPlotter(filename)
    plotter.read_file()
    plotter.plot(plot_type=plot_type, savefig=savefig, savename=savename, dpi=dpi)
    return