Fix hiding of axis on PyPlot
This commit is contained in:
parent
71cbaa843c
commit
fd611b3647
@ -1132,11 +1132,12 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend})
|
|||||||
# showaxis
|
# showaxis
|
||||||
if !sp[:xaxis][:showaxis]
|
if !sp[:xaxis][:showaxis]
|
||||||
kw = KW()
|
kw = KW()
|
||||||
for dir in (:top, :bottom)
|
|
||||||
if ispolar(sp)
|
if ispolar(sp)
|
||||||
ax."spines"."polar"."set_visible"(false)
|
ax.spines["polar"].set_visible(false)
|
||||||
else
|
end
|
||||||
getproperty(ax.spines, dir).set_visible(false)
|
for dir in (:top, :bottom)
|
||||||
|
if !ispolar(sp)
|
||||||
|
ax.spines[string(dir)].set_visible(false)
|
||||||
end
|
end
|
||||||
kw[dir] = kw[Symbol(:label,dir)] = false
|
kw[dir] = kw[Symbol(:label,dir)] = false
|
||||||
end
|
end
|
||||||
@ -1146,7 +1147,7 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend})
|
|||||||
kw = KW()
|
kw = KW()
|
||||||
for dir in (:left, :right)
|
for dir in (:left, :right)
|
||||||
if !ispolar(sp)
|
if !ispolar(sp)
|
||||||
getproperty(ax.spines, dir).set_visible(false)
|
ax.spines[string(dir)].set_visible(false)
|
||||||
end
|
end
|
||||||
kw[dir] = kw[Symbol(:label,dir)] = false
|
kw[dir] = kw[Symbol(:label,dir)] = false
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user