From 1889f5b7f98ede419e499093120a6e5288ce32ba Mon Sep 17 00:00:00 2001 From: t-bltg <13423344+t-bltg@users.noreply.github.com> Date: Sat, 31 Jul 2021 14:44:34 +0200 Subject: [PATCH] Gaston: add support for major/minor grids --- src/backends/gaston.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backends/gaston.jl b/src/backends/gaston.jl index 05490516..057e5cf6 100644 --- a/src/backends/gaston.jl +++ b/src/backends/gaston.jl @@ -322,6 +322,11 @@ function gaston_parse_axes_args(plt::Plot{GastonBackend}, sp::Subplot{GastonBack gaston_set_ticks!(axesconf, minor_ticks, letter, "m", "add") end end + + if axis[:grid] + push!(axesconf, "set grid $(letter)tics") + axis[:minorgrid] && push!(axesconf, "set grid m$(letter)tics") + end ratio = get_aspect_ratio(sp) if ratio != :none