英文:
How to arrange different plots in rows and column in python if we are making plots by using plotnine package?
问题
在Python中,我们可以使用PLOTNINE来实现相同的效果吗?
英文:
In R, we could plot each graph independently and then arrange all or some of the graphs easily by packages like gridExtra.
p1 <- ggplot(aes(x1,y1), data=df) + geom_point()
p2 <- ggplot(aes(x2,y2), data=df) + geom_point()
grid.arrange(p1, p2, ncol=1)
However, can we do the same thing in Python with PLOTNINE?
答案1
得分: 1
我遇到了相同的问题并找到了解决方法。它是patchworklib包。它允许您像在R中使用ggplot一样排列多个plotnine绘图。在GitHub上查看它:https://github.com/ponnhide/patchworklib
英文:
I had the same problem and found a solution. It is the patchworklib package. It allows you to arrange multiple plotnine plot, as you would do with ggplot in R. Give it a look on github: https://github.com/ponnhide/patchworklib
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论