comparison scripts/plot/util/private/__gnuplot_ginput__.m @ 19867:9fc020886ae9

maint: Clean up m-files to follow Octave coding conventions. Try to trim long lines to < 80 chars. Use '##' for single line comments. Use '(...)' around tests for if/elseif/switch/while. Abut cell indexing operator '{' next to variable. Abut array indexing operator '(' next to variable. Use space between negation operator '!' and following expression. Use two newlines between endfunction and start of %!test or %!demo code. Remove unnecessary parens grouping between short-circuit operators. Remove stray extra spaces (typos) between variables and assignment operators. Remove stray extra spaces from ends of lines.
author Rik <rik@octave.org>
date Mon, 23 Feb 2015 14:54:39 -0800
parents 4197fc428c7d
children d9f35ceff9e1
comparison
equal deleted inserted replaced
19866:a1acca0c2216 19867:9fc020886ae9
115 else 115 else
116 str = regexp (str, 'OCTAVE:\s+[-+.\d]+\s+[-+.\d]+\s+\d*', 'match'); 116 str = regexp (str, 'OCTAVE:\s+[-+.\d]+\s+[-+.\d]+\s+\d*', 'match');
117 endif 117 endif
118 fclear (istream); 118 fclear (istream);
119 endwhile 119 endwhile
120 [x(k), y(k), button(k), count] = sscanf (str{end}(8:end), "%f %f %d", "C"); 120 [x(k), y(k), button(k), count] = ...
121 sscanf (str{end}(8:end), "%f %f %d", "C");
121 endif 122 endif
122 123
123 if ([x(k), y(k), button(k)] == [0, 0, -1]) 124 if ([x(k), y(k), button(k)] == [0, 0, -1])
124 ## Mousing not active (no plot yet). 125 ## Mousing not active (no plot yet).
125 break; 126 break;