Search code examples
gnuplot

How to set default terminal of gnuplot


Is there any way that I can set default terminal in gnuplot? I am trying to set the default terminal to x11 but it is always aqua when start up. Thanks.


Solution

  • The only way I know is to add a line to the .gnuplot (or gnuplotrc or gnuplot.ini) file that is loaded on startup. (This file may live in your home directory or elsewhere depending on your gnuplot version / configuration, and you can see where it lives with the show loadpath command.) Here is the line to add:

    set term x11
    

    The commands in this file are executed before any others when gnuplot is run.