Support *ticks in PGFplots.

This commit is contained in:
Patrick Kofod Mogensen 2016-08-10 10:44:29 +02:00 committed by Thomas Breloff
parent 9db7de8373
commit bc7c8993c0

View File

@ -227,6 +227,11 @@ function pgf_axis(sp::Subplot, letter)
kw[Symbol(letter,:max)] = lims[2] kw[Symbol(letter,:max)] = lims[2]
end end
if !(axis[:ticks] in (nothing, false, :none, :auto))
push!(style, "$(letter)"*"tick = {$(join(get_ticks(axis),","))}")
end
# return the style list and KW args # return the style list and KW args
style, kw style, kw
end end
@ -245,6 +250,7 @@ function _make_pgf_plot!(plt::Plot)
for letter in (:x, :y, :z) for letter in (:x, :y, :z)
if letter != :z || is3d(sp) if letter != :z || is3d(sp)
axisstyle, axiskw = pgf_axis(sp, letter) axisstyle, axiskw = pgf_axis(sp, letter)
append!(style, axisstyle)
merge!(kw, axiskw) merge!(kw, axiskw)
for sty in axisstyle for sty in axisstyle
push!(style, sty) push!(style, sty)