How to save Pictures silently #233
-
I want to save pictures silently, but every time the plot will pop out. Please help me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If the figure is in quiet mode, I believe the save function shouldn't open anything: https://alandefreitas.github.io/matplotplusplus/coding-styles/reactive-vs-quiet-figures/ In the gnuplot backend object, the save function should usually change the gnuplot terminal type temporarily and call draw. This is an implementation detail: You can try to emulate this behavior from outside, but you shouldn't have to. In any case, this might help describe the logic behind the save function. |
Beta Was this translation helpful? Give feedback.
If the figure is in quiet mode, I believe the save function shouldn't open anything: https://alandefreitas.github.io/matplotplusplus/coding-styles/reactive-vs-quiet-figures/
In the gnuplot backend object, the save function should usually change the gnuplot terminal type temporarily and call draw. This is an implementation detail:
matplotplusplus/source/matplot/backend/gnuplot.cpp
Line 148 in 3fd7593
You can try to emulate this behavior from outside, but you shouldn't have to. In any case, this might help describe the logic behind the save function.