diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 81cabf23..e2c08795 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -115,6 +115,10 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend}) "point meta min" => get_clims(sp)[1] ) ) + if is3d(sp) + azim, elev = sp[:camera] + push!( axis_opt, "view" => (azim, elev) ) + end axisf = if sp[:projection] == :polar # TODO: this errors for some reason # push!(axis_opt, "xmin" => 90) diff --git a/test/test_pgfplotsx.jl b/test/test_pgfplotsx.jl index aa21ef71..125ee529 100644 --- a/test/test_pgfplotsx.jl +++ b/test/test_pgfplotsx.jl @@ -86,8 +86,6 @@ end @test Plots.pgfx_axes(pgfx_plot.o)[1]["colorbar"] === nothing @test Plots.pgfx_axes(pgfx_plot.o)[1]["colormap name"] == "plots1" end - # TODO: wrong colors - # TODO: lines instead of patches end # testset @testset "Contours" begin x = 1:0.5:20