我正在尝试使用间谍()。但我没有正确使用它。我认为我的错误与此有关:https ://github.com/JuliaLang/julia/issues/2121
我有一个 300x300 数组{Float64,2}
using PyPlot
pygui(true)
spy(I) # where I is my 300x300 array
它给了我这个错误:
LoadError: PyError (:PyObject_Call) <type 'exceptions.TypeError'>
TypeError("object of type 'PyCall.jlwrap' has no len()",)
File "/home/ashley/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/pyplot.py", line 3154, in plot
ret = ax.plot(*args, **kwargs)
File "/home/ashley/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/mpl_toolkits/mplot3d/axes3d.py", line 1539, in plot
zs = np.ones(len(xs)) * zs
我试过指定spy(I, zs=zeros(size(I))
,但后来我得到了错误:
LoadError: ArgumentError: function spy does not accept keyword arguments
while loading In[260], in expression starting on line 13
有任何想法吗?