basic 3D
This commit is contained in:
parent
86643058b6
commit
1f566294ac
@ -451,18 +451,29 @@ function _update_plot_object(plt::Plot{PGFPlotsXBackend})
|
|||||||
for series in series_list(sp)
|
for series in series_list(sp)
|
||||||
opt = series.plotattributes
|
opt = series.plotattributes
|
||||||
segments = iter_segments(series)
|
segments = iter_segments(series)
|
||||||
|
segment_opt = PGFPlotsX.Options()
|
||||||
for (i, rng) in enumerate(segments)
|
for (i, rng) in enumerate(segments)
|
||||||
# TODO: make segmented series
|
segment_opt = merge( segment_opt, pgfx_marker(opt, i) )
|
||||||
end
|
end
|
||||||
# TODO: different seriestypes, histogramms, contours, etc.
|
# TODO: different seriestypes, histogramms, contours, etc.
|
||||||
series_plot = PGFPlotsX.Plot(
|
# TODO: colorbars
|
||||||
|
# TOOD: gradients
|
||||||
|
if is3d(series)
|
||||||
|
series_func = opt -> PGFPlotsX.Plot3(opt,
|
||||||
|
PGFPlotsX.Coordinates(series[:x],series[:y],series[:z])
|
||||||
|
)
|
||||||
|
else
|
||||||
|
series_func = opt -> PGFPlotsX.Plot(opt,
|
||||||
|
PGFPlotsX.Coordinates(series[:x],series[:y])
|
||||||
|
)
|
||||||
|
end
|
||||||
|
series_plot = series_func(
|
||||||
merge(
|
merge(
|
||||||
PGFPlotsX.Options(
|
PGFPlotsX.Options(
|
||||||
"color" => opt[:linecolor]
|
"color" => opt[:linecolor]
|
||||||
),
|
),
|
||||||
pgfx_marker(opt, i)
|
segment_opt
|
||||||
),
|
),
|
||||||
PGFPlotsX.Coordinates(series[:x],series[:y])
|
|
||||||
)
|
)
|
||||||
# add series annotations
|
# add series annotations
|
||||||
anns = series[:series_annotations]
|
anns = series[:series_annotations]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user