diff --git a/src/backends/pgfplots.jl b/src/backends/pgfplots.jl index 8e2a67fb..15ea5d07 100644 --- a/src/backends/pgfplots.jl +++ b/src/backends/pgfplots.jl @@ -228,10 +228,11 @@ function pgf_axis(sp::Subplot, letter) end if !(axis[:ticks] in (nothing, false, :none, :auto)) - push!(style, "$(letter)"*"tick = {$(join(get_ticks(axis),","))}") + ticks = get_ticks(axis) + push!(style, string(letter, "tick = {", join(ticks[1],","), "}")) + push!(style, string(letter, "ticklabels = {", join(ticks[2],","), "}")) end - # return the style list and KW args style, kw end