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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52641] Changing legend "displayname" property


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #52641] Changing legend "displayname" property to empty string "" leads to printing an error
Date: Tue, 12 Dec 2017 16:58:47 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #10, bug #52641 (project octave):

So the rule then is that if there is no name associated with a graphics object
on the plot that it makes little sense to include it in the key?  That would
be consistent with the current behavior of __getlegenddata__ which exclude
entries with empty strings.  I can see that as being the rule; it might be
worth adding such language to "help legend" or wherever "displayname" is
discussed, i.e., empty strings in the list exclude associated graphics items
from the key.

The change you've made can't be done using "UserData" in the manner it does. 
"UserData" is reserved for use only by users, hence its name.  A lot of times
when users program a GUI, they may use the UserData as a place to store
flow-state, button settings, etc.  In the case of a legend, what's to store? 
Don't know, previous settings?  Whatever the programmer can dream of I
suppose.  UserData should be a default of [] and only left up to the external
script programmer to manage.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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