2015-10-06 56 views
1

我对使用pyplot的juno上的绘图数据有疑问。无法在Juno中显示PyPlot

using PyCall 
using PyPlot 
x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x)) 
plot(x, y, color="red", linewidth=2.0, linestyle="--") 

在Juno做了“eval all”之后,什么也没有发生。

有没有解决这个问题的解决方案? 谢谢

+1

[此主题](http://discuss.junolab.org/t/pyplot-inline-results/145/13)可能会有所帮助。 –

回答

1

plot将只返回一个PyObjects的向量。 要在Juno中以交互方式显示图形,请使用gcf()(获取当前图)。来自Juno板的