[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60487] wishlist: set unknown property error s
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #60487] wishlist: set unknown property error should name property |
Date: |
Mon, 3 May 2021 07:53:28 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 |
Follow-up Comment #2, bug #60487 (project octave):
so it seems the issues is just when calling set with a property and no value?
h = axes();
set(h, 'foobar')
error: set: unknown property
pulling from the other report that inspired this one, hist permits a string
input for the 2nd argument, and passes it down to bar which calls set thinking
it's a property.
data = [1 1 2 2 2 3 3 4 5 5];
string1 = "A B C D E";
>> hist(data,string1)
error: set: unknown property
error: called from
__bar__>bars at line 349 column 10
__bar__ at line 209 column 12
bar at line 124 column 18
hist at line 237 column 5
but if I supply an invalid property/value pair:
>> hist(data,string1,string2)
error: set: unknown hggroup property A B C D E
error: called from
__bar__>bars at line 349 column 10
__bar__ at line 209 column 12
bar at line 124 column 18
hist at line 237 column 5
is there a rationale for set not providing the error for the first?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60487>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/