# HG changeset patch # User jwe # Date 785432490 0 # Node ID 16062e9a6b7e5ed44564ba02fec4f6cdc33ea104 # Parent 5d609adc8c28ed479d6bb50fd49d40078e0a9584 [project @ 1994-11-21 15:41:05 by jwe] diff -r 5d609adc8c28 -r 16062e9a6b7e src/pt-plot.cc --- a/src/pt-plot.cc Fri Nov 18 23:26:29 1994 +0000 +++ b/src/pt-plot.cc Mon Nov 21 15:41:30 1994 +0000 @@ -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; } diff -r 5d609adc8c28 -r 16062e9a6b7e src/timefns.cc --- a/src/timefns.cc Fri Nov 18 23:26:29 1994 +0000 +++ b/src/timefns.cc Mon Nov 21 15:41:30 1994 +0000 @@ -32,19 +32,17 @@ #include "systime.h" #include "defun.h" +#ifdef HAVE_SYS_RESOURCE_H +extern "C" +{ #include +} +#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\