Discussion:
Change the default terminal on windows
(too old to reply)
SyntaxErrorX00
2019-09-25 16:22:17 UTC
Permalink
Hello
I am using gnuplot 5.2.7.

gnuplot/wgnuplot use wxt as the default terminal. I want to change that to be 'qt' instead so every time I have to run "set term qt" so I am looking for a way to change it permanently. I tried everything I found on internet:
* create GNUPLOT.INI and insert "set term qt",
* Create an environment variable GNUPLOT pointing to that directory (My home directory, C:\Users\username).

* Tried to change the file wgnuplot.ini in my home directory.
* Tried to change the file wgnuplot in C:\Program Files\gnuplot\share\wgnuplt.ini

But unfortuately that have no effect, every time I open gnuplot I get the default terminal wxt.

Could you please tell me how can I change that?
Karl Ratzsch
2019-09-25 18:38:53 UTC
Permalink
Post by SyntaxErrorX00
* create GNUPLOT.INI and insert "set term qt",
* Create an environment variable GNUPLOT pointing to that directory (My home directory, C:\Users\username).
* Tried to change the file wgnuplot.ini in my home directory.
* Tried to change the file wgnuplot in C:\Program Files\gnuplot\share\wgnuplt.ini
But unfortuately that have no effect, every time I open gnuplot I get the default terminal wxt.
Could you please tell me how can I change that?
You have to place the gnuplot.ini (not wgnuplot.ini, thats just for
the windows GUI) file in the $APPDATA directory, which usually is
<your home directory>\appdata\roaming

(For some unknown reason, the ~\appdata directory is hidden by
default. First thing I change on every windows machine, right after
disabling the system sounds.)

Enter "set APPDATA" on the command line to check.

Or you reinstall gnuplot and choose a different default terminal in
the installer.

Hth, Karl
s1291
2019-09-26 08:51:45 UTC
Permalink
Post by Karl Ratzsch
Post by SyntaxErrorX00
* create GNUPLOT.INI and insert "set term qt",
* Create an environment variable GNUPLOT pointing to that directory (My home directory, C:\Users\username).
* Tried to change the file wgnuplot.ini in my home directory.
* Tried to change the file wgnuplot in C:\Program Files\gnuplot\share\wgnuplt.ini
But unfortuately that have no effect, every time I open gnuplot I get the default terminal wxt.
Could you please tell me how can I change that?
You have to place the gnuplot.ini (not wgnuplot.ini, thats just for
the windows GUI) file in the $APPDATA directory, which usually is
<your home directory>\appdata\roaming
(For some unknown reason, the ~\appdata directory is hidden by
default. First thing I change on every windows machine, right after
disabling the system sounds.)
Enter "set APPDATA" on the command line to check.
Or you reinstall gnuplot and choose a different default terminal in
the installer.
Hth, Karl
Thank you for you reply,
Sorry I forgot to mention that I tried also with what you suggested: to add gnuplot.ini to %appdata% folder but unfortunately it didn't work.
So I will try the second suggestion.
Regards
Jörg Buchholz
2019-09-26 10:00:03 UTC
Permalink
Post by s1291
Post by Karl Ratzsch
Post by SyntaxErrorX00
* create GNUPLOT.INI and insert "set term qt",
* Create an environment variable GNUPLOT pointing to that directory (My home directory, C:\Users\username).
* Tried to change the file wgnuplot.ini in my home directory.
* Tried to change the file wgnuplot in C:\Program Files\gnuplot\share\wgnuplt.ini
But unfortuately that have no effect, every time I open gnuplot I get the default terminal wxt.
Could you please tell me how can I change that?
You have to place the gnuplot.ini (not wgnuplot.ini, thats just for
the windows GUI) file in the $APPDATA directory, which usually is
<your home directory>\appdata\roaming
(For some unknown reason, the ~\appdata directory is hidden by
default. First thing I change on every windows machine, right after
disabling the system sounds.)
Enter "set APPDATA" on the command line to check.
Or you reinstall gnuplot and choose a different default terminal in
the installer.
Hth, Karl
Thank you for you reply,
Sorry I forgot to mention that I tried also with what you suggested: to add gnuplot.ini to %appdata% folder but unfortunately it didn't work.
So I will try the second suggestion.
Regards
Hi,

are you sure that it not works? It looks like gnuplot always tell you at
the start "Terminal type is now 'windows'", but the terminal is set to
what you give in the gnuplot.ini.


Jörg
s1291
2019-09-26 17:18:45 UTC
Permalink
Post by Jörg Buchholz
Post by s1291
Post by Karl Ratzsch
Post by SyntaxErrorX00
* create GNUPLOT.INI and insert "set term qt",
* Create an environment variable GNUPLOT pointing to that directory (My home directory, C:\Users\username).
* Tried to change the file wgnuplot.ini in my home directory.
* Tried to change the file wgnuplot in C:\Program Files\gnuplot\share\wgnuplt.ini
But unfortuately that have no effect, every time I open gnuplot I get the default terminal wxt.
Could you please tell me how can I change that?
You have to place the gnuplot.ini (not wgnuplot.ini, thats just for
the windows GUI) file in the $APPDATA directory, which usually is
<your home directory>\appdata\roaming
(For some unknown reason, the ~\appdata directory is hidden by
default. First thing I change on every windows machine, right after
disabling the system sounds.)
Enter "set APPDATA" on the command line to check.
Or you reinstall gnuplot and choose a different default terminal in
the installer.
Hth, Karl
Thank you for you reply,
Sorry I forgot to mention that I tried also with what you suggested: to add gnuplot.ini to %appdata% folder but unfortunately it didn't work.
So I will try the second suggestion.
Regards
Hi,
are you sure that it not works? It looks like gnuplot always tell you at
the start "Terminal type is now 'windows'", but the terminal is set to
what you give in the gnuplot.ini.
Jörg
Hello Jörg,
Yes I am sure, I tried to create a the file %appdata%\gnuplot.ini with the following content:
set terminal qt
But that has no effect.
I changed the content to
Terminal=qt

That has also no effect (I don't know if that syntax is valid or not but at least I tried it).
Jörg Buchholz
2019-09-30 11:22:55 UTC
Permalink
Post by s1291
Post by Jörg Buchholz
Post by s1291
Post by Karl Ratzsch
Post by SyntaxErrorX00
* create GNUPLOT.INI and insert "set term qt",
* Create an environment variable GNUPLOT pointing to that directory (My home directory, C:\Users\username).
* Tried to change the file wgnuplot.ini in my home directory.
* Tried to change the file wgnuplot in C:\Program Files\gnuplot\share\wgnuplt.ini
But unfortuately that have no effect, every time I open gnuplot I get the default terminal wxt.
Could you please tell me how can I change that?
You have to place the gnuplot.ini (not wgnuplot.ini, thats just for
the windows GUI) file in the $APPDATA directory, which usually is
<your home directory>\appdata\roaming
(For some unknown reason, the ~\appdata directory is hidden by
default. First thing I change on every windows machine, right after
disabling the system sounds.)
Enter "set APPDATA" on the command line to check.
Or you reinstall gnuplot and choose a different default terminal in
the installer.
Hth, Karl
Thank you for you reply,
Sorry I forgot to mention that I tried also with what you suggested: to add gnuplot.ini to %appdata% folder but unfortunately it didn't work.
So I will try the second suggestion.
Regards
Hi,
are you sure that it not works? It looks like gnuplot always tell you at
the start "Terminal type is now 'windows'", but the terminal is set to
what you give in the gnuplot.ini.
Jörg
Hello Jörg,
set terminal qt
But that has no effect.
I changed the content to
Terminal=qt
That has also no effect (I don't know if that syntax is valid or not but at least I tried it).
My "gnuplot.in" is at "C:\Users\"username"\AppData\Roaming\gnuplot.ini"
and all what I tell gnuplot is done.

The simple syntax is:

set term qt enhanced
set samples 1000
set grid
set encoding utf8

But I must do a "show terminal" to see what terminal is really set. At
the start gnuplot always says the terminal is set to "windows".

It is WIN 7 with gnuplot 5.2

Jörg
s1291
2019-10-30 13:53:22 UTC
Permalink
Post by Jörg Buchholz
Post by s1291
Post by Jörg Buchholz
Post by s1291
Post by Karl Ratzsch
Post by SyntaxErrorX00
* create GNUPLOT.INI and insert "set term qt",
* Create an environment variable GNUPLOT pointing to that directory (My home directory, C:\Users\username).
* Tried to change the file wgnuplot.ini in my home directory.
* Tried to change the file wgnuplot in C:\Program Files\gnuplot\share\wgnuplt.ini
But unfortuately that have no effect, every time I open gnuplot I get the default terminal wxt.
Could you please tell me how can I change that?
You have to place the gnuplot.ini (not wgnuplot.ini, thats just for
the windows GUI) file in the $APPDATA directory, which usually is
<your home directory>\appdata\roaming
(For some unknown reason, the ~\appdata directory is hidden by
default. First thing I change on every windows machine, right after
disabling the system sounds.)
Enter "set APPDATA" on the command line to check.
Or you reinstall gnuplot and choose a different default terminal in
the installer.
Hth, Karl
Thank you for you reply,
Sorry I forgot to mention that I tried also with what you suggested: to add gnuplot.ini to %appdata% folder but unfortunately it didn't work.
So I will try the second suggestion.
Regards
Hi,
are you sure that it not works? It looks like gnuplot always tell you at
the start "Terminal type is now 'windows'", but the terminal is set to
what you give in the gnuplot.ini.
Jörg
Hello Jörg,
set terminal qt
But that has no effect.
I changed the content to
Terminal=qt
That has also no effect (I don't know if that syntax is valid or not but at least I tried it).
My "gnuplot.in" is at "C:\Users\"username"\AppData\Roaming\gnuplot.ini"
and all what I tell gnuplot is done.
set term qt enhanced
set samples 1000
set grid
set encoding utf8
But I must do a "show terminal" to see what terminal is really set. At
the start gnuplot always says the terminal is set to "windows".
It is WIN 7 with gnuplot 5.2
Jörg
It is not clear what you are asking for. I assume you want to change the default terminal to something like qt. The simple solution is to re-install gnuplot and choose qt as the default terminal from the installer.
Loading...