Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
4232:b032ebd54586 | 4233:ccfdb55c8156 |
---|---|
1029 @deftypefn {Built-in Function} {} ishold\n\ | 1029 @deftypefn {Built-in Function} {} ishold\n\ |
1030 Return 1 if the next line will be added to the current plot, or 0 if\n\ | 1030 Return 1 if the next line will be added to the current plot, or 0 if\n\ |
1031 the plot device will be cleared before drawing the next line.\n\ | 1031 the plot device will be cleared before drawing the next line.\n\ |
1032 @end deftypefn") | 1032 @end deftypefn") |
1033 { | 1033 { |
1034 return static_cast<double> (! clear_before_plotting); | 1034 return octave_value (! clear_before_plotting); |
1035 } | 1035 } |
1036 | 1036 |
1037 DEFUN (purge_tmp_files, , , | 1037 DEFUN (purge_tmp_files, , , |
1038 "-*- texinfo -*-\n\ | 1038 "-*- texinfo -*-\n\ |
1039 @deftypefn {Built-in Function} {} purge_tmp_files\n\ | 1039 @deftypefn {Built-in Function} {} purge_tmp_files\n\ |
1281 } | 1281 } |
1282 | 1282 |
1283 void | 1283 void |
1284 symbols_of_pt_plot (void) | 1284 symbols_of_pt_plot (void) |
1285 { | 1285 { |
1286 DEFVAR (automatic_replot, 0.0, automatic_replot, | 1286 DEFVAR (automatic_replot, false, automatic_replot, |
1287 "-*- texinfo -*-\n\ | 1287 "-*- texinfo -*-\n\ |
1288 @defvr {Built-in Variable} automatic_replot\n\ | 1288 @defvr {Built-in Variable} automatic_replot\n\ |
1289 You can tell Octave to redisplay the plot each time anything about it\n\ | 1289 You can tell Octave to redisplay the plot each time anything about it\n\ |
1290 changes by setting the value of the builtin variable\n\ | 1290 changes by setting the value of the builtin variable\n\ |
1291 @code{automatic_replot} to a nonzero value. Since this is fairly\n\ | 1291 @code{automatic_replot} to a nonzero value. Since this is fairly\n\ |
1338 "-*- texinfo -*-\n\ | 1338 "-*- texinfo -*-\n\ |
1339 @defvr {Built-in Variable} gnuplot_command_end\n\ | 1339 @defvr {Built-in Variable} gnuplot_command_end\n\ |
1340 @end defvr"); | 1340 @end defvr"); |
1341 | 1341 |
1342 #if defined (GNUPLOT_HAS_FRAMES) | 1342 #if defined (GNUPLOT_HAS_FRAMES) |
1343 double with_frames = 1.0; | 1343 bool with_frames = true; |
1344 #else | 1344 #else |
1345 double with_frames = 0.0; | 1345 bool with_frames = false; |
1346 #endif | 1346 #endif |
1347 | 1347 |
1348 DEFVAR (gnuplot_has_frames, with_frames, gnuplot_has_frames, | 1348 DEFVAR (gnuplot_has_frames, with_frames, gnuplot_has_frames, |
1349 "-*- texinfo -*-\n\ | 1349 "-*- texinfo -*-\n\ |
1350 @defvr {Built-in Variable} gnuplot_has_frames\n\ | 1350 @defvr {Built-in Variable} gnuplot_has_frames\n\ |
1354 can be changed in your startup script or at the command line in case\n\ | 1354 can be changed in your startup script or at the command line in case\n\ |
1355 configure got it wrong, or if you upgrade your gnuplot installation.\n\ | 1355 configure got it wrong, or if you upgrade your gnuplot installation.\n\ |
1356 @end defvr"); | 1356 @end defvr"); |
1357 | 1357 |
1358 #if defined (GNUPLOT_HAS_MULTIPLOT) | 1358 #if defined (GNUPLOT_HAS_MULTIPLOT) |
1359 double with_multiplot = 1.0; | 1359 bool with_multiplot = true; |
1360 #else | 1360 #else |
1361 double with_multiplot = 0.0; | 1361 bool with_multiplot = false; |
1362 #endif | 1362 #endif |
1363 | 1363 |
1364 DEFVAR (gnuplot_has_multiplot, with_multiplot, gnuplot_has_multiplot, | 1364 DEFVAR (gnuplot_has_multiplot, with_multiplot, gnuplot_has_multiplot, |
1365 "-*- texinfo -*-\n\ | 1365 "-*- texinfo -*-\n\ |
1366 @defvr {Built-in Variable} gnuplot_has_multiplot\n\ | 1366 @defvr {Built-in Variable} gnuplot_has_multiplot\n\ |