Make it work in practice
This commit is contained in:
parent
3160795f21
commit
6d9f224c74
@ -38,7 +38,7 @@ const _axesAliases = Dict{Symbol,Symbol}(
|
||||
)
|
||||
|
||||
const _3dTypes = [
|
||||
:path3d, :scatter3d, :surface, :wireframe, :contour3d, :volume
|
||||
:path3d, :scatter3d, :surface, :wireframe, :contour3d, :volume, :mesh3d
|
||||
]
|
||||
const _allTypes = vcat([
|
||||
:none, :line, :path, :steppre, :steppost, :sticks, :scatter,
|
||||
|
||||
@ -328,12 +328,16 @@ end
|
||||
|
||||
function _override_seriestype_check(plotattributes::AKW, st::Symbol)
|
||||
# do we want to override the series type?
|
||||
println(RecipesPipeline.is3d(st))
|
||||
println(st)
|
||||
if !RecipesPipeline.is3d(st) && !(st in (:contour, :contour3d))
|
||||
z = plotattributes[:z]
|
||||
if !isa(z, Nothing) &&
|
||||
(size(plotattributes[:x]) == size(plotattributes[:y]) == size(z))
|
||||
(size(plotattributes[:x]) == size(plotattributes[:y]) == size(z)) &&
|
||||
st !== :mesh3d
|
||||
st = (st == :scatter ? :scatter3d : :path3d)
|
||||
plotattributes[:seriestype] = st
|
||||
println("hello hello hello")
|
||||
plotattributes[:seriestype] = st
|
||||
end
|
||||
end
|
||||
st
|
||||
|
||||
@ -1536,3 +1536,10 @@ julia> areaplot(1:3, [1 2 3; 7 8 9; 4 5 6], seriescolor = [:red :green :blue], f
|
||||
end
|
||||
|
||||
is_3d(::Type{Val{:mesh3d}}) = true
|
||||
# ---------------------------------------------------------------------------
|
||||
# mesh 3d
|
||||
|
||||
@recipe function f(::Type{Val{:mesh3d}}, x, y, z)
|
||||
seriestype := :mesh3d
|
||||
()
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user