PyPlot.jl icon indicating copy to clipboard operation
PyPlot.jl copied to clipboard

error using PyPlot in windows 10 x64

Open leaoshark opened this issue 8 years ago • 1 comments
trafficstars

when i try to plot something using PyPlot

using PyPlot t=0.1:0.1:2pi s=sin(t) plot(t,s)

1-element Array{PyCall.PyObject,1}: PyObject <matplotlib.lines.Line2D object at 0x0000000029DAC4E0>

how can i solve this ?

leaoshark avatar Oct 22 '17 19:10 leaoshark

Your code works for me. You could try adding a line: savefig("testfig.png") which should save the current figure in the current working directory, you can then view it with an image processing programme or browser. If that works and you get a picture then read https://stackoverflow.com/questions/14558843/why-matplotlib-does-not-plot

colbec avatar Oct 23 '17 09:10 colbec