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 = [
|
const _3dTypes = [
|
||||||
:path3d, :scatter3d, :surface, :wireframe, :contour3d, :volume
|
:path3d, :scatter3d, :surface, :wireframe, :contour3d, :volume, :mesh3d
|
||||||
]
|
]
|
||||||
const _allTypes = vcat([
|
const _allTypes = vcat([
|
||||||
:none, :line, :path, :steppre, :steppost, :sticks, :scatter,
|
:none, :line, :path, :steppre, :steppost, :sticks, :scatter,
|
||||||
|
|||||||
@ -328,11 +328,15 @@ end
|
|||||||
|
|
||||||
function _override_seriestype_check(plotattributes::AKW, st::Symbol)
|
function _override_seriestype_check(plotattributes::AKW, st::Symbol)
|
||||||
# do we want to override the series type?
|
# do we want to override the series type?
|
||||||
|
println(RecipesPipeline.is3d(st))
|
||||||
|
println(st)
|
||||||
if !RecipesPipeline.is3d(st) && !(st in (:contour, :contour3d))
|
if !RecipesPipeline.is3d(st) && !(st in (:contour, :contour3d))
|
||||||
z = plotattributes[:z]
|
z = plotattributes[:z]
|
||||||
if !isa(z, Nothing) &&
|
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)
|
st = (st == :scatter ? :scatter3d : :path3d)
|
||||||
|
println("hello hello hello")
|
||||||
plotattributes[:seriestype] = st
|
plotattributes[:seriestype] = st
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1536,3 +1536,10 @@ julia> areaplot(1:3, [1 2 3; 7 8 9; 4 5 6], seriescolor = [:red :green :blue], f
|
|||||||
end
|
end
|
||||||
|
|
||||||
is_3d(::Type{Val{:mesh3d}}) = true
|
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