This commit is contained in:
Simon Christ 2019-11-21 22:28:36 +01:00
parent a03ae0be10
commit d6bd10a937
2 changed files with 4 additions and 2 deletions

View File

@ -115,6 +115,10 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
"point meta min" => get_clims(sp)[1] "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 axisf = if sp[:projection] == :polar
# TODO: this errors for some reason # TODO: this errors for some reason
# push!(axis_opt, "xmin" => 90) # push!(axis_opt, "xmin" => 90)

View File

@ -86,8 +86,6 @@ end
@test Plots.pgfx_axes(pgfx_plot.o)[1]["colorbar"] === nothing @test Plots.pgfx_axes(pgfx_plot.o)[1]["colorbar"] === nothing
@test Plots.pgfx_axes(pgfx_plot.o)[1]["colormap name"] == "plots1" @test Plots.pgfx_axes(pgfx_plot.o)[1]["colormap name"] == "plots1"
end end
# TODO: wrong colors
# TODO: lines instead of patches
end # testset end # testset
@testset "Contours" begin @testset "Contours" begin
x = 1:0.5:20 x = 1:0.5:20