PyPlot plots will not show in non-interactive mode.

98 views
Skip to first unread message

Matt Anderson

unread,
Jun 28, 2016, 12:47:03 PM6/28/16
to julia-users
I've managed to mess up the PyPlot package and cannot manage to get it straightened out. I am trying to plot from a script, but now get:

ERROR: MethodError: 'show' has no method matching show()

I installed a new python environment using Anaconda and attempted to switch Julia to use the new environment. Having failed mightily at this, I set about undoing what I did to Julia by completely removing it from my system and reinstalling it.

Now ding the following in the terminal results as shown.

julia> using PyPlot


julia> ioff() 


julia> figure()

2016-06-28 12:38:34.037 julia[48418:507] setCanCycle: is deprecated.  Please use setCollectionBehavior instead

PyPlot.Figure(PyObject <matplotlib.figure.Figure object at 0x3125c4290>)


julia> plot(rand(5),rand(5))

1-element Array{Any,1}:

 PyObject <matplotlib.lines.Line2D object at 0x30fb662d0>


julia> show()

ERROR: MethodError: `show` has no method matching show()


If I do the same without using ioff() and show(), the plot comes up fine. Unfortunately for me, I need to be able to use the show() in my scripts. Any suggestions for fixing would be great! Also has the setCanCycle warning found a solution yet?


My version info is below.

Thanks!



Julia Version 0.4.6

Commit 2e358ce (2016-06-19 17:16 UTC)

Platform Info:

  System: Darwin (x86_64-apple-darwin13.4.0)

  CPU: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz

  WORD_SIZE: 64

  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)

  LAPACK: libopenblas64_

  LIBM: libopenlibm

  LLVM: libLLVM-3.3

Reply all
Reply to author
Forward
0 new messages