Mercurial > octave
changeset 21800:0eefa882bcc7
Restore matrix width variable taken out by changeset ddd00394d4fe.
* __gnuplot_draw_axes__.m: Restore N_tup but place in the flat_interp_edge
test used to configure color column info. Use N_tup to pre-assign full zz
matrix rather than extend columns.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Wed, 01 Jun 2016 18:24:52 -0500 |
parents | ddd00394d4fe |
children | 4acfe6a99a9f |
files | scripts/plot/util/private/__gnuplot_draw_axes__.m |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Wed Jun 01 15:36:52 2016 -0500 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Wed Jun 01 18:24:52 2016 -0500 @@ -1209,6 +1209,7 @@ if (flat_interp_edge) scmd = "palette"; ccol = ":($4)"; + N_tup = 4; else if (__gnuplot_has_feature__ ("linetype")) scmd = "linetype"; @@ -1216,6 +1217,7 @@ scmd = "linestyle"; endif ccol = ""; + N_tup = 3; endif [style, sidx] = do_linestyle_command (obj, obj.edgecolor, @@ -1239,7 +1241,7 @@ if (np <= num_cols) k = np; yrec = ylen; - zz = zeros (ylen, 1); + zz = zeros (ylen, N_tup); zz(:,1) = xdat(:,k); zz(:,2) = ydat(:,k); zz(:,3) = zdat(:,k); @@ -1249,7 +1251,7 @@ else j = np - num_cols; yrec = xlen; - zz = zeros (xlen, 1); + zz = zeros (xlen, N_tup); zz(:,1) = xdat(j,:)'; zz(:,2) = ydat(j,:)'; zz(:,3) = zdat(j,:)';