Skip to content

How to save Pictures silently #233

Answered by alandefreitas
Darkhell101 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

bool gnuplot::output(const std::string &filename,

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Darkhell101
Comment options

@alandefreitas
Comment options

@Darkhell101
Comment options

Answer selected by Darkhell101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants