From 91aef718911dcfb2cb58f1b6523b7275d3b83167 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 19 Nov 2019 17:46:05 +0100 Subject: [PATCH] broken polar --- src/backends/pgfplotsx.jl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 933afbfa..46c90cbc 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -524,7 +524,15 @@ function _update_plot_object(plt::Plot{PGFPlotsXBackend}) "title" => sp[:colorbar_title] ) ) - axis = PGFPlotsX.Axis( + axisf = if sp[:projection] == :polar + # TODO: this errors for some reason + # push!(axis_opt, "xmin" => 90) + # push!(axis_opt, "xmax" => 450) + PGFPlotsX.PolarAxis + else + PGFPlotsX.Axis + end + axis = axisf( axis_opt ) for series in series_list(sp)