From bc7c8993c0cf072e6a2fead6881514332a1e844f Mon Sep 17 00:00:00 2001 From: Patrick Kofod Mogensen Date: Wed, 10 Aug 2016 10:44:29 +0200 Subject: [PATCH] Support *ticks in PGFplots. --- src/backends/pgfplots.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backends/pgfplots.jl b/src/backends/pgfplots.jl index 4acc82b7..2785d5b6 100644 --- a/src/backends/pgfplots.jl +++ b/src/backends/pgfplots.jl @@ -227,6 +227,11 @@ function pgf_axis(sp::Subplot, letter) kw[Symbol(letter,:max)] = lims[2] 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 style, kw end @@ -245,6 +250,7 @@ function _make_pgf_plot!(plt::Plot) for letter in (:x, :y, :z) if letter != :z || is3d(sp) axisstyle, axiskw = pgf_axis(sp, letter) + append!(style, axisstyle) merge!(kw, axiskw) for sty in axisstyle push!(style, sty)