seaborn function that operate on a single Axes can take one as an argument.
For instance, the docs to seaborn.kdeplot
include:
ax : matplotlib axis, optional
Axis to plot on, otherwise uses current axis
So if you did:
df = function_to_load_my_data()
fig, ax = plt.subplots()
You could then do:
seaborn.kdeplot(df['col1'], ax=ax)
seaborn.kdeplot(df['col2'], ax=ax)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…