I'm trying to plot a bar style "factorplot" for some data, then plot a regular point style "factorplot" for my fit of that data on top of it. So for the data plot I can simply do :
sns.factorplot(x='x',y='yData',data=dataFrame,kind='bar')
And for the model plot I can simply do :
sns.factorplot(x='x',y='yModel',data=dataFrame,kind='point')
The problem is that if I then do :
sns.plt.show()
I get 2 separate figures instead of just one. Is there any simple way to tell seaborn to just plot them on the same graph ?
g = sns.factorplot(x='x',y='yData',data=dataFrame,kind='bar')
, theng
will be aFacetGrid
, maybe you can use these axes (g.ax
) for the next factorplot ? – mgc