Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] plots not opening on MacOS #2758

Closed
AshtonSBradley opened this issue Jun 5, 2020 · 1 comment
Closed

[BUG] plots not opening on MacOS #2758

AshtonSBradley opened this issue Jun 5, 2020 · 1 comment
Labels

Comments

@AshtonSBradley
Copy link

AshtonSBradley commented Jun 5, 2020

Details

Issue appears in Juno.
Getting warnings and then plots don't appear. Different warnings/errors in gr/pyplot/pgfplotsx.

GR
GKS: Rectangle definition is invalid in routine SET_WS_VIEWPORT
GKS: Workstation window is not within the NDC unit square in routine SET_WS_WINDOW

PyPlot
PyError ($(Expr(:escape, :(ccall(#= /Users/abradley/.julia/packages/PyCall/zqDXB/src/pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'ValueError'>
ValueError('Image size of -3x-2 pixels is too large. It must be less than 2^16 in each direction.')
File "/Users/abradley/.julia/conda/3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 399, in get_renderer
self.renderer = RendererAgg(w, h, self.figure.dpi)
File "/Users/abradley/.julia/conda/3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 86, in init
self._renderer = _RendererAgg(int(width), int(height), dpi)
pyerr_check at exception.jl:60 [inlined]
pyerr_check at exception.jl:64 [inlined]
_handle_error(::String) at exception.jl:81
macro expansion at exception.jl:95 [inlined]
#110 at pyfncall.jl:43 [inlined]
disable_sigint at c.jl:446 [inlined]
__pycall! at pyfncall.jl:42 [inlined]
_pycall!(::PyCall.PyObject, ::PyCall.PyObject, ::Tuple{}, ::Int64, ::Ptr{Nothing}) at pyfncall.jl:29
pycall! at pyfncall.jl:11 [inlined]
#
#117 at pyfncall.jl:86 [inlined]
PyObject at pyfncall.jl:86 [inlined]
py_renderer(::PyPlot.Figure) at pyplot.jl:235
py_drawfig(::PyPlot.Figure) at pyplot.jl:238
_before_layout_calcs(::Plots.Plot{Plots.PyPlotBackend}) at pyplot.jl:1210
prepare_output(::Plots.Plot{Plots.PyPlotBackend}) at plot.jl:177
showjuno(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/svg+xml")}, ::Plots.Plot{Plots.PyPlotBackend}) at output.jl:264
show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("image/svg+xml")}, ::Plots.Plot{Plots.PyPlotBackend}) at output.jl:212
show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::String, ::Plots.Plot{Plots.PyPlotBackend}) at multimedia.jl:109
displayinplotpane(::Plots.Plot{Plots.PyPlotBackend}) at showdisplay.jl:67
displayandrender(::Plots.Plot{Plots.PyPlotBackend}) at showdisplay.jl:131
(::Atom.var"#208#213"{String})() at eval.jl:136
#invokelatest#1 at essentials.jl:712 [inlined]
invokelatest at essentials.jl:711 [inlined]
macro expansion at dynamic.jl:24 [inlined]
eval(::String, ::Int64, ::String, ::String, ::Bool) at eval.jl:113
invokelatest(::Any, ::Any, ::Vararg{Any,N} where N; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at essentials.jl:712
invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at essentials.jl:711
macro expansion at eval.jl:41 [inlined]
(::Atom.var"#188#189")() at task.jl:358

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotly x
plotlyjs x
pgfplotsx x
inspectdr x

Versions

Plots.jl version:
Backend version (]st -m):
[28b8d3ca] GR v0.50.1
[d330b81b] PyPlot v2.9.0
[8314cec4] PGFPlotsX v1.2.6

Output of versioninfo():
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
JULIA_EDITOR = atom -a

@AshtonSBradley AshtonSBradley changed the title [BUG] [BUG] plots not opening on MacOS Jun 5, 2020
@AshtonSBradley
Copy link
Author

reboot fixed this. closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant