- Notifications
You must be signed in to change notification settings - Fork 78
Closed
JuliaPy/PythonPlot.jl
#10Description
MWE
import Pkg Pkg.activate(@__DIR__) Pkg.add("CondaPkg") Pkg.add("PythonCall") using CondaPkg CondaPkg.add("python") CondaPkg.add("matplotlib") using PythonCall plt = pyimport("matplotlib.pyplot") plt.plot([1, 2, 3, 4], [1, 4, 2, 3]) results in
ERROR: Python: TypeError: expecting 1 indices, got 2 Python stacktrace: [1] __getitem__ @ /Users/xxx/.julia/packages/PythonCall/XgP8G/src/jlwrap/array.jl:293:16 [2] _plot_args @ matplotlib.axes._base ~/julia/Examples/PythonCall/.CondaPkg/env/lib/python3.10/site-packages/matplotlib/axes/_base.py:504 [3] __call__ @ matplotlib.axes._base ~/julia/Examples/PythonCall/.CondaPkg/env/lib/python3.10/site-packages/matplotlib/axes/_base.py:312 [4] plot @ matplotlib.axes._axes ~/julia/Examples/PythonCall/.CondaPkg/env/lib/python3.10/site-packages/matplotlib/axes/_axes.py:1632 [5] plot @ matplotlib.pyplot ~/julia/Examples/PythonCall/.CondaPkg/env/lib/python3.10/site-packages/matplotlib/pyplot.py:2769 Stacktrace: [1] pythrow() @ PythonCall ~/.julia/packages/PythonCall/XgP8G/src/err.jl:94 ... with
julia> versioninfo() Julia Version 1.7.1 Commit ac5cc99908 (2021-12-22 19:35 UTC) Platform Info: OS: macOS (x86_64-apple-darwin19.5.0) Metadata
Metadata
Assignees
Labels
No labels