From 98b7ba1cd71566ee01bef05372f93f8643f51475 Mon Sep 17 00:00:00 2001 From: Benoit Pasquier Date: Wed, 14 Apr 2021 12:51:25 +1000 Subject: [PATCH] Fix boiler-plate code in get_ticks --- src/axes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/axes.jl b/src/axes.jl index a3ca7350..742af517 100644 --- a/src/axes.jl +++ b/src/axes.jl @@ -240,7 +240,7 @@ get_ticks(sp::Subplot, s::Symbol; kwargs...) = get_ticks(sp, sp[Symbol(s, :axis) xticks(sp::Subplot; kwargs...) = get_ticks(sp, :x) yticks(sp::Subplot; kwargs...) = get_ticks(sp, :y) zticks(sp::Subplot; kwargs...) = get_ticks(sp, :z) -get_ticks(p::Plot, s::Symbol; kwargs...) = [get_ticks(sp, sp[Symbol(s, :axis)]; kwargs...) for sp in p.subplots] +get_ticks(p::Plot, s::Symbol; kwargs...) = [get_ticks(sp, s; kwargs...) for sp in p.subplots] xticks(p::Plot; kwargs...) = get_ticks(p, :x) yticks(p::Plot; kwargs...) = get_ticks(p, :y) zticks(p::Plot; kwargs...) = get_ticks(p, :z)