Merge pull request #488 from KristofferC/kc/fix_ticks
fix ticks for pgfplots
This commit is contained in:
commit
0e561e1cd6
@ -229,10 +229,11 @@ function pgf_axis(sp::Subplot, letter)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if !(axis[:ticks] in (nothing, false, :none, :auto))
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
# return the style list and KW args
|
# return the style list and KW args
|
||||||
style, kw
|
style, kw
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user