def write_plots(): """Write monthly graphs as *.png plots with markdown showcase file and as a PDF file.""" print("Reading stored data...") df = get_dfm() # png images print("Writing .png images...") write_png_pictures(df) # md file print("Writing markdown (.md) showcase file with images...") generate_md(df) # PDF output print("Writing PDF file...") write_monthly_pdf() print("Done.")
def write_monthly_png(): df = get_dfm() write_png_pictures(df) generate_md(df)
def write_monthly_pdf(): df = get_dfm() save_plots_as_pdf(df, PDF_FILE)