[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.1.0.66 windows
The ‘windows‘ terminal is a fast interactive terminal driver that uses the Windows GDI to draw and write text. The cross-platform ‘terminal wxt‘ is also supported on Windows.
Syntax:
set terminal windows {<n>} {color | monochrome} {solid | dashed} {enhanced | noenhanced} {font <fontspec>} {fontscale <scale>} {linewdith <scale>} {background <rgb color>} {title "Plot Window Title"} {size <width>,<height>} {position <x>,<y>} {close}
Multiple plot windows are supported: ‘set terminal win <n>‘ directs the output to plot window number n.
‘color‘ and ‘monochrome‘ select colored or mono output, ‘dashed‘ and ‘solid‘ select dashed or solid lines. Note that ‘color‘ defaults to ‘solid‘, whereas ‘monochrome‘ defaults to ‘dashed‘. ‘enhanced‘ enables enhanced text mode features (subscripts, superscripts and mixed fonts, see ‘enhanced text‘ for more information). ‘<fontspec>‘ is in the format "<fontface>,<fontsize>", where "<fontface>" is the name of a valid Windows font, and <fontsize> is the size of the font in points and both components are optional. Note that in previous versions of gnuplot the ‘font‘ statement could be left out and <fontsize> could be given as a number without double quotes. This is no longer supported. ‘linewidth‘ and ‘fontscale‘ can be used to scale the width of lines and the size of text. title changes the title of the graph window. size defines the width and height of the window in pixel and position the origin of the window i.e. the position of the top left corner on the screen (again in pixel). These options override any default settings from the ‘wgnuplot.ini‘ file.
Other options may be changed using the ‘graph-menu‘ or the initialization file ‘wgnuplot.ini‘.
The Windows version normally terminates immediately as soon as the end of any files given as command line arguments is reached (i.e. in non-interactive mode), unless you specify ‘-‘ as the last command line option. It will also not show the text-window at all, in this mode, only the plot. By giving the optional argument ‘-persist‘ (same as for gnuplot under x11; former Windows-only options ‘/noend‘ or ‘-noend‘ are still accepted as well), will not close gnuplot. Contrary to gnuplot on other operating systems, gnuplot’s interactive command line is accessible after the -persist option.
The plot window remains open when the gnuplot terminal is changed with a ‘set term‘ command. The plot window can be closed with ‘set term windows close‘.
‘gnuplot‘ supports different methods to create printed output on Windows, see ‘windows printing‘. The windows terminal supports data exchange with other programs via clipboard and EMF files, see ‘graph-menu‘. You can also use the ‘terminal emf‘ to create EMF files.
— GRAPH-MENU —
The ‘gnuplot graph‘ window has the following options on a pop-up menu accessed by pressing the right mouse button(*) or selecting ‘Options‘ from the system menu:
‘Copy to Clipboard‘ copies a bitmap and an enhanced Metafile picture.
‘Save as EMF...‘ allows the user to save the current graph window as enhanced metafile
‘Print...‘ prints the graphics windows using a Windows printer driver and allows selection of the printer and scaling of the output. The output produced by ‘Print‘ is not as good as that from ‘gnuplot‘’s own printer drivers. See also ‘windows printing‘.
‘Bring to Top‘ when checked brings the graph window to the top after every plot.
‘Color‘ when checked enables color linestyles. When unchecked it forces monochrome linestyles.
‘Double buffer‘ activates drawing into a memory buffer before copying the graph to the screen. This avoids flickering e.g. during animation and rotation of 3d graphs. See ‘mouse‘ and scrolling.
‘Oversampling‘ doubles the size of the virtual canvas. It is scaled down again for drawing to the screen. This gives smoother graphics but requires more memory and computing time. It requires ‘double buffer‘.
‘Antialiasing‘ selects smoothing of lines and edges. Note that this slows down drawing.
‘Background...‘ sets the window background color.
‘Choose Font...‘ selects the font used in the graphics window.
‘Line Styles...‘ allows customization of the line colors and styles.
‘Update wgnuplot.ini‘ saves the current window locations, window sizes, text window font, text window font size, graph window font, graph window font size, background color and linestyles to the initialization file ‘wgnuplot.ini‘.
(*) Note that this menu is only available by pressing the right mouse button with ‘unset mouse‘.
— PRINTING —
In order of preference, graphs may be printed in the following ways:
‘1.‘ Use the ‘gnuplot‘ command terminal to select a printer and output to redirect output to a file.
‘2.‘ Select the ‘Print...‘ command from the ‘gnuplot graph‘ window. An extra command ‘screendump‘ does this from the text window.
‘3.‘ If ‘set output "PRN"‘ is used, output will go to a temporary file. When you exit from ‘gnuplot‘ or when you change the output with another output command, a dialog box will appear for you to select a printer port. If you choose OK, the output will be printed on the selected port, passing unmodified through the print manager. It is possible to accidentally (or deliberately) send printer output meant for one printer to an incompatible printer.
— TEXT-MENU", /* FIXME: THIS IS NOT REALLY RELATED TO THE WINDOWS DRIVER, BUT THE WINDOWS PLATFORM */ —
The ‘gnuplot text‘ window has the following options on a pop-up menu accessed by pressing the right mouse button or selecting ‘Options‘ from the system menu:
‘Copy to Clipboard‘ copies marked text to the clipboard.
‘Paste‘ copies text from the clipboard as if typed by the user.
‘Choose Font...‘ selects the font used in the text window.
‘System Colors‘ when selected makes the text window honor the System Colors set using the Control Panel. When unselected, text is black or blue on a white background.
‘Wrap long lines‘ when selected lines longer than the current window width are wrapped.
‘Update wgnuplot.ini‘ saves the current settings to the initialisation file ‘wgnuplot.ini‘, which is located in the user’s application data directory.
— WGNUPLOT.MNU", /* FIXME: THIS IS NOT REALLY RELATED TO THE WINDOWS DRIVER, BUT THE WINDOWS PLATFORM */ —
If the menu file ‘wgnuplot.mnu‘ is found in the same directory as ‘gnuplot‘, then the menu specified in ‘wgnuplot.mnu‘ will be loaded. Menu commands:
[Menu] starts a new menu with the name on the following line. [EndMenu] ends the current menu. [--] inserts a horizontal menu separator. [|] inserts a vertical menu separator. [Button] puts the next macro on a push button instead of a menu.
Macros take two lines with the macro name (menu entry) on the first line and the macro on the second line. Leading spaces are ignored. Macro commands:
[INPUT] Input string with prompt terminated by [EOS] or {ENTER} [EOS] End Of String terminator. Generates no output. [OPEN] Get name of a file to open, with the title of the dialog terminated by [EOS], followed by a default filename terminated by [EOS] or {ENTER}. [SAVE] Get name of a file to save. Parameters like [OPEN] [DIRECTORY] Get name of a directory, with the title of the dialog terminated by [EOS] or {ENTER}
Macro character substitutions:
{ENTER} Carriage Return '\\r' {TAB} Tab '\\011' {ESC} Escape '\\033' {^A} '\\001' ... {^_} '\\031'
Macros are limited to 256 characters after expansion.
— WGNUPLOT.INI —
The Windows text window and the ‘windows‘ terminal will read some of their options from the ‘[WGNUPLOT]‘ section of ‘wgnuplot.ini‘. This file is located in the user’s application data directory. Here’s a sample ‘wgnuplot.ini‘ file:
[WGNUPLOT] TextOrigin=0 0 TextSize=640 150 TextFont=Terminal,9 TextWrap=1 TextLines=400 SysColors=0 GraphOrigin=0 150 GraphSize=640 330 GraphFont=Arial,10 GraphColor=1 GraphToTop=1 GraphDoublebuffer=1 GraphOversampling=0 GraphAntialiasing=1 GraphBackground=255 255 255 Border=0 0 0 0 0 Axis=192 192 192 2 2 Line1=0 0 255 0 0 Line2=0 255 0 0 1 Line3=255 0 0 0 2 Line4=255 0 255 0 3 Line5=0 0 128 0 4
These settings apply to the wgnuplot text-window only."
The ‘TextOrigin‘ and ‘TextSize‘ entries specify the location and size of the text window.
The ‘TextFont‘ entry specifies the text window font and size.
The ‘TextWrap‘ entry selects wrapping of long text lines.
The ‘TextLines‘ entry specifies the number of (unwrapped) lines the internal buffer of the text window can hold. This value currently cannot be changed from within wgnuplot.
See ‘text-menu‘.
The ‘GraphFont‘ entry specifies the font name and size in points.
The five numbers given in the ‘Border‘, ‘Axis‘ and ‘Line‘ entries are the ‘Red‘ intensity (0–255), ‘Green‘ intensity, ‘Blue‘ intensity, ‘Color Linestyle‘ and ‘Mono Linestyle‘. ‘Linestyles‘ are 0=SOLID, 1=DASH, 2=DOT, 3=DASHDOT, 4=DASHDOTDOT. In the sample ‘wgnuplot.ini‘ file above, Line 2 is a green solid line in color mode, or a dashed line in monochrome mode. The default line width is 1 pixel. If ‘Linestyle‘ is negative, it specifies the width of a SOLID line in pixels. Line1 and any linestyle used with the ‘points‘ style must be SOLID with unit width.
See ‘graph-menu‘."
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on April 4, 2012 using texi2html 5.0.