0

In gnuplot you can set the output file with set output'path/to/file'. I want to write a short utility script which briefly changes the output to a different file and then resets it.

Since the scripts that use the utility are generated by gnuplottex, I don't know the name of output files and therefore I can't set the output again.

When you want to briefly change terminal, you can do set terminalpush before and set terminal pop after it. AFAIK there's nothing similar with set ouptut.

You can show the current output by showoutput but it goes directly to stdout I couldn't figure how to save it into a variable.

1 Answer 1

2

there is the gnuplot variable GPVAL_OUTPUT. type show var GPVAL and you will get a list of gnuplot variables.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.