Mercurial > octave
changeset 22682:05308824fbcf
Use 'NaN' consistently rather than 'nan' in scripts/ directory.
* strread.m, __gnuplot_draw_axes__.m, lscov.m:
Use 'NaN' rather than 'nan'.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 27 Oct 2016 16:03:49 -0700 |
parents | cef19bf07f26 |
children | 340e37fd3c20 |
files | scripts/io/strread.m scripts/plot/util/private/__gnuplot_draw_axes__.m scripts/statistics/base/lscov.m |
diffstat | 3 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/io/strread.m Thu Oct 27 15:54:49 2016 -0700 +++ b/scripts/io/strread.m Thu Oct 27 16:03:49 2016 -0700 @@ -174,7 +174,7 @@ ## ## @table @asis ## @item last character = @qcode{"@xbackslashchar{}n"} -## Data columns are padded with empty fields or Nan so that all columns have +## Data columns are padded with empty fields or NaN so that all columns have ## equal length ## ## @item last character is not @qcode{"@xbackslashchar{}n"}
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Thu Oct 27 15:54:49 2016 -0700 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Thu Oct 27 16:03:49 2016 -0700 @@ -629,7 +629,7 @@ obj.displayname = tmpdispname; if (! isempty (findobj (obj.parent, "-property", "format", "-depth", 0))) # Place phantom errorbar data for legend - data{data_idx} = nan (4,1); + data{data_idx} = NaN (4,1); usingclause{data_idx} = sprintf ("record=1 using ($1):($2):($3):($4)"); switch (get (obj.parent, "format")) case {"box" "boxy" "boxxy"} @@ -647,7 +647,7 @@ errbars, sidx(1)); else ## Place phantom stemseries data for legend - data{data_idx} = nan (2,1); + data{data_idx} = NaN (2,1); usingclause{data_idx} = sprintf ("record=1 using ($1):($2)"); hgobj = get (obj.parent); [hgstyle, hgsidx] = do_linestyle_command (hgobj, hgobj.color, data_idx, @@ -1208,7 +1208,7 @@ __maybe_munge_text__ (enhanced, obj, "displayname") ); titlespec{data_idx} = ['title "' tmp '"']; - data{data_idx} = nan (3,1); + data{data_idx} = NaN (3,1); usingclause{data_idx} = sprintf ("record=1 using ($1):($2):($3)"); withclause{data_idx} = sprintf ("with line linewidth 10 linecolor rgb \"#%02x%02x%02x\"", round (255*cmap(end/2,:)));