From be8c66adc9da0d5c79743863ad9f3f5f2fc6d99e Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Sun, 20 Aug 2017 22:45:30 +0200 Subject: [PATCH] fix polar plots on pyplot --- src/backends/pyplot.jl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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)