Prevent Sharing of Y Axes in Seaborn Relplot?

你。 提交于 2020-06-26 04:43:09

问题


I'm having trouble getting seaborn's relplot function to plot with different y axes on each row (while sharing x axes per column).

I can see that both the FacetGrid and catplot methods in seaborn have a sharex/sharey keyword argument that would solve my problem, but I can't find a similar one in relplot.

Is there some way I can work around this if it's intended by accessing the subplots returned by relplot individually? I would like to continue using relplot as it handles figure sizing perfectly while FacetGrid has a lot of issues in that area. Thanks.


回答1:


This can be done by passing a dictionary with FacetGrid keyword arguments to relplot, like this: facet_kws={'sharey': False, 'sharex': True}



来源:https://stackoverflow.com/questions/56363662/prevent-sharing-of-y-axes-in-seaborn-relplot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!