Getting started with gnuplot in Ubuntu environment
You have to launch gnuplot first (type gnuplot and press enter), and then when you're in give the command (in your case plot sin(x)
). This is what you should see on the terminal:
~$ gnuplot
G N U P L O T
Version 4.6 patchlevel 0 last modified 2012-03-04
Build System: Linux x86_64
Copyright (C) 1986-1993, 1998, 2004, 2007-2012
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'wxt'
gnuplot> plot sin(x)
How to install GnuPlot on windows?
You don't have to install MinGW or Cygwin. Actually packages compiled in MinGW are compatible with Windows. Just download the binary of gnuplot
from Their repo and you are good to go.
Additional points:
- When installing, check which terminals you want to set up; also
check if you want the installer to add thePATH
variable to your
system. Also, create a desktop shortcut. - After installation, you should see the desktop shortcut. Clicking on it should open a terminal-based
gnuplot
(which hopefully you are familiar with).
Please note that I have used the x11
terminal (you can get this working by installing xming). There are other options such as windows
and qt
terminals, but I am not an expert on using these.
Why doesn't gnuplot 4.6 plot window have featues of Gnuplot 4.4?
The gnuplot 4.6 that comes with the Ubuntu 14.04 repositories looks OK with the default terminal, which is wxt
:
Now, I'm suspecting that you met the same problem as me before I upgraded Ubuntu and you installed gnuplot 4.6 from source on Ubuntu 12.04, whose repositories come with gnuplot 4.4. When you install from source you might experience the lack of some terminals, in particular wxt
. I do not know the details behind this issue, but I'm guessing some libraries needed for those terminals are somehow not available in Ubuntu 12.04.
For what it's worth, at least the epslatex
terminal, which is the one I normally use on a non upgraded machine, seems to work flawlessly even when installing gnuplot 4.6 from source on Ubuntu 12.04.
Related Topics
Split Files Based on File Content and Pattern Matching
Case-Insensitive Glob on Zsh/Bash
Printing Current Time in Milliseconds or Nanoseconds with Printf Builtin
How to Use the Linux Flock Command to Prevent Another Root Process from Deleting a File
How to Config Socks5 Proxy on Git
Tomcat 7 with Java 8 on Windows and Linux
Create a Virtual Floppy Image Without Mount
How to Install Xvfb (X Virtual Framebuffer) on Redhat 6.5
How to Create an Rs256 Jwt Assertion with Bash/Shell Scripting
Force Cmake to Use the Full Library Path
Scripts Launched from Udev Do Not Have Display Access Anymore
Sharing Devices (Webcam, Usb Drives, etc) with Docker
Deduplicate Git Forks on a Server
Why File Is Accessible After Deleting in Unix
Use a C Library in Swift on Linux
Can't Read Variable That Was Stored from Within a While Loop, When Out of the While Loop