Mercurial > hg > octave-terminal
changeset 6369:16901a3e5416
[project @ 2007-02-28 22:17:42 by jwe]
author | jwe |
---|---|
date | Wed, 28 Feb 2007 22:18:28 +0000 |
parents | ec2a523713b5 |
children | 6edb00b095a3 |
files | scripts/ChangeLog scripts/plot/__uiobject_draw_axes__.m |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2007-02-28 John W. Eaton <jwe@octave.org> + + * plot/__uiobject_draw_axes__.m: If looking at image data, Don't + increment data_idx unless using gnuplot for display. + 2007-02-28 Daniel J Sebald <daniel.sebald@ieee.org> * plot/__uiobject_draw_axes__.m: Improve calculation of limits for
--- a/scripts/plot/__uiobject_draw_axes__.m +++ b/scripts/plot/__uiobject_draw_axes__.m @@ -249,7 +249,6 @@ if (nd == 0) nd = 2; endif - data_idx++; img_data = obj.cdata; img_colormap = parent_figure_obj.colormap; @@ -258,6 +257,8 @@ if (use_gnuplot_for_images) + data_idx++; + [y_dim, x_dim] = size (img_data(:,:,1)); if (x_dim > 1) dx = abs (img_xdata(2)-img_xdata(1))/(x_dim-1);