TABLE OF CONTENTS


::pwtk::gp::multiplot

DERIVED FROM

::pwtk::gp::plot

PURPOSE

A class for creating multiplot Gnuplot objects, i.e., objects for creating Gnuplot plots in a multiplot mode (for single plots, see the ::pwtk::gp::plot class). It is derived from the ::pwtk::gp::plot class, implying that the methods of ::pwtk::gp::plot can be used.

HOW TO USE

The 'multiplot' Gnuplot object is created as:

      set obj [::pwtk::gp::multiplot new ?OPTIONS? auto NPLOTS ?NPMAX? ?NX?  ?HEAD.TERM?]

or:

      set obj [::pwtk::gp::multiplot new ?OPTIONS? manual PP NX NY  ?HEAD.TERM?]

SEE ALSO

For further details, see: multiplot::constructor

EXAMPLE

   # create with Gnuplot a PDF of sin(x) and cos(x) functions on p.1
   # and tan(x) and exp(x) on p.2

   set obj [pwtk::gp::multiplot new manual 2 2 1 multiplot.pdf]

   $obj options {
          xlabel {'x'}
          ylabel {'f(x)'}
          xzeroaxis {lt -1}
   }

   $obj plot {[-pi:pi] sin(x)}
   $obj plot {[-pi:pi] cos(x)}
   
   $obj new_page

   # in "manual" mode, plot can be done also via the "add" method
   $obj add {
          plot [-pi:pi] tan(x)
          plot [-pi:pi] exp(x)
   }
   $obj exec; # this executes Gnuplot and creates multiplot.pdf file