2015-10-06 28 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板的