Mercurial > hg > octave-lyh
changeset 940:16062e9a6b7e
[project @ 1994-11-21 15:41:05 by jwe]
author | jwe |
---|---|
date | Mon, 21 Nov 1994 15:41:30 +0000 |
parents | 5d609adc8c28 |
children | c4827d0fe063 |
files | src/pt-plot.cc src/timefns.cc |
diffstat | 2 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pt-plot.cc +++ b/src/pt-plot.cc @@ -1053,11 +1053,18 @@ Octave_object retval; send_to_plot_stream ("clear\n"); -// This should maybe reset other things too? +// XXX FIXME XXX -- instead of just clearing these things, it would be +// nice if we could reset things to a user-specified default state. send_to_plot_stream ("set title\n"); send_to_plot_stream ("set xlabel\n"); send_to_plot_stream ("set ylabel\n"); + send_to_plot_stream ("set nogrid\n"); + +// This makes a simple `replot' not work after a `clearplot' command +// has been issued. + + plot_line_count = 0; return retval; }
--- a/src/timefns.cc +++ b/src/timefns.cc @@ -32,19 +32,17 @@ #include "systime.h" #include "defun.h" +#ifdef HAVE_SYS_RESOURCE_H +extern "C" +{ #include <sys/resource.h> +} +#endif #ifndef RUSAGE_SELF #define RUSAGE_SELF 0 #endif -#if defined (HAVE_GETRUSAGE) -extern "C" -{ - int getrusage (); -} -#endif - DEFUN ("clock", Fclock, Sclock, 1, 0, "clock (): return current date and time in vector with elements\n\