I am using gnuplot under ubuntu 12.10. When i type in terminal :
gnuplot> plot sin(x)
it only shows next step:
gnuplot>
but it doesn't show the graph plotting windows. What can I do to find the problem?
I am using gnuplot under ubuntu 12.10. When i type in terminal :
gnuplot> plot sin(x)
it only shows next step:
gnuplot>
but it doesn't show the graph plotting windows. What can I do to find the problem?
You might be missing gnuplot-x11. Try to install it. In the commandline, do this:
Add
-p
If you are doing:
add a
-p
, it helps a lot:man gnuplot
documents:Tested on gnuplot 5.0 patchlevel 3, Ubuntu 16.04.
The problem seems to be the 'unknown' terminal type. The separate window for the output is generated by
wxWidget library
. If this package is not installed on your machine, no window would be created at all. However, to draw something in this window, you need two other packages, as wxWidget does not draw anything. All these packages can be installed at once by the following command.Be warned that wxWidget (libwxgtk) must be 2.8 and not 3.0 if you are installing it from source instead of repository. After installing all these, it is safer to throw away gnuplot source folders from your machine. Download latest gnuplot and extract it in the folder you want to install in. Finally, you should make a change in the
configure
file that you got with the gnuplot source. Locate the following line in it:and change that
no
toyes
and save it. After this run commands./configure
, thenmake
and finallysudo make install
. Now gnuplot should be working fine.Edit : Today I found out another issue related to wxt terminal. So sometimes even after following the procedure outlined above, you don't get that beautiful wxt terminal in Ubuntu 14. The little hack is like this (I am not explaining this, just follow it!)
And then delete the gnuplot from bin folder. Finally repeat what is given above.