- Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
What is the alternative to
using PyPlot subplots(subplot_kw=Dict(:aspect=>:equal))in Pythonplot ?
I tried all sort of Dicts or NamedTuples with Strings or Symbols, but it always error out.
ERROR: Python: TypeError: Cannot convert argument 'value' to a Julia 'String', got a 'NoneType' Python stacktrace: [1] __setitem__ @ ~/.julia/packages/PythonCall/3GRYN/src/jlwrap/dict.jl:51 [2] subplots @ matplotlib.gridspec [...]/lib/python3.11/site-packages/matplotlib/gridspec.py:306 [3] subplots @ matplotlib.figure [...]/lib/python3.11/site-packages/matplotlib/figure.py:894 [4] subplots @ matplotlib.pyplot [...]/lib/python3.11/site-packages/matplotlib/pyplot.py:1443 Stacktrace: [1] pythrow() @ PythonCall ~/.julia/packages/PythonCall/3GRYN/src/err.jl:94 [2] errcheck @ ~/.julia/packages/PythonCall/3GRYN/src/err.jl:10 [inlined] [3] pycallargs(f::PythonCall.Py, args::PythonCall.Py, kwargs::PythonCall.Py) @ PythonCall ~/.julia/packages/PythonCall/3GRYN/src/abstract/object.jl:211 [4] pycall(::PythonCall.Py; kwargs::Base.Pairs{Symbol, Dict{String, String}, Tuple{Symbol}, NamedTuple{(:subplot_kw,), Tuple{Dict{String, String}}}}) @ PythonCall ~/.julia/packages/PythonCall/3GRYN/src/abstract/object.jl:222 [5] #subplots#125 @ ~/.julia/packages/PythonPlot/3KL1U/src/PythonPlot.jl:181 [inlined] [6] top-level scope @ REPL[12]:1Metadata
Metadata
Assignees
Labels
No labels