next up previous contents index
Next: Tkcanvas Up: Terminal Previous: Texdraw   Contents   Index


Tgif

Tgif is an X11-based drawing tool -- it has nothing to do with GIF.

The tgif driver supports different pointsizes (with set pointsize), different label fonts and font sizes (e.g. set label "Hallo" at x,y font "Helvetica,34") and multiple graphs on the page. The proportions of the axes are not changed.

Syntax:

     set terminal tgif {portrait | landscape | default} {<[x,y]>}
                       {monochrome | color}
                       {{linewidth | lw} <LW>}
                       {solid | dashed}
                       {font "<fontname>"} {<fontsize>}

where 5#5[x,y]6#6 specifies the number of graphs in the x and y directions on the page, color enables color, linewidth scales all linewidths by 5#5LW6#6, "5#5fontname6#6" is the name of a valid PostScript font, and 5#5fontsize6#6 specifies the size of the PostScript font. defaults sets all options to their defaults: portrait, [1,1], color, linwidth 1.0, dashed, "Helvetica", and 18.

The solid option is usually prefered if lines are colored, as they often are in the editor. Hardcopy will be black-and-white, so dashed should be chosen for that.

Multiplot is implemented in two different ways.

The first multiplot implementation is the standard gnuplot multiplot feature:


     set terminal tgif
     set output "file.obj"
     set multiplot
     set origin x01,y01
     set size  xs,ys
     plot ...
          ...
     set origin x02,y02
     plot ...
     unset multiplot

See set multiplot (p. [*]) for further information.

The second version is the [x,y] option for the driver itself. The advantage of this implementation is that everything is scaled and placed automatically without the need for setting origins and sizes; the graphs keep their natural x/y proportions of 3/2 (or whatever is fixed by set size).

If both multiplot methods are selected, the standard method is chosen and a warning message is given.

Examples of single plots (or standard multiplot):

     set terminal tgif                  # defaults
     set terminal tgif "Times-Roman" 24
     set terminal tgif landscape
     set terminal tgif landscape solid

Examples using the built-in multiplot mechanism:

     set terminal tgif portrait [2,4]  # portrait; 2 plots in the x-
                                       # and 4 in the y-direction
     set terminal tgif [1,2]           # portrait; 1 plot in the x-
                                       # and 2 in the y-direction
     set terminal tgif landscape [3,3] # landscape; 3 plots in both
                                       # directions


next up previous contents index
Next: Tkcanvas Up: Terminal Previous: Texdraw   Contents   Index
Ethan Merritt 2007-03-03