Mercurial > hg > octave-lojdl
changeset 14249:27abe77158d6
Changes to allow plot demos to be converted and run by Matlab.
* text.m, waitbar.m
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 22 Jan 2012 13:47:15 -0500 |
parents | 48cb466f1418 |
children | 14d602c4f6e8 4e6436a60b62 |
files | scripts/plot/text.m scripts/plot/waitbar.m |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/text.m +++ b/scripts/plot/text.m @@ -131,7 +131,8 @@ %! clf; %! ha = {'left', 'center', 'right'}; %! va = {'bottom', 'middle', 'top'}; -%! x = y = [0.25 0.5 0.75]; +%! x = [0.25 0.5 0.75]; +%! y = x; %! for t = 0:30:359; %! for nh = 1:numel(ha) %! for nv = 1:numel(va)
--- a/scripts/plot/waitbar.m +++ b/scripts/plot/waitbar.m @@ -167,7 +167,7 @@ %! h1 = waitbar (0, 'Waitbar #1'); %! h2 = waitbar (0, 'Waitbar #2'); %! h2pos = get (h2, 'position'); -%! h2pos(1) += (h2pos(3) + 50); +%! h2pos(1) = h2pos(1) + (h2pos(3) + 50); %! set (h2, 'position', h2pos); %! pause (0.5); %! for i = 1:4