Mercurial > hg > octave-nkf
diff scripts/plot/draw/private/__contour__.m @ 20038: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 | 70e8801a56f7 |
line wrap: on
line diff
--- a/scripts/plot/draw/private/__contour__.m +++ b/scripts/plot/draw/private/__contour__.m @@ -89,7 +89,7 @@ if (isscalar (vn)) ## FIXME: The levels should be determined similarly to {x,y,z}ticks ## so that they aren't set at extremely odd values. - lvl = linspace (min (z1(!isinf (z1))), max (z1(!isinf (z1))), vn + 2); + lvl = linspace (min (z1(! isinf (z1))), max (z1(! isinf (z1))), vn + 2); ## Strip off max outlier, min must stay for contourf hole algorithm. lvl = lvl(1:end-1); else @@ -446,7 +446,7 @@ z = get (h, "zdata"); ## FIXME: The levels should be determined similarly to {x,y,z}ticks ## so that they aren't set at extremely odd values. - lvl = linspace (min (z(!isinf (z))), max (z(!isinf (z))), 10 + 2); + lvl = linspace (min (z(! isinf (z))), max (z(! isinf (z))), 10 + 2); ## Strip off max outlier, min must stay for contourf hole algorithm. lvl = lvl(1:end-1); endif