Mercurial > hg > octave-nkf
diff scripts/plot/__gnuplot_get_var__.m @ 9099:3a5d41b382ab
__gnuplot_get_var__.m: Correct misleading error messages, and remove dangling/commented code.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 06 Apr 2009 19:33:01 -0400 |
parents | b3268a0458f2 |
children | d0d507cbd123 |
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_get_var__.m +++ b/scripts/plot/__gnuplot_get_var__.m @@ -43,7 +43,7 @@ endif if (numel (ostream) < 1) error ("__gnuplot_get_var__: stream to gnuplot not open"); - elseif (ispc ()) # || true + elseif (ispc ()) if (numel (ostream) == 1) error ("__gnuplot_get_var__: Need mkfifo that is not implemented under Windows"); endif @@ -62,7 +62,7 @@ [err, msg] = mkfifo (gpin_name, 6*8*8); if (err != 0) - error ("__gnuplot_get_var__: Can not open fifo (%s)", msg); + error ("__gnuplot_get_var__: Can not make fifo (%s)", msg); endif endif @@ -82,7 +82,7 @@ fflush (ostream); [gpin, err] = fopen (gpin_name, "r"); if (err != 0) - error ("__gnuplot_get_var__: Can not open fifo (%s)", msg); + error ("__gnuplot_get_var__: Can not open fifo."); endif gp_cmd = sprintf ("\nif (exists(\"%s\")) print %s; else print NaN\n", gp_var_name(1:n), gp_var_name);