Add support for polar axis

This commit is contained in:
Sebastian Pech 2017-02-02 16:43:30 +01:00
parent 48ff2fb8b8
commit dd505fedcc

View File

@ -307,7 +307,11 @@ function _update_plot_object(plt::Plot{PGFPlotsBackend})
kw[:legendPos] = _pgfplots_legend_pos[legpos]
end
o = PGFPlots.Axis(; style = style, kw...)
axisf = PGFPlots.Axis
if sp[:projection] == :polar
axisf = PGFPlots.PolarAxis
end
o = axisf(; style = style, kw...)
# add the series object to the PGFPlots.Axis
for series in series_list(sp)