def bar_graph(prec, months, years): prepare(prec, months, years, plt) plt.savefig("out.png")
def bar_graph(years): global PREC, MONTHS prepare(PREC, MONTHS, years, plt) plt.savefig("out.png")