fix polar plots on pyplot
This commit is contained in:
parent
be4a374122
commit
be8c66adc9
@ -1091,9 +1091,15 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend})
|
|||||||
ax[set_facecolor_sym](py_color(sp[:background_color_inside]))
|
ax[set_facecolor_sym](py_color(sp[:background_color_inside]))
|
||||||
|
|
||||||
if !sp[:draw_axes_border]
|
if !sp[:draw_axes_border]
|
||||||
# hide the right and top spines
|
if ispolar(sp)
|
||||||
ax[:spines]["right"][:set_visible](false)
|
for (loc, spine) in ax[:spines]
|
||||||
ax[:spines]["top"][:set_visible](false)
|
spine[:set_visible](false)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
# hide the right and top spines
|
||||||
|
ax[:spines]["right"][:set_visible](false)
|
||||||
|
ax[:spines]["top"][:set_visible](false)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
py_drawfig(fig)
|
py_drawfig(fig)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user