octave-bug-tracker
[Top][All Lists]
Advanced

[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: Mike Miller
Subject: [Octave-bug-tracker] [bug #47904] text() with the wrong sized vector or cell array gives unexpected/weird results
Date: Thu, 12 May 2016 02:54:03 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Update of bug #47904 (project octave):

              Item Group:                   Other => Matlab Compatibility   
                  Status:                    None => Need Info              
        Operating System:       Microsoft Windows => Any                    

    _______________________________________________________

Follow-up Comment #1:

Confirming the combinatorial problem when the number of (x,y) points does not
match the number of text strings.

On my laptop with Debian:


ttext = 500x2 char label data. Time: 1.616
ttext = 500x1 cell label data. Time: 1.611
ttext = 499x2 char label data. Time: 1.557
ttext = 499x1 cell label data. Time: 4.550


I think we can consider it a known issue that plotting performance on Windows
is not ideal, I'd call that a separate issue than the one of mismatching text
arguments.

I don't know if this is avoidable, the Matlab help is (as usual) ambiguous.
They definitely show that a single point with a cell array of strings is
interpreted as multiple lines of text. And a cell array with multiple points
is interpreted as a different label for each point. But they do not give the
example of say, 3 (x,y) coordinates and a cell array of length 2. I'd like to
think that would be an error.

Anyone with Matlab care to test?

https://www.mathworks.com/help/matlab/ref/text.html

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47904>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]