python 2.7 - PyPlot.pltm is not defined -


i on ubuntu 14.04 platform. have installed julia, anaconda etc.

when try plot on ijulia using pyplot, following error.

julia> pkg.add("pyplot") info: nothing done  julia> using pyplot  julia> x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x));  julia> pyplot.plot(x, y, color="red", linewidth=2.0, linestyle="--") error: pltm not defined  in plot @ /home/cgmei/.julia/v0.3/pyplot/src/pyplot.jl:368 

is pltm part of other package.

when want call external python packages in julia need call them in different way did. in example should is:

    pkg.add("pycall")     using pycall     @pyimport pylab     x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x));     pylab.plot(x,y, color="red", linewidth=2.0, linestyle="--")     pylab.show() 

if want use python library example clarify, assuming have added package pycall:

    using pycall     @pyimport numpy     x = numpy.linspace(0,2*pi,1000) 

and result of code show part (since won't show 1000 elements) of numpy array being used.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -