“朱莉娅”中的小插画
大家好,我想在Julia中为两个不同的函数/数组创建子图网格。
例如: 1. Gadfly.plot(x=rand(20),y=rand(20))
Gadfly.plot(x=rand(10),y=rand(10))下面的链接展示了基于DataFrame的使用Geom.subplot_grid的子图网格的示例。但是我找不到函数/数组的例子。grid.html
有人能帮我吗?提前感谢
发布于 2019-01-13 17:39:47
您可以使用Stacks来实现您想要的结果。
p1 = Gadfly.plot(x=rand(20),y=rand(20))
p2 = Gadfly.plot(x=rand(10),y=rand(10))
stack = hstack(p1, p2) # will arrange the plots horizontally
title(stack, "Horizontally Stacked Plots") # let's give a title您可以将hstack和vstack组合起来,创建任意的情节排列。还请看一下gridstack,它有时会使事情变得更简单。请参考手册中的堆栈部分了解有关Stacks的更多信息。
https://stackoverflow.com/questions/54162913
复制相似问题