[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47904] text() with the wrong sized vector or
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #47904] text() with the wrong sized vector or cell array gives unexpected/weird results |
Date: |
Fri, 13 May 2016 00:06:29 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #4, bug #47904 (project octave):
Can someone run the following code under Matlab and report back?
First test:
x = 1:5;
y = 1:5;
plot (x, y, 'o');
labels1 = {'a', 'b', 'c', 'd'};
text (x,y,labels1)
I believe this will create a 4-row column of labels at every point.
Second test:
clf;
plot (x, y, 'o');
labels2 = {'a', 'b', 'c', 'd', 'e'};
text (x,y,labels2)
I believe this will create a single label at each point.
Third test:
clf;
plot (x, y, 'o');
labels3 = ['a'; 'b'; 'c'; 'd'];
text (x,y,labels3)
No idea what this will do. Maybe it is supposed to error out.
Fourth test:
clf;
plot (x, y, 'o');
labels4 = ['a'; 'b'; 'c'; 'd'; 'e'];
text (x,y,labels4)
I believe thiss will create a single label at each point as in the second
test.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47904>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/