tkcanvas

This terminal driver generates tk canvas widget commands. To use it, rebuild gnuplot (after uncommenting or inserting the appropriate line in "term.h"), then

 gnuplot> set term tkcanvas
 gnuplot> set output 'plot.file'

After invoking "wish", execute the following sequence of tcl commands:

 % source plot.file
 % canvas .c
 % pack .c
 % gnuplot .c

The code generated by gnuplot creates a tcl procedure called "gnuplot" that takes the name of a canvas as its argument. When the procedure is, called, it clears the canvas, finds the size of the canvas and draws the plot in it, scaled to fit.

The current version of tkcanvas supports neither multiplot nor replot.