From 5717244dee6829ae0e22040f51d92ea520f69bc1 Mon Sep 17 00:00:00 2001 From: Chris Binz Date: Sat, 7 Jan 2017 15:27:58 -0500 Subject: [PATCH] Fix tex output method for PGFPlots --- src/output.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/output.jl b/src/output.jl index ff4a1def..a745864a 100644 --- a/src/output.jl +++ b/src/output.jl @@ -52,6 +52,11 @@ function tex(plt::Plot, fn::AbstractString) end tex(fn::AbstractString) = tex(current(), fn) +function tex(plt::Plot{PGFPlotsBackend}, fn::AbstractString) + fn = addExtension(fn, "tex") + PGFPlots.save(fn, backend_object(plt), include_preamble=false) +end + function html(plt::Plot, fn::AbstractString) fn = addExtension(fn, "html") io = open(fn, "w")