I\'m using pandas to generate a plot from a dataframe, which I would like to save to a file:
dtf = pd.DataFrame.from_records(d,columns=h) fig = plt.figure()
The gcf method is depricated in V 0.14, The below code works for me:
plot = dtf.plot() fig = plot.get_figure() fig.savefig("output.png")