pass axis style to PGFPlots

This commit is contained in:
odow 2016-07-16 16:48:46 +12:00
parent 1f0f89f83c
commit fd3a04fce3

View File

@ -212,6 +212,11 @@ function pgf_axis(sp::Subplot, letter)
scale == :ln || push!(style, "log basis $letter=$(scale == :log2 ? 2 : 10)") scale == :ln || push!(style, "log basis $letter=$(scale == :log2 ? 2 : 10)")
end end
# ticks on or off
if axis[:ticks] in (nothing, false)
push!(style, "$(letter)majorticks=false")
end
# limits # limits
# TODO: support zlims # TODO: support zlims
if letter != :z if letter != :z
@ -239,6 +244,9 @@ function _make_pgf_plot!(plt::Plot)
if letter != :z || is3d(sp) if letter != :z || is3d(sp)
axisstyle, axiskw = pgf_axis(sp, letter) axisstyle, axiskw = pgf_axis(sp, letter)
merge!(kw, axiskw) merge!(kw, axiskw)
for sty in axisstyle
push!(style, sty)
end
end end
end end