Gaston: add support for major/minor grids

This commit is contained in:
t-bltg 2021-07-31 14:44:34 +02:00 committed by GitHub
parent 36a9e3b386
commit 1889f5b7f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,6 +323,11 @@ function gaston_parse_axes_args(plt::Plot{GastonBackend}, sp::Subplot{GastonBack
end end
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) ratio = get_aspect_ratio(sp)
if ratio != :none if ratio != :none
ratio == :equal && (ratio = -1) ratio == :equal && (ratio = -1)