bugGNU Octave - Bugs: bug #61804, ...

 
 

bug #61804: "TitleFontSizeMultiplier" and "LabelFontSizeMultiplier" properties disabled by "DefaultTextFontSize" property

Submitter:  Rik <rik5>
Submitted:  Thu 13 Jan 2022 12:00:01 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 7.0.90 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 13 Jan 2022 07:20:38 PM UTC, comment #2: 

Thanks Rik. I can confirm that the original problematic code now returns the expected value of 20.

Closing report as fixed.

Pantxo Diribarne <pantxo>
Group Member
Thu 13 Jan 2022 03:30:32 PM UTC, comment #1: 

I fixed this on the stable branch since current behavior is simply an error.  See changeset http://hg.savannah.gnu.org/hgweb/octave/rev/3c4e851e0220

Marking as Ready for Test.

Rik <rik5>
Group administrator
Thu 13 Jan 2022 12:00:01 AM UTC, original submission:  

Sample code to reproduce:


set (groot, 'DefaultAxesTitleFontSizeMultiplier', 2);
set (groot, 'DefaultAxesFontSize', 10);
set (groot, 'DefaultTextFontSize', 12);
hax = gca;
ht = get (hax, 'Title');
get (ht, 'FontSize')


The returned font size should be 20 (2 x 10) but instead is 12.  Matlab gets this right.  It also affects the "LabelFontSizeMultiplier" property.

The "Title" object is of type "text", but it should be initialized with the correct "FontSize" property.  The code in graphics.cc for the function axes::properties::init does the right thing.  There may be a race condition involved or an order of execution issue for the setting of properties.


Rik <rik5>
Group administrator

 

(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 pantxo (Posted a comment)
  • -email is unavailable- added by rik5 (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
    2022-01-13 pantxo StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-01-13 rik5 StatusNone Ready For Test
        Releasedev 7.0.90

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code