fix PyPlot spines iteration

This commit is contained in:
Ronan Pigott 2021-03-27 13:28:00 -07:00
parent 71fd38fe26
commit bea1378ff1

View File

@ -840,8 +840,8 @@ function py_set_scale(ax, sp::Subplot, axis::Axis)
end end
function py_set_axis_colors(sp, ax, a::Axis) function py_set_axis_colors(sp, ax, a::Axis)
for (loc, spine) in ax.spines for loc in ax.spines
spine."set_color"(py_color(a[:foreground_color_border])) ax.spines[loc]."set_color"(py_color(a[:foreground_color_border]))
end end
axissym = Symbol(a[:letter], :axis) axissym = Symbol(a[:letter], :axis)
if PyPlot.PyCall.hasproperty(ax, axissym) if PyPlot.PyCall.hasproperty(ax, axissym)