3D view
This commit is contained in:
parent
a03ae0be10
commit
d6bd10a937
@ -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)
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user