I am using the following code
import seaborn as sns g = sns.FacetGrid(dataframe, col='A', hue='A') g.map(plt.plot, 'X', 'Y1') plt.show()
make the plot of the sea plot as follows: 
Now I would like to add another line to this graph with another variable, name it Y2 on the y axis. The result should look similar to the vertical stacking of two graphs obtained using
g = sns.FacetGrid(dataframe, col='A', hue='A') g.map(plt.plot, 'X', 'Y1') plt.show() g = sns.FacetGrid(dataframe, col='A', hue='A') g.map(plt.plot, 'X', 'Y2') plt.show()

but in one graph without a duplicated x axis and headers ("A = <value>") and without creating a new FacetGrid object.
note that
g = sns.FacetGrid(dataframe, col='A', hue='A') g.map(plt.plot, 'X', 'Y1') g.map(plt.plot, 'X', 'Y2') plt.show()
does not achieve this, because it leads to the fact that the curve for Y1 and Y2 is displayed in the same subtask for each value of A.
python matplotlib pandas plot seaborn
arccos
source share