How do you get LaTeX representation from PGFPlots in Plots.jl?

question

#1

Is there a way to monkey around with a plot using Plots.jl and then get the LaTeX code that would produce it?

// using the PGFPlots backend


#2

Whoops… You just do:

using Plots
pgfplots()

woof=plot([0,1,2],[0,1,0])
savefig(woof,"bark.tex")