## 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 and terminal qt are also supported on Windows.

Syntax:

         set terminal windows {<n>}
                              {color | monochrome}
                              {solid | dashed}
                              {rounded | butt}
                              {enhanced | noenhanced}
                              {font <fontspec>}
                              {fontscale <scale>}
                              {linewidth <scale>}
                              {pointscale <scale>}
                              {background <rgb color>}
                              {title "Plot Window Title"}
                              {{size | wsize} <width>,<height>}
                              {position <x>,<y>}
                              {docked {layout <rows>,<cols>} | standalone}
                              {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. rounded sets line caps and line joins to be rounded; butt is the default, butt caps and mitered joins. enhanced enables enhanced text mode features (subscripts, superscripts and mixed fonts, see enhanced text (p. ) 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, fontscale, pointscale can be used to scale the width of lines, the size of text, or the size of the point symbols. title changes the title of the graph window. size defines the width and height of the window's drawing area in pixels, wsize defines the actual size of the window itself and position defines 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.

docked embeds the graph window in the wgnuplot text window and the size and position options are ignored. Note that docked is not available for console-mode gnuplot. Setting this option changes the default for new windows. The initial default is standalone. The layout option allows to reserve a minimal number of columns and rows for graphs in docked mode. If there are more graphs than fit the given layout, additional rows will be added. Graphs are sorted by the numerical id, filling rows first.

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 (p. ). The windows terminal supports data exchange with other programs via clipboard and EMF files, see graph-menu (p. ). You can also use the terminal emf to create EMF files.

Subsections

- Graph-menu
- Printing
- Text-menu
- Wgnuplot.mnu
- Wgnuplot.ini