[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36156] text (x, y, "Default") -> text object
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #36156] text (x, y, "Default") -> text object with empty string |
Date: |
Thu, 14 Mar 2013 15:45:41 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 |
Follow-up Comment #1, bug #36156 (project octave):
Ben, check Matlab's own documentation
(http://www.mathworks.com/help/matlab/creating_plots/setting-default-property-values.html)
-- CLIP --
Reserved Words
Setting a property value to default, remove, or factory produces the effects
described in the previous sections. To set a property to one of these words
(e.g., a text or uicontrol String property set to the word default), you must
precede the word with the backslash character:
h = uicontrol('Style','edit','String','\default');
-- END CLIP --
Is the correct solution to implement backslash escaping for Octave?
What does Matlab do for
h = text (0.5, 0.5, 'default'); % is string correctly rendered?
set (h, 'string', 'default'); % does this turn string into empty string?
set (h, 'string', '\default'); % does this work like the documentation
says?
% is the '\' character stripped?
close all
h = text (0.5, 0.5, '\default'); % is stripping implemented here as well?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36156>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36156] text (x, y, "Default") -> text object with empty string,
Rik <=
- [Octave-bug-tracker] [bug #36156] text (x, y, "Default") -> text object with empty string, Ben Abbott, 2013/03/14
- [Octave-bug-tracker] [bug #36156] text (x, y, "Default") -> text object with empty string, Rik, 2013/03/14
- [Octave-bug-tracker] [bug #36156] text (x, y, "Default") -> text object with empty string, Rik, 2013/03/14
- [Octave-bug-tracker] [bug #36156] text (x, y, "Default") -> text object with empty string, Michael Godfrey, 2013/03/14
- [Octave-bug-tracker] [bug #36156] text (x, y, "Default") -> text object with empty string, Rik, 2013/03/19