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

 
 

bug #33077: text properties not inherited from axes

Submitter:  Muhali <muhali>
Submitted:  Thu 14 Apr 2011 05:51:18 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
Fri 15 Apr 2011 07:34:31 PM UTC, comment #4: 


Although default values may be set for any object, they are set in
parent objects and apply to child objects of the specified type.  For example,


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 ...


Object properties have two classes of default values, @dfn{factory
defaults} (the initial values) and @dfn{user-defined defaults}, which
may override the factory defaults.

Although default values may be set for any object, they are set in
parent objects and apply to child objects.  For example,


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) ...


set (1, "defaultaxesfontname", "Helvetica")
set (1, "defaulttextfontname", "Helvetica")


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


Object properties have two classes of default values, @dfn{factory
defaults} (the initial values) and @dfn{user-defined defaults}, which
may override the factory defaults.

Although default values may be set for any object, they are set in
parent objects and apply to child objects of the specified type.  For example,


Ben Abbott <bpabbott>
Group Member
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 ...


set (0, "defaulttextfontname", "Helvetica")


To do the same for the axes ...


set (0, "defaultaxesfontname", "Helvetica")


Ben Abbott <bpabbott>
Group Member
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-04-16 bpabbott StatusInvalid / Not an Octave Bug Fixed
        Assigned toNone bpabbott
        Open/ClosedOpen Closed
    2011-04-15 bpabbott StatusNone Invalid / Not an Octave Bug

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code