To download, from the
download page
follow the link to the SourceForge download page and download, for example,
gp463-win32-setup.exe
for M$ Windows.
When you run this installation
programme, a long ‘important information’ text is
displayed and a number of choices are offered whose meanings may not
be clear even after reading the important information.
You can just accept all of the default settings –
things can be changed later. (You may want to deselect
Associate gnuplot with the .plt file extension
because the .plt
file extension is often used
by other software.)
A second, even longer
‘important information’ text is displayed
but it's just new features, changes and fixes since previous versions,
so you can ignore it if this is your first time using gnuplot.
Note that the gnu
in the name is not related to the
GNU.
There's a lot of built-in help, although it can be a bit confusing until you get the drift.
gnuplot_test.gnuplot_data
in some directory.
(You can use something shorter than .gnuplot_data
as the filename extension if you want.)
Put a few lines of numbers into the file, two numbers per line, separated
by spaces or tabs. For example,
1 4 2 6 3 1 4 7 5 4Run gnuplot and click the button
plot "gnuplot_test.gnuplot_data"
(note the quotation marks) followed by
the Enter key. A window should
pop up with a plot showing the individual data points.
+
and several of the data points are hard to distinguish
from the automatically scaled axes. To make the plot more visible,
add lines between the points by giving the command
set style data linespoints
.
Then use the up-arrow key to select the
plot "gnuplot_test.gnuplot_data
command again
and use the Enter key to execute it.
load
command. If you're using trial
and error to get the plot right and using the
load
command repeatedly, it seems to be a good
idea to put a reset
command at the beginning
of your command file, to make sure leftover settings don't
confuse things.
svg
,
postscript
, png
. For example,
to output to an SVG file, give commands like
set terminal svg
|
set output '\c:\users\username\filename.svg'
|
set terminal postscript eps
|
set output '\c:\users\username\filename.eps'
|
x11
under *n*x
and wxt
or windows
under M$ Windows.
linetype
index. For the terminal type
windows
I see:
windows | svg | png | x11* | postscript | |
---|---|---|---|---|---|
1 | red | red | red | red | |
2 | green | dark green | green | green | |
3 | blue | blue | blue | blue | |
4 | magenta | cyan | magenta | magenta | |
5 | dark blue | dark cyan | cyan | cyan | |
6 | brown | dark blue | brown | brown | |
7 | dark cyan | light brown | yellow | dark yellow | |
8 | black | dark cyan | dark blue | pinkish | |
9 | dark grey | olive | dark yellow | ||
10 | dark green | light blue | dark green | ||
11 | olive | orange | mauve | ||
12 | purple | purple | dark brown | ||
13 | light grey | light green | pink | ||
14 | cyan | green | |||
15 | yellow | dark cyan | |||
16 | ... |
rgbcolor "red"
)
is available from version 4.2; this avoids the horribly
inconsistent device-dependence, for colours if not for
symbol shapes.