01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

138 gnuplot 4.0 36 SET-SHOW<br />

The GraphFont entry specifies the font name and size in points. The five numbers given in the Border,<br />

Axis and Line entries are the Red intensity (0–255), Green intensity, Blue intensity, Color Linestyle<br />

and Mono Linestyle. Linestyles are 0=SOLID, 1=DASH, 2=DOT, 3=DASHDOT, 4=DASHDOT-<br />

DOT. In the sample WGNUPLOT.INI file above, Line 2 is a green solid line in color mode, or a<br />

dashed line in monochrome mode. The default line width is 1 pixel. If Linestyle is negative, it specifies<br />

the width of a SOLID line in pixels. Line1 and any linestyle used with the points style must be SOLID<br />

with unit width.<br />

36.59.77.5 Windows3.0 Windows 3.1 is preferred, but WGNUPLOT will run under Windows 3.0<br />

with the following restrictions: 1. COMMDLG.DLL and SHELL.DLL (available with Windows 3.1 or<br />

Borland C++ 3.1) must be in the windows directory.<br />

2. WGNUPLOT.HLP produced by Borland C++ 3.1 is in Windows 3.1 format. You need to use the<br />

WINHELP.EXE supplied with Borland C++ 3.1.<br />

3. It will not run in real mode due to lack of memory.<br />

4. TrueType fonts are not available in the graph window.<br />

5. Drag-drop does not work.<br />

36.59.78 X11<br />

gnuplot provides the x11 terminal type for use with X servers. This terminal type is set automatically<br />

at startup if the DISPLAY environment variable is set, if the TERM environment variable is set to<br />

xterm, or if the -display command line option is used.<br />

Syntax:<br />

set terminal x11 [reset] [[no]enhanced] [font ]<br />

[title ""] [[no]persist] [[no]raise] [close]<br />

Multiple plot windows are supported: set terminal x11 directs the output to plot window number<br />

n. If n>0, the terminal number will be appended to the window title (unless a title has been supplied<br />

manually) and the icon will be labeled gplt . The active window may be distinguished by a change<br />

in cursor (from default to crosshair.)<br />

The x11 terminal support enhanced text mode (see enhanced (p. 127)), subject to the available fonts.<br />

In order for font size commands embedded in text to have any effect, the default x11 font must be<br />

scalable. Thus the first example below will work as expected, but the second will not.<br />

set term x11 enhanced font "arial,15"<br />

set title ’{\=20 Big} Medium {\=5 Small}’<br />

set term x11 enhanced font "terminal-14"<br />

set title ’{\=20 Big} Medium {\=5 Small}’<br />

Plot windows remain open even when the gnuplot driver is changed to a different device. A plot window<br />

can be closed by pressing the letter q while that window has input focus, or by choosing close from a<br />

window manager menu. All plot windows can be closed by specifying reset, which actually terminates<br />

the subprocess which maintains the windows (unless -persist was specified). The close command can<br />

be used to close individual plot windows by number. However, after a reset, those plot windows left<br />

due to persist cannot be closed with the command close. A close without a number closes the current<br />

active plot window.<br />

The gnuplot outboard driver, gnuplot x11, is searched in a default place chosen when the program is<br />

compiled. You can override that by defining the environment variable GNUPLOT DRIVER DIR to<br />

point to a different location.<br />

Plot windows will automatically be closed at the end of the session unless the -persist option was given.<br />

The options persist and raise are unset by default, which means that the defaults (persist == no and<br />

raise == yes) or the command line options -persist / -raise or the Xresources are taken. If [no]persist

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!