Merge pull request #488 from KristofferC/kc/fix_ticks

fix ticks for pgfplots
This commit is contained in:
Tom Breloff 2016-09-15 09:11:24 -04:00 committed by GitHub
commit 0e561e1cd6

View File

@ -229,10 +229,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