Re: Object Graphics v0.3

Bill Denney <[email protected]> Tue, 7 Mar 2006 23:35:44 -0500 (EST)
Newsgroups gmane.comp.gnu.octave.graphics
Message-ID <[email protected]>
On Mon, 6 Mar 2006, Bill Denney wrote:

>> legend object:
>> This is my creation and does not exist in matlab. Of course I am
>> flattered that you like it, but I think you should reconsider whether
>> it should be in the spec.
>
> I think that it makes sense as a separate object because of the fact that it 
> is the only type that I can think of that will be linked to another type.  In 
> other words, it has the special property that it will draw generic lines but 
> not use the line data, so it may have children that are also children of 
> another object.

I've been thinking more about the legend.

I'm thinking that it is like an axis or group and could be removed except 
for the fact that it has the linked objects.  Perhaps we could introduct 
an "Inherits" property for lines, patches, etc that would let all 
properties that are not specified be read from another object?  It could 
be a little tricky, but I think it could work and it could remove the need 
for a legend.

How does that sound?

Bill

-- 
"I guess it just goes to show - even the tiniest amoebic piece of slime
can become the President of the USA if you leave it alone long enough."
   -- http://pgl.yoyo.org/adservers/