Eepic

Note: Legacy terminal (not built by default). The latex, emtex, eepic, and tpic terminals in older versions of gnuplot provided minimal support for graphics styles beyond simple lines and points. They have been directly superseded by the pict2e terminal. For more capable TeX/LaTeX compatible terminal types see cairolatex (p. [*]), context (p. [*]), epslatex (p. [*]), mp (p. [*]), pstricks (p. [*]), and tikz (p. [*]).

The output of this terminal is intended for use with the "eepic.sty" macro package for LaTeX. To use it, you need "eepic.sty", "epic.sty" and a DVI driver that supports the "tpic" 2#2specials. If your driver doesn't support those 2#2specials, "eepicemu.sty" will enable you to use some of them. dvips and dvipdfm do support the "tpic" 2#2specials, pdflatex does not.

Syntax:

  set terminal eepic {default} {color|monochrome|dashed}
                     {rotate} {size XX,YY}
                     {small|tiny|<fontsize>}

color causes gnuplot to produce 2#2color{...} commands so that the graphs are colored. Using this option, you must include 2#2usepackage{color} in the preamble of your latex document.

dashed will allow dashed line types; without this option, only solid lines with varying thickness will be used. dashed and color are mutually exclusive; if color is specified, then dashed will be ignored.

rotate will enable true rotated text (by 90 degrees). Otherwise, rotated text will be typeset with letters stacked above each other. If you use this option you must include 2#2usepackage{graphicx} in the preamble.

small will use 2#2scriptsize symbols as point markers. Default is to use the default math size. tiny uses 2#2scriptscriptstyle symbols.

The default size of an eepic plot is 5x3 inches. You can change this using the size terminal option.

4#4fontsize5#5 is a number which specifies the font size inside the picture environment; the unit is pt (points), i.e., 10 pt equals approx. 3.5 mm. If fontsize is not specified, then all text inside the picture will be set in 2#2footnotesize.

default resets all options to their defaults = no color, no dashed lines, pseudo-rotated (stacked) text, large point symbols.

Notes:

Remember to escape the # character (or other chars meaningful to (La-)TeX) by 2#22#2 (2 backslashes).

It seems that dashed lines become solid lines when the vertices of a plot are too close. (I do not know if that is a general problem with the tpic specials, or if it is caused by a bug in eepic.sty or dvips/dvipdfm.)

Points, among other things, are drawn using the LaTeX commands "2#2Diamond", "2#2Box", etc. These commands no longer belong to the LaTeX2e core; they are included in the latexsym package, which is part of the base distribution and thus part of any LaTeX implementation. Please do not forget to use this package. Instead of latexsym, you can also include the amssymb package.

All drivers for LaTeX offer a special way of controlling text positioning: If any text string begins with '{', you also need to include a '}' at the end of the text, and the whole text will be centered both horizontally and vertically. If the text string begins with '[', you need to follow this with a position specification (up to two out of t,b,l,r), ']{', the text itself, and finally '}'. The text itself may be anything LaTeX can typeset as an LR-box. '2#2rule{}{}'s may help for best positioning.

Examples:

      set term eepic
output graphs as eepic macros inside a picture environment; 2#2input the resulting file in your LaTeX document.
      set term eepic color tiny rotate 8
eepic macros with 2#2color macros, 2#2scripscriptsize point markers, true rotated text, and all text set with 8pt.

About label positioning: Use gnuplot defaults (mostly sensible, but sometimes not really best):

      set title '\LaTeX\ -- $ \gamma $'
Force centering both horizontally and vertically:
      set label '{\LaTeX\ -- $ \gamma $}' at 0,0
Specify own positioning (top here):
      set xlabel '[t]{\LaTeX\ -- $ \gamma $}'
The other label – account for long ticlabels:
      set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}}'