Most seaborn plotting functions (e.g. seaborn.barplot
, seaborn.regplot
) return a matplotlib.pyplot.axes
when called, so that you can use this object to further customize the plot as you see fit.
However, I wanted to create an seaborn.lmplot
, which doesn't return the axes object. After digging through the documentation of both seaborn.lmplot
and seaborn.FacetGrid
(which lmplot
uses in it's backend), I found no way of accessing the underlying axes
objects. Moreover, while most other seaborn functions allow you to pass your own axes
as a parameter on which they will draw the plot on, lmplot
doesn't.
One thing I thought of is using plt.gca()
, but that only returns the last axes
object of the grid.
Is there any way of accessing the axes
objects in seaborn.lmplot
or seaborn.FacetGrid
?