Mercurial > hg > octave-nkf
comparison scripts/plot/__gnuplot_get_var__.m @ 11588:d5bd2766c640
style fixes for warning and error messages in script files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:51:13 -0500 |
parents | fd0a3ac60b0e |
children |
comparison
equal
deleted
inserted
replaced
11587:c792872f8942 | 11588:d5bd2766c640 |
---|---|
88 if (err != 0) | 88 if (err != 0) |
89 ## Try a second time, and then give an error. | 89 ## Try a second time, and then give an error. |
90 [gpin, err] = fopen (gpin_name, "r"); | 90 [gpin, err] = fopen (gpin_name, "r"); |
91 endif | 91 endif |
92 if (err != 0) | 92 if (err != 0) |
93 error ("__gnuplot_get_var__: Can not open fifo."); | 93 error ("__gnuplot_get_var__: can not open fifo"); |
94 endif | 94 endif |
95 gp_cmd = sprintf ("\nif (exists(\"%s\")) print %s; else print NaN\n", | 95 gp_cmd = sprintf ("\nif (exists(\"%s\")) print %s; else print NaN\n", |
96 gp_var_name(1:n), gp_var_name); | 96 gp_var_name(1:n), gp_var_name); |
97 fputs (ostream, gp_cmd); | 97 fputs (ostream, gp_cmd); |
98 | 98 |