fix ticks for pgfplots

This commit is contained in:
Kristoffer Carlsson 2016-09-15 14:58:28 +02:00
parent 31ea149820
commit 4475c38140

View File

@ -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