Mercurial > octave-nkf
diff src/pt-plot.cc @ 4233:ccfdb55c8156
[project @ 2002-12-20 22:43:54 by jwe]
author | jwe |
---|---|
date | Fri, 20 Dec 2002 22:43:55 +0000 |
parents | 23d06c9e1edd |
children | bdaa0d3dfc0b |
line wrap: on
line diff
--- a/src/pt-plot.cc Fri Dec 20 01:17:19 2002 +0000 +++ b/src/pt-plot.cc Fri Dec 20 22:43:55 2002 +0000 @@ -1031,7 +1031,7 @@ the plot device will be cleared before drawing the next line.\n\ @end deftypefn") { - return static_cast<double> (! clear_before_plotting); + return octave_value (! clear_before_plotting); } DEFUN (purge_tmp_files, , , @@ -1283,7 +1283,7 @@ void symbols_of_pt_plot (void) { - DEFVAR (automatic_replot, 0.0, automatic_replot, + DEFVAR (automatic_replot, false, automatic_replot, "-*- texinfo -*-\n\ @defvr {Built-in Variable} automatic_replot\n\ You can tell Octave to redisplay the plot each time anything about it\n\ @@ -1340,9 +1340,9 @@ @end defvr"); #if defined (GNUPLOT_HAS_FRAMES) - double with_frames = 1.0; + bool with_frames = true; #else - double with_frames = 0.0; + bool with_frames = false; #endif DEFVAR (gnuplot_has_frames, with_frames, gnuplot_has_frames, @@ -1356,9 +1356,9 @@ @end defvr"); #if defined (GNUPLOT_HAS_MULTIPLOT) - double with_multiplot = 1.0; + bool with_multiplot = true; #else - double with_multiplot = 0.0; + bool with_multiplot = false; #endif DEFVAR (gnuplot_has_multiplot, with_multiplot, gnuplot_has_multiplot,