# PGFPlotsX debugging: where is the tex file?

**URL:** <https://discourse.julialang.org/t/pgfplotsx-debugging-where-is-the-tex-file/111683>\
**Category:** General Usage\
**Created:** [March 15, 2024, 9:36pm UTC](https://discourse.julialang.org/t/pgfplotsx-debugging-where-is-the-tex-file/111683 "2024-03-15T21:36:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [March 15, 2024, 9:36pm UTC](https://discourse.julialang.org/t/pgfplotsx-debugging-where-is-the-tex-file/111683/1 "2024-03-15T21:36:11Z")

</div>

I’m trying to debug this error:

Package pgfkeys Error: Choice ‘outer north west’ unknown in choice key ‘/pgfp  
lots/legend pos’. I am going to ignore this key.

I’m not able to find the temporary file with the tex code.  
I guess the package removes it when it fails.  
Is that configurable?

---

<div class="post-metadata">

**Author:** ![mzaffalon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mzaffalon/32/214168_2.png) [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Post date:** [March 16, 2024, 10:10am UTC](https://discourse.julialang.org/t/pgfplotsx-debugging-where-is-the-tex-file/111683/2 "2024-03-16T10:10:23Z")

</div>

I am not an expert but from a quick look at the code it does not look like it is possible, although it would be a nice feature.

The workaround is to comment out the line [PGFPlotsX.jl/src/tikzdocument.jl at c46316a588c9882d5996e71535bf691cce523cc7 · KristofferC/PGFPlotsX.jl · GitHub](https://github.com/KristofferC/PGFPlotsX.jl/blob/c46316a588c9882d5996e71535bf691cce523cc7/src/tikzdocument.jl#L201C13-L201C24) and add a `println(tmp_tex)` to know where the temporary file is stored.
