I'm trying to use pandas to plot to as specific figure, but it seems to want to make it's own figures and not use / resets pyplot's current figure.
How can I make pandas plot to the current (or better yet, and explicitly given) figure?
from matplotlib import pyplot
import pandas
df = pandas.DataFrame({'a': list(range(1000))})
fig1 = pyplot.figure(figsize=(5, 10))
assert pyplot.gcf() is fig1 # succeeds
df.plot() # does not draw to fig1
assert pyplot.gcf() is fig1 # fails