Mercurial > hg > octave-nkf
diff scripts/plot/__gnuplot_version__.m @ 7716:9c15f385811c
__gnuplot_version__: use newline at end of message
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 16 Apr 2008 15:15:26 -0400 |
parents | 83ea845cda36 |
children | 7d6e659acc1a 7cc783e52ddb |
line wrap: on
line diff
--- a/scripts/plot/__gnuplot_version__.m +++ b/scripts/plot/__gnuplot_version__.m @@ -29,7 +29,11 @@ if (isempty (__version__)) [status, output] = system (sprintf ("%s --version", gnuplot_binary ())); if (status != 0) - error ("you must have gnuplot installed to display graphics; if you have gnuplot installed in a non-standard location, see the 'gnuplot_binary' function"); + ## This message ends in a newline so that the traceback messages + ## are skipped and people might actually see the message, read it, + ## comprehend it, actually take the advice it gives, and stop + ## asking us why plotting fails when gnuplot is not found. + error ("you must have gnuplot installed to display graphics; if you have gnuplot installed in a non-standard location, see the 'gnuplot_binary' function\n"); endif pattern = "^[^\\s]*\\s*([0-9]+\\.[0-9]+)\\s*[^\\s]*\\s*([^\\s]*)"; [d1, d2, d3, d4, matches] = regexp (output, pattern);