diff src/pt-plot.cc @ 2289:d9fe34ccf2bf

[project @ 1996-06-06 05:05:47 by jwe]
author jwe
date Thu, 06 Jun 1996 05:09:24 +0000
parents 71aef7b5339e
children 5a3f1d00a474
line wrap: on
line diff
--- a/src/pt-plot.cc	Wed Jun 05 23:21:52 1996 +0000
+++ b/src/pt-plot.cc	Thu Jun 06 05:09:24 1996 +0000
@@ -69,6 +69,9 @@
 // The name of the shell command to execute to start gnuplot.
 static string Vgnuplot_binary;
 
+// TRUE if gnuplot appears to support multiple plot windows with X11.
+static bool Vgnuplot_has_frames;
+
 // TRUE if gnuplot appears to support multiplot.
 static bool Vgnuplot_has_multiplot;
 
@@ -1085,6 +1088,14 @@
 }
 
 static int
+gnuplot_has_frames (void)
+{
+  Vgnuplot_has_frames = check_preference ("gnuplot_has_frames");
+
+  return 0;
+}
+
+static int
 gnuplot_has_multiplot (void)
 {
   Vgnuplot_has_multiplot = check_preference ("gnuplot_has_multiplot");
@@ -1101,6 +1112,15 @@
   DEFVAR (gnuplot_binary, "gnuplot", 0, gnuplot_binary,
     "path to gnuplot binary");
 
+#ifdef GNUPLOT_HAS_FRAMES
+  double with_frames = 1.0;
+#else
+  double with_frames = 0.0;
+#endif
+
+  DEFVAR (gnuplot_has_frames, with_frames, 0, gnuplot_has_frames,
+    "true if gnuplot supports multiple plot windows on X11, false otherwise");
+
 #ifdef GNUPLOT_HAS_MULTIPLOT
   double with_multiplot = 1.0;
 #else