Open carstenbauer opened 5 years ago
Yes, the issue is that since ErrorbarContainer
is a subtype of tuple, PyCall is too aggressive about converting it to a Julia tuple. Yet another thing that will be eventually fixed by JuliaPy/PyCall.jl#617
For now, you can suppress the conversion with:
h,l = pycall(gca().get_legend_handles_labels, Tuple{Vector{PyObject}, Vector{String}})
Related to https://github.com/JuliaPy/PyPlot.jl/issues/401.
I'm simply trying to reverse the order of the legend entries of two errorbar plots.
Pure python (from within Julia):
Using PyPlot:
Note that the handles are wrong (should be markers with error bars).
PyPlot + ugly fix:
Presumably a PyObject conversion issue? In python,
h
is a containerIn Julia I find