Julia error using PyPlot - signal (11): segmentation error

Learning to use PyPlot with the Julia programming language (version 0.4.5), I encountered an error while trying to create a simple plot:

julia> using PyPlot julia> x = linspace(0,100,1000) linspace(0.0,100.0,1000) julia> y = x.^2; julia> plot(x,y) signal (11): Segmentation fault unknown function (ip: 0x32736) Segmentation fault (core dumped) 

Does anyone know what is going on here?

+6
source share
1 answer

I can not reproduce your error on startup on 0.4.6 . My thoughts would be as follows:

  • Update to the latest version.
  • Update all your packages
  • Close and restart julia
  • If none of them work, it is possible that the plot function does not like the mismatch of argument types. So you can apply collect(x) so that both x and y type Array .
+2
source

All Articles