diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index ea143e1e..5e4d4c82 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -1091,9 +1091,15 @@ function _before_layout_calcs(plt::Plot{PyPlotBackend}) ax[set_facecolor_sym](py_color(sp[:background_color_inside])) if !sp[:draw_axes_border] - # hide the right and top spines - ax[:spines]["right"][:set_visible](false) - ax[:spines]["top"][:set_visible](false) + if ispolar(sp) + for (loc, spine) in ax[:spines] + 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 py_drawfig(fig)