[BUG] savefig()
not working properly in local (function) scope - PGFPlotsX
#4943
Labels
savefig()
not working properly in local (function) scope - PGFPlotsX
#4943
Thanks for checking my Issue! I'm having trouble saving plots through savefig() while in a local (function) scope.
Details
I was trying to plot different data and save them to different PDFs, but when plotting them individually like in
All of them save blank with a warning:
And when trying to plot them together:
I get a crash with the following dump:
My current Workaround
I have been using savefig() in global scope, as that seems to fix the issue, but I'd prefer if I was able to do it in local scope for performance and organizational reasons.
I'd rather not switch backends for compability issues with my OS and my preference for LaTeX, if at all possible.
Backends
I have only used the gr (inside an ubuntu container in distrobox) and pgfplotsx backends, and this issue hasn't happened with gr before, but that was different code.
This bug occurs on:
Versions
Plots.jl version: 1.40.4
PGFPlotsX version: 1.6.1
Output of
versioninfo()
:Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × 12th Gen Intel(R) Core(TM) i3-1215U
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, alderlake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
My system
I'm using NixOS stable with the julia-bin package (although my Julia packages are managed through Pkgs) with home-manager and flakes.
The text was updated successfully, but these errors were encountered: