From cbc0417ceaeddf740e448a296205ada0c89497d0 Mon Sep 17 00:00:00 2001 From: t-bltg <13423344+t-bltg@users.noreply.github.com> Date: Thu, 29 Jul 2021 21:49:10 +0200 Subject: [PATCH] Gaston: disable legends in contour plots --- src/backends/gaston.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backends/gaston.jl b/src/backends/gaston.jl index 56f71ca7..ca463ff4 100644 --- a/src/backends/gaston.jl +++ b/src/backends/gaston.jl @@ -177,6 +177,7 @@ function gaston_seriesconf!(sp, series::Series) st = series[:seriestype] clims = get_clims(sp, series) + label = "title \"$(series[:label])\"" if st ∈ (:scatter, :scatter3d) pt, ps, lc = gaston_mk_ms_mc(series) push!(curveconf, "with points pt $pt ps $ps lc $lc") @@ -198,10 +199,12 @@ function gaston_seriesconf!(sp, series::Series) elseif st == :steppost push!(curveconf, "with fsteps") # Not sure if not the other way elseif st ∈ (:contour, :contour3d) + label = "notitle" push!(curveconf, "with lines") if st == :contour gsp.axesconf *= "\nset view map\nunset surface" end + gsp.axesconf *= "\nunset key" levels = join(map(string, collect(contour_levels(series, clims))), ", ") gsp.axesconf *= "\nset contour base\nset cntrparam levels discrete $levels" elseif st ∈ (:surface, :heatmap) @@ -218,8 +221,7 @@ function gaston_seriesconf!(sp, series::Series) @warn "Gaston: $st is not implemented yet" end - # label - push!(curveconf, "title \"$(series[:label])\"") + push!(curveconf, label) return join(curveconf, " ") end