From cfe02afa7efec47ec9a302192cb4ec3283232434 Mon Sep 17 00:00:00 2001 From: Lukas_Krumwiede Date: Mon, 16 Aug 2021 18:16:36 +0200 Subject: [PATCH] filledcurve option improvement for gaston(). Example three is now working, four not. Co-authored-by: Simon Christ --- src/backends/gaston.jl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/backends/gaston.jl b/src/backends/gaston.jl index 223ce4b7..b5396374 100644 --- a/src/backends/gaston.jl +++ b/src/backends/gaston.jl @@ -303,10 +303,14 @@ function gaston_seriesconf!( lc, dt, lw = gaston_lc_ls_lw(series, clims, i) pt, ps, mc = gaston_mk_ms_mc(series, clims, i) push!(curveconf, "w points pt $pt ps $ps lc $mc") - elseif st ∈ (:path, :straightline, :path3d) + elseif st ∈ (:path, :straightline, :path3d) + fr = series[:fillrange] + fc = gaston_color(get_fillcolor(series, i), get_fillalpha(series, i)) lc, dt, lw = gaston_lc_ls_lw(series, clims, i) - if series[:markershape] == :none # simplepath - push!(curveconf, "w lines lc $lc dt $dt lw $lw") + if fr !== nothing # filled curves, but not filled curves with markers + push!(curveconf, "w filledcurves fc $fc fs solid border lc $lc lw $lw dt $dt") + elseif series[:markershape] == :none # simplepath + push!(curveconf, "w lines lc $lc dt $dt lw $lw") else pt, ps, mc = gaston_mk_ms_mc(series, clims, i) push!(curveconf, "w lp lc $mc dt $dt lw $lw pt $pt ps $ps")