bugGNU Octave - Bugs: bug #33077, text properties not inherited from...

 
 

bug #33077: text properties not inherited from axes

Submitted by:  Muhali <muhali>
Submitted on:  Thu 14 Apr 2011 05:51:18 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 16 Apr 2011 02:50:29 PM UTC, comment #5:

I clarified the use a bit more and pushed a changeset.

http://hg.savannah.gnu.org/hgweb/octave/rev/bdf694af4aa5

I'm closing this bug report. If something doesn't look right it can be reopened.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Fri 15 Apr 2011 07:34:31 PM UTC, comment #4:

That is perhaps better, but I am still lost as to why the parent-children thing comes into play here at all.

I guess I am confusing the hierarchical setup in 15.3.1, where text objects are below axes objects, with the parent-children structure.

The objects hierarchy in 15.3.1 is mentioned, but its actual functionality remains unclear.

Muhali <muhali>
Fri 15 Apr 2011 06:26:32 PM UTC, comment #3:

If you can tell me where that is in the documentation, I'll fix it.

If you refer to the documentation for default value ...

It is default values for the named objects that are inherited. Thus, to have the fontname = "Helvetica" inherited for all axes and text objects for figure(1) ...

I suppose a correction is still in order. What about ...

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Fri 15 Apr 2011 05:15:16 PM UTC, comment #2:

thanks.

From the documentation ("they are set in parent objects and apply to child objects") I had assumed that any applicable default property ("fontname") would be inherited by any child ("text").

Muhali <muhali>
Fri 15 Apr 2011 12:12:46 PM UTC, comment #1:

The axes text properties only effect the axes' ticklabels (i.e. they are not intended to be inherited by the axes' children).

To change the default text properties ...

To do the same for the axes ...

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Thu 14 Apr 2011 05:51:18 PM UTC, original submission:

if I understand correctly, from the command

octave> axes("fontname", "Helvetica");

the corresponding property should be inherited by any subsequent text object. But this is not the case:

octave> ht = text(0.5, 0.5, "This is a TEST.");
octave> get(ht, "fontname")
ans = *

M.

Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by muhali (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 16 Apr 2011 02:50:29 PM UTCbpabbottStatusInvalid=>Fixed
      Assigned toNone=>bpabbott
      Open/ClosedOpen=>Closed
    Fri 15 Apr 2011 12:12:46 PM UTCbpabbottStatusNone=>Invalid

    Back to the top


    Powered by Savane 3.1-cleanup1