From 4475c38140b99e773858fb24fa551f0b70b11ca2 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Thu, 15 Sep 2016 14:58:28 +0200 Subject: [PATCH] fix ticks for pgfplots --- src/backends/pgfplots.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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