Gaston: fix legendtitle

This commit is contained in:
t-bltg 2021-08-01 01:16:41 +02:00 committed by GitHub
parent 8ebe9e8204
commit bf16a97cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -437,14 +437,12 @@ 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
if sp[:legendtitle] !== nothing if sp[:legendtitle] !== nothing
push!(axesconf, "set key title '$(sp[:legendtitle])'") # $(gaston_font(legendfont(sp))) push!(axesconf, "set key title '$(sp[:legendtitle])' $(gaston_font(legendtitlefont(sp)))")
end end
push!(axesconf, "set key box lw 1 opaque") push!(axesconf, "set key box lw 1 opaque")
# push!(axesconf, "set key $(gaston_font(legendtitlefont(sp), rot=false, align=false))")
push!(axesconf, "set border back") push!(axesconf, "set border back")
else else
push!(axesconf, "set key off") push!(axesconf, "set key off")
end end
nothing nothing
end end