Mercurial > jwe > octave
changeset 20723:7581021c5ca3
rgbplot.m: adjust xlim after plotting color profile.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Thu, 19 Nov 2015 17:05:36 +0000 |
parents | b76162d57ead |
children | 0338dc274ec5 |
files | scripts/image/rgbplot.m |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/rgbplot.m Thu Nov 19 08:46:31 2015 -0800 +++ b/scripts/image/rgbplot.m Thu Nov 19 17:05:36 2015 +0000 @@ -59,7 +59,8 @@ switch (tolower (style)) case "profile" htmp = plot (cmap(:,1),"r", cmap(:,2),"g", cmap(:,3),"b"); - set (gca, 'ytick', 0:0.1:1); + set (gca (), 'ytick', 0:0.1:1); + set (gca (), 'xlim', [0 rows(cmap)]); case "composite" htmp = image (1:rows(cmap)); set (gca, 'ytick', []);