# HG changeset patch # User jwe # Date 812681886 0 # Node ID 75e9ce7a1ce250c0f57156ae2849eff001c8892c # Parent a0ee25989b08e606636b26c100a15339781ecf02 [project @ 1995-10-03 00:55:47 by jwe] diff -r a0ee25989b08 -r 75e9ce7a1ce2 src/user-prefs.cc --- a/src/user-prefs.cc Tue Oct 03 00:29:13 1995 +0000 +++ b/src/user-prefs.cc Tue Oct 03 00:58:06 1995 +0000 @@ -49,6 +49,7 @@ user_pref.define_all_return_values = 0; user_pref.do_fortran_indexing = 0; user_pref.empty_list_elements_ok = 0; + user_pref.gnuplot_has_multiplot = 0; user_pref.ignore_function_time_stamp = 0; user_pref.implicit_str_to_num_ok = 0; user_pref.ok_to_lose_imaginary_part = 0; @@ -186,6 +187,18 @@ } +// Does gnuplot appear to support multiplot? + +int +gnuplot_has_multiplot (void) +{ + user_pref.gnuplot_has_multiplot = + check_str_pref ("gnuplot_has_multiplot"); + + return 0; +} + + // Should Octave always check to see if function files have changed // since they were last compiled? diff -r a0ee25989b08 -r 75e9ce7a1ce2 src/user-prefs.h --- a/src/user-prefs.h Tue Oct 03 00:29:13 1995 +0000 +++ b/src/user-prefs.h Tue Oct 03 00:58:06 1995 +0000 @@ -31,6 +31,7 @@ int define_all_return_values; int do_fortran_indexing; int empty_list_elements_ok; + int gnuplot_supports_multiplot; int ignore_function_time_stamp; int implicit_str_to_num_ok; int ok_to_lose_imaginary_part; @@ -81,6 +82,7 @@ extern int define_all_return_values (void); extern int do_fortran_indexing (void); extern int empty_list_elements_ok (void); +extern int gnuplot_supports_multiplot (void); extern int ignore_function_time_stamp (void); extern int implicit_str_to_num_ok (void); extern int ok_to_lose_imaginary_part (void); diff -r a0ee25989b08 -r 75e9ce7a1ce2 src/variables.cc --- a/src/variables.cc Tue Oct 03 00:29:13 1995 +0000 +++ b/src/variables.cc Tue Oct 03 00:58:06 1995 +0000 @@ -1672,6 +1672,16 @@ sv_gnuplot_binary, "path to gnuplot binary"); +#ifdef GNUPLOT_HAS_MULTIPLOT + double gnuplot_has_multiplot = "true"; +#else + double gnuplot_has_multiplot = "false"; +#endif + + DEFVAR ("gnuplot_has_multiplot", SBV_gnuplot_has_multiplot, + gnuplot_has_multiplot, 0, gnuplot_has_multiplot, + "true if gnuplot supports multiplot, false otherwise"); + DEFCONST ("i", SBV_i, Complex (0.0, 1.0), 1, 0, "sqrt (-1)");