How can I combine two 2 seaborn FacetGrid plots into the same plot side by side?
I can combine plots with ease if the plots are not already sublpots per this question. But how can I get the 2 trellised plots next to each other something like the image below for plots g1
and g2
in the MWE. In the R program I can do this with ggplot2 plots using tools like patchwork.
import seaborn as sns
from matplotlib import pyplot as plt
tips = sns.load_dataset("tips")
g1 = sns.FacetGrid(tips, col="time", row="sex")
g1.map(sns.scatterplot, "total_bill", "tip")
plt.show()
g2 = sns.FacetGrid(tips, col="size", height=2.5, col_wrap=3)
g2.map(sns.histplot, "total_bill")
plt.show()