我看过有关Navigator.push()
的帖子:
How to automatically adjust the width of each facet for facet_wrap?
我想知道:
如何在 plotnine 中获得相同的效果?我没有发现任何与Navigator.pushReplacement()
类似的东西。对于作为python3管道一部分的绘图,我将需要它,所以我真的不想将部分代码转换为R。
感谢您的帮助!
我看过有关Navigator.push()
的帖子:
How to automatically adjust the width of each facet for facet_wrap?
我想知道:
如何在 plotnine 中获得相同的效果?我没有发现任何与Navigator.pushReplacement()
类似的东西。对于作为python3管道一部分的绘图,我将需要它,所以我真的不想将部分代码转换为R。
感谢您的帮助!
我检查了您链接的帖子和proposed a far simpler solution,该帖子将使用facet_grid
而不是facet_wrap
。使用facet_grid
时,可以指定space='free'
自动调整构面的大小,而不是仅使用scales=
调整比例的大小。 facet_wrap
似乎没有一个选项可以指定space=
(仅scales=
)。
我没有使用积木素的直接经验,但是a quick check here表明存在一个类似的函数,其中同时包含space=
和scales=
参数。