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

**URL:** <https://discourse.julialang.org/t/how-do-you-get-latex-representation-from-pgfplots-in-plots-jl/11312>\
**Category:** General Usage\
**Tags:** question, pgfplot\
**Created:** [May 31, 2018, 10:11pm UTC](https://discourse.julialang.org/t/how-do-you-get-latex-representation-from-pgfplots-in-plots-jl/11312 "2018-05-31T22:11:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [May 31, 2018, 10:11pm UTC](https://discourse.julialang.org/t/how-do-you-get-latex-representation-from-pgfplots-in-plots-jl/11312/1 "2018-05-31T22:11:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [May 31, 2018, 10:16pm UTC](https://discourse.julialang.org/t/how-do-you-get-latex-representation-from-pgfplots-in-plots-jl/11312/2 "2018-05-31T22:16:35Z")

</div>

Whoops… You just do:

```julia
using Plots
pgfplots()

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

```
