[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60187] Invalid warning from text.m about char
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #60187] Invalid warning from text.m about character matrices |
Date: |
Sat, 6 Mar 2021 17:18:46 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<https://savannah.gnu.org/bugs/?60187>
Summary: Invalid warning from text.m about character matrices
Project: GNU Octave
Submitted by: philipnienhuis
Submitted on: Sat 06 Mar 2021 11:18:44 PM CET
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name: Philip Nienhuis
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
(some more spin-off from patch #9985)
>> help text
'text' is a variable
-- text (X, Y, STRING)
-- text (X, Y, Z, STRING)
-- text (..., PROP, VAL, ...)
-- text (HAX, ...)
-- H = text (...)
Create a text object with text STRING at position X, Y, (Z) on the
current axes.
Multiple locations can be specified if X, Y, (Z) are vectors. Multiple
strings can be specified with a character matrix or a cell array of strings.
Now do the following:
>> plot (sin ([0:10]))
>> tt = repmat ('abc', 3, 1)
tt =
abc
abc
abc
>> text (5, 0.5, tt)
warning: multi-row character matrix converted to a string, only the first row
is used
warning: called from
__plt_get_axis_arg__ at line 52 column 12
text at line 93 column 27
and then the above warning:
* is at variance with text's own help text which explicitly mentions
'character matrix'
* 'only the first row is used' is at variance with the attached pic where all
three rows of character matrix 'tt' show up.
Provisionally OS set to 'Windows' but I expect to see it on other platforms as
well.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 06 Mar 2021 11:18:44 PM CET Name: text.m_bug.png Size: 27KiB By:
philipnienhuis
<http://savannah.gnu.org/bugs/download.php?file_id=51015>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60187>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60187] Invalid warning from text.m about character matrices,
Philip Nienhuis <=