diff scripts/plot/__gnuplot_get_var__.m @ 9107:d0d507cbd123

Improvements to printing functionality.
author Ben Abbott <bpabbott@mac.com>
date Fri, 10 Apr 2009 12:11:14 -0400
parents 3a5d41b382ab
children 4bb94a71913b
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_get_var__.m
+++ b/scripts/plot/__gnuplot_get_var__.m
@@ -82,6 +82,10 @@
       fflush (ostream);
       [gpin, err] = fopen (gpin_name, "r");
       if (err != 0)
+        ## Try a second time, and then give an error.
+        [gpin, err] = fopen (gpin_name, "r");
+      endif
+      if (err != 0)
         error ("__gnuplot_get_var__: Can not open fifo.");
       endif
       gp_cmd = sprintf ("\nif (exists(\"%s\")) print %s; else print NaN\n",