Fix tex output method for PGFPlots

This commit is contained in:
Chris Binz 2017-01-07 15:27:58 -05:00
parent c092d3cab4
commit 5717244dee

View File

@ -52,6 +52,11 @@ function tex(plt::Plot, fn::AbstractString)
end end
tex(fn::AbstractString) = tex(current(), fn) 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) function html(plt::Plot, fn::AbstractString)
fn = addExtension(fn, "html") fn = addExtension(fn, "html")
io = open(fn, "w") io = open(fn, "w")