smpl.plot.gcf

smpl.plot.gcf()[source]

Get the current figure.

If there is currently no figure on the pyplot figure stack, a new one is created using ~.pyplot.figure(). (To test whether there is currently a figure on the pyplot figure stack, check whether ~.pyplot.get_fignums() is empty.)