# HG changeset patch # User Ben Abbott # Date 1239060781 14400 # Node ID 3a5d41b382abf2e63736f909923f253922f4de56 # Parent 5ecdb3d3568fe46a4720392d132371cb961e0fc2 __gnuplot_get_var__.m: Correct misleading error messages, and remove dangling/commented code. diff -r 5ecdb3d3568f -r 3a5d41b382ab scripts/ChangeLog --- a/scripts/ChangeLog Mon Apr 06 18:57:42 2009 -0400 +++ b/scripts/ChangeLog Mon Apr 06 19:33:01 2009 -0400 @@ -1,5 +1,7 @@ 2009-04-06 Ben Abbott + * plot/__gnuplot_get_var__.m: Correct misleading error messages, and + remove dangling/commented code. * plot/__gnuplot_default_font__.m: Remove file from archive. * plot/__go_draw_axes__.m, plot/__go_draw_figure__.m: Allow fontsize to be specified for all terminals with fontname == "*". diff -r 5ecdb3d3568f -r 3a5d41b382ab scripts/plot/__gnuplot_get_var__.m --- a/scripts/plot/__gnuplot_get_var__.m Mon Apr 06 18:57:42 2009 -0400 +++ b/scripts/plot/__gnuplot_get_var__.m Mon Apr 06 19:33:01 2009 -0400 @@ -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);