diff --git a/src/args.jl b/src/args.jl index e69dcf97..4627d400 100644 --- a/src/args.jl +++ b/src/args.jl @@ -192,6 +192,7 @@ _plotDefaults[:legendfont] = font(8) _plotDefaults[:grid] = true _plotDefaults[:annotation] = nothing # annotation tuple(s)... (x,y,annotation) _plotDefaults[:overwrite_figure] = false +_plotDefaults[:polar] = false # TODO: x/y scales diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index d13cd511..5c389462 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -210,8 +210,10 @@ function getPyPlotFunction(plt::Plot, axis::Symbol, linetype::Symbol) end function updateAxisColors(ax, fgcolor) - for loc in ("bottom", "top", "left", "right") - ax[:spines][loc][:set_color](fgcolor) + # for loc in ("bottom", "top", "left", "right") + for (loc, spine) in ax[:spines] + # ax[:spines][loc][:set_color](fgcolor) + spine[:set_color](fgcolor) end for axis in ("x", "y") ax[:tick_params](axis=axis, colors=fgcolor, which="both") @@ -309,6 +311,10 @@ function _create_plot(pkg::PyPlotBackend; kw...) # push!(wrap.kwargs, (:projection, "3d")) # end pyplot_3d_setup!(wrap, d) + + if get(d, :polar, false) + push!(wrap.kwargs, (:polar, true)) + end end plt = Plot(wrap, pkg, 0, d, KW[]) diff --git a/src/backends/supported.jl b/src/backends/supported.jl index e117b58a..51aeb5ca 100644 --- a/src/backends/supported.jl +++ b/src/backends/supported.jl @@ -174,6 +174,7 @@ supportedArgs(::PyPlotBackend) = [ :ribbon, :quiver, :orientation, + :polar, ] supportedAxes(::PyPlotBackend) = _allAxes supportedTypes(::PyPlotBackend) = [:none, :line, :path, :steppre, :steppost, :shape,