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

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

Whoops… You just do:

using Plots
pgfplots()

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