surface plots
This commit is contained in:
parent
42e88225c5
commit
c39a6d8ec3
@ -166,7 +166,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
segment_opt = PGFPlotsX.Options()
|
segment_opt = PGFPlotsX.Options()
|
||||||
for (i, rng) in enumerate(segments)
|
for (i, rng) in enumerate(segments)
|
||||||
segment_opt = merge( segment_opt, pgfx_linestyle(opt, i) )
|
segment_opt = merge( segment_opt, pgfx_linestyle(opt, i) )
|
||||||
if !iscontour(series) && !(st == :heatmap)
|
if opt[:markershape] != :none #|| !iscontour(series) && !(st == :heatmap)
|
||||||
segment_opt = merge( segment_opt, pgfx_marker(opt, i) )
|
segment_opt = merge( segment_opt, pgfx_marker(opt, i) )
|
||||||
end
|
end
|
||||||
if st == :shape || series[:fillrange] !== nothing
|
if st == :shape || series[:fillrange] !== nothing
|
||||||
@ -233,7 +233,10 @@ end
|
|||||||
# function args
|
# function args
|
||||||
args = if st == :contour
|
args = if st == :contour
|
||||||
opt[:x], opt[:y], opt[:z].surf'
|
opt[:x], opt[:y], opt[:z].surf'
|
||||||
elseif st == :heatmap
|
elseif st == :heatmap || st == :surface
|
||||||
|
@show opt[:x]
|
||||||
|
@show opt[:y]
|
||||||
|
@show opt[:z]
|
||||||
surface_to_vecs(opt[:x], opt[:y], opt[:z])
|
surface_to_vecs(opt[:x], opt[:y], opt[:z])
|
||||||
elseif is3d(st)
|
elseif is3d(st)
|
||||||
opt[:x], opt[:y], opt[:z]
|
opt[:x], opt[:y], opt[:z]
|
||||||
@ -300,7 +303,9 @@ function pgfx_series_coordinates!(st_val::Val{:xsticks}, segment_opt, opt, args)
|
|||||||
return PGFPlotsX.Coordinates(args...)
|
return PGFPlotsX.Coordinates(args...)
|
||||||
end
|
end
|
||||||
function pgfx_series_coordinates!(st_val::Val{:surface}, segment_opt, opt, args)
|
function pgfx_series_coordinates!(st_val::Val{:surface}, segment_opt, opt, args)
|
||||||
push!( segment_opt, "surf" => nothing )
|
push!( segment_opt, "surf" => nothing,
|
||||||
|
"mesh/rows" => length(opt[:x])
|
||||||
|
)
|
||||||
return PGFPlotsX.Coordinates(args...)
|
return PGFPlotsX.Coordinates(args...)
|
||||||
end
|
end
|
||||||
function pgfx_series_coordinates!(st_val::Val{:volume}, segment_opt, opt, args)
|
function pgfx_series_coordinates!(st_val::Val{:volume}, segment_opt, opt, args)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user