TABLE OF CONTENTS


multiplot::plot

SYNOPSIS

    method plot {args} {

USAGE

 Either:
    $obj plot PLOT_SPECS
 or:
    $obj plot { PLOT_SPECS }

PURPOSE

Add the "plot PLOT_SPECS" snippet to the Gnuplot script and take care of plot and page counters (new page is created when needed and, in this case, plot counter is reset).

For the fully "manual" mode:

      $obj plot PLOT_SPECS

is equivalent to:

      $obj add { plot PLOT_SPECS }

But otherwise, this method takes case of the plot and page count (new pages are created automatically when needed).

EXAMPLE

   $obj plot sin(2*x) w l lw 3 lt 1, cos(x) w l lw 5 lt 3
   $obj plot { 1 + sin(x) + cos(x), exp(x) }

SOURCE

        if { ($plot >= $mp(nx)*$mp(ny)) || ($page == 0 && $plot == 0) } {
            my new_page
        }
        incr plot

        my add [concat plot [my parse_ $args]]
    }