# How to export a plot of Plots.jl with PGFPlotsX using font size and width of the LaTeX document?

**URL:** <https://discourse.julialang.org/t/how-to-export-a-plot-of-plots-jl-with-pgfplotsx-using-font-size-and-width-of-the-latex-document/38144>\
**Category:** New to Julia\
**Tags:** plotting, pgfplotsx\
**Created:** [April 24, 2020, 1:08pm UTC](https://discourse.julialang.org/t/how-to-export-a-plot-of-plots-jl-with-pgfplotsx-using-font-size-and-width-of-the-latex-document/38144 "2020-04-24T13:08:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Volker](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Volker](https://discourse.julialang.org/u/Volker)\
**Post date:** [April 24, 2020, 1:08pm UTC](https://discourse.julialang.org/t/how-to-export-a-plot-of-plots-jl-with-pgfplotsx-using-font-size-and-width-of-the-latex-document/38144/1 "2020-04-24T13:08:22Z")

</div>

Hi,

I already have exported one plot from Plots.jl with the backend PGFPlotsX using savefig and editing the font size and width manually, but I was wondering if is it possible to export a plot of Plots.jl with PGFPlotsX, so that every font (ticks, labels, legends,…) will use the font of my tex-file (paper), and the figure width uses the width e.g. `\linewidth` of the document?

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [April 24, 2020, 2:51pm UTC](https://discourse.julialang.org/t/how-to-export-a-plot-of-plots-jl-with-pgfplotsx-using-font-size-and-width-of-the-latex-document/38144/2 "2020-04-24T14:51:14Z")

</div>

Currently there is no easy way to do this.  
There are some options:

- use pythontex to feed the parameters from LaTeX to julia and include the tex-output to pick up the font (warning: this will increase the typesetting time significantly)
- save as standalone `.tex`-file and modify the output by hand/ script to match your needs → create pdf → include pdf in document
