update gaston backend
This commit is contained in:
parent
41cf64b400
commit
1fe9a9f536
@ -290,7 +290,7 @@ function gaston_seriesconf!(
|
|||||||
ps: pointscale
|
ps: pointscale
|
||||||
pt: pointtype
|
pt: pointtype
|
||||||
tc: textcolor
|
tc: textcolor
|
||||||
w: with
|
w: with
|
||||||
=#
|
=#
|
||||||
gsp = sp.o
|
gsp = sp.o
|
||||||
st = series[:seriestype]
|
st = series[:seriestype]
|
||||||
@ -307,7 +307,7 @@ function gaston_seriesconf!(
|
|||||||
fr = series[:fillrange]
|
fr = series[:fillrange]
|
||||||
fc = gaston_color(get_fillcolor(series, i), get_fillalpha(series, i))
|
fc = gaston_color(get_fillcolor(series, i), get_fillalpha(series, i))
|
||||||
lc, dt, lw = gaston_lc_ls_lw(series, clims, i)
|
lc, dt, lw = gaston_lc_ls_lw(series, clims, i)
|
||||||
if fr !== nothing # filled curves, but not filled curves with markers
|
if fr !== nothing # filled curves, but not filled curves with markers
|
||||||
push!(
|
push!(
|
||||||
curveconf,
|
curveconf,
|
||||||
"w filledcurves fc $fc fs solid border lc $lc lw $lw dt $dt,'' w lines lc $lc lw $lw dt $dt",
|
"w filledcurves fc $fc fs solid border lc $lc lw $lw dt $dt,'' w lines lc $lc lw $lw dt $dt",
|
||||||
@ -505,8 +505,8 @@ function gaston_set_ticks!(axesconf, ticks, letter, maj_min, add)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function gaston_set_legend!(axesconf, sp, any_label)
|
function gaston_set_legend!(axesconf, sp, any_label)
|
||||||
leg = sp[:legend]
|
leg = sp[:legend_position]
|
||||||
if sp[:legend] ∉ (:none, :inline) && any_label
|
if sp[:legend_position] ∉ (:none, :inline) && any_label
|
||||||
leg == :best && (leg = :topright)
|
leg == :best && (leg = :topright)
|
||||||
|
|
||||||
push!(
|
push!(
|
||||||
@ -517,9 +517,9 @@ function gaston_set_legend!(axesconf, sp, any_label)
|
|||||||
occursin(position, string(leg)) && push!(axesconf, "set key $position")
|
occursin(position, string(leg)) && push!(axesconf, "set key $position")
|
||||||
end
|
end
|
||||||
push!(axesconf, "set key $(gaston_font(legendfont(sp), rot=false, align=false))")
|
push!(axesconf, "set key $(gaston_font(legendfont(sp), rot=false, align=false))")
|
||||||
if sp[:legendtitle] !== nothing
|
if sp[:legend_title] !== nothing
|
||||||
# NOTE: cannot use legendtitlefont(sp) as it will override legendfont
|
# NOTE: cannot use legendtitlefont(sp) as it will override legendfont
|
||||||
push!(axesconf, "set key title '$(sp[:legendtitle])'")
|
push!(axesconf, "set key title '$(sp[:legend_title])'")
|
||||||
end
|
end
|
||||||
push!(axesconf, "set key box lw 1 opaque")
|
push!(axesconf, "set key box lw 1 opaque")
|
||||||
push!(axesconf, "set border back")
|
push!(axesconf, "set border back")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user