Multiple graphs on the same plot in seaborn

前端 未结 1 1283
眼角桃花
眼角桃花 2021-02-09 04:41

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 sim

1条回答
  •  误落风尘
    2021-02-09 04:54

    As mentioned in the comments, this answer explains the basic architecture that accounts for why you see that behavior (two different figures), but it's possible to give a more specific answer to your question:

    The tutorial explains that factorplot is mostly a convenience function that combines FacetGrid with a number of Axes-level functions for drawing categorical plots that share an API. Since you aren't using the faceting options of factorplot, all you need to do is replace sns.factorplot(..., kind="bar") with sns.barplot(...) and sns.factorplot(..., kind="point") with sns.pointplot(...).

    0 讨论(0)
提交回复
热议问题