I've recently be working on an interactive visualisation tool and several seaborn fn's generate the mpl figure internally. When doing interactive plots with ipython you ideally have a single figure and redraw it, which is incompatible with a lot of seaborn's plotting fn's that contain subplots (e.g. FacetGrid).
Not sure if this use-case is overly niche or if there's a reason I've overlooked for not faciliating this functionality, but if that isn't the case a solution may be to allow a figure to be passed as an argument (shown below).
I've recently be working on an interactive visualisation tool and several seaborn fn's generate the mpl figure internally. When doing interactive plots with ipython you ideally have a single figure and redraw it, which is incompatible with a lot of seaborn's plotting fn's that contain subplots (e.g. FacetGrid).
Not sure if this use-case is overly niche or if there's a reason I've overlooked for not faciliating this functionality, but if that isn't the case a solution may be to allow a figure to be passed as an argument (shown below).