fix ribbon
This commit is contained in:
parent
ecc891279e
commit
cfe1ede25a
@ -233,7 +233,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
end
|
end
|
||||||
if st == :shape ||
|
if st == :shape ||
|
||||||
isfilledcontour(series) ||
|
isfilledcontour(series) ||
|
||||||
series[:ribbon] !== nothing
|
series[:ribbon] === nothing
|
||||||
segment_opt = merge( segment_opt, pgfx_fillstyle(opt, i) )
|
segment_opt = merge( segment_opt, pgfx_fillstyle(opt, i) )
|
||||||
end
|
end
|
||||||
# add fillrange
|
# add fillrange
|
||||||
@ -606,10 +606,11 @@ function pgfx_add_ribbons!( axis, series, segment_plot, series_func, series_inde
|
|||||||
ribbon_y = series[:ribbon]
|
ribbon_y = series[:ribbon]
|
||||||
opt = series.plotattributes
|
opt = series.plotattributes
|
||||||
if ribbon_y isa AVec
|
if ribbon_y isa AVec
|
||||||
ribbon_n = length(opt[:y]) ÷ length(ribbon)
|
ribbon_n = length(opt[:y]) ÷ length(ribbon_y)
|
||||||
ribbon_y = repeat(ribbon, outer = ribbon_n)
|
ribbon_y = repeat(ribbon_y, outer = ribbon_n)
|
||||||
end
|
end
|
||||||
# upper ribbon
|
# upper ribbon
|
||||||
|
# TODO: use UUIDs
|
||||||
ribbon_name_plus = "plots_rib_p$series_index"
|
ribbon_name_plus = "plots_rib_p$series_index"
|
||||||
ribbon_opt_plus = merge(segment_plot.options, PGFPlotsX.Options(
|
ribbon_opt_plus = merge(segment_plot.options, PGFPlotsX.Options(
|
||||||
"name path" => ribbon_name_plus,
|
"name path" => ribbon_name_plus,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user