Mercurial > hg > octave-nkf
changeset 1502:75e9ce7a1ce2
[project @ 1995-10-03 00:55:47 by jwe]
author | jwe |
---|---|
date | Tue, 03 Oct 1995 00:58:06 +0000 |
parents | a0ee25989b08 |
children | a49a80c912db |
files | src/user-prefs.cc src/user-prefs.h src/variables.cc |
diffstat | 3 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/user-prefs.cc +++ b/src/user-prefs.cc @@ -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?
--- a/src/user-prefs.h +++ b/src/user-prefs.h @@ -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);
--- a/src/variables.cc +++ b/src/variables.cc @@ -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)");