bugGNU Octave - Bugs: bug #38265, OpenGL: changing legend fontsize...


bug #38265: OpenGL: changing legend fontsize has no effect

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Tue Feb 5 14:13:26 2013  
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Thu Jun 6 16:19:12 2013, comment #10:

Works for me now. Thanks Ben. Closing report.

Rik <rik5>
Project Administrator
Thu Jun 6 05:16:59 2013, comment #9:

I've pushed a changeset that works for me.


To test, run the first demo.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Fri May 17 00:20:09 2013, comment #8:

I'm leaving this assigned to me, but only to make it difficult for me for forget about it. If someone else is inclined to work on this, please go ahead.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Wed Feb 6 17:26:09 2013, comment #7:

I think I'm wrong in my comment below. The legend's box size is determined by the text objects extents in legend.m

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Wed Feb 6 17:12:14 2013, comment #6:

I don't know where, but the updating the of axes box is done on the c++ side. Meanwhile there are no listeners on the c++ side.

Either the updater for the axes box needs to be changed to accommodate a change in fontsize, or we might try something kludgy (add a listener) in legend.m with a listener that triggers the updater on the c++ side to act.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Wed Feb 6 16:39:29 2013, comment #5:

Do we also need a listener that updates the box size when the fontsize changes? Using the first demonstration code the font size is correctly updated, but it now extends beyond the legend box. See the attached jpeg.

(file #27404)

Rik <rik5>
Project Administrator
Wed Feb 6 15:08:00 2013, comment #4:


Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Tue Feb 5 16:08:30 2013, comment #3:

I've attached a changeset which addresses this bug and 38263

(file #27394)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Tue Feb 5 15:29:37 2013, comment #2:

I took a quick look at legend.m and found that the fix is easy. We had neglected to add a listener for the legend's fontsize property.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Tue Feb 5 14:46:34 2013, comment #1:

Changing the fontsize property on individual text objects works:

The opposite behaviour occurs with GNUPLOT (changing fontsize works on the legend object, but not on its text children).

Julien Bect <jbect>
Tue Feb 5 14:13:26 2013, original submission:
Ben Abbott <bpabbott>
Project MemberIn charge of this item.


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

Attach File(s):

Attached Files
file #27404:  fontsize_tst.jpg added by rik5 (26kB - image/jpeg)
file #27394:  changeset.patch added by bpabbott (2kB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by jbect (Posted a comment)
  • -unavailable- added by bpabbott (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 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Jun 6 16:19:12 2013rik5StatusReady For Test=>Fixed
    Thu Jun 6 05:16:59 2013bpabbottStatusNone=>Ready For Test
    Fri May 17 00:20:09 2013bpabbottStatusReady For Test=>None
    Wed Feb 6 16:39:29 2013rik5Attached File-=>Added fontsize_tst.jpg, #27404
    Wed Feb 6 15:08:00 2013bpabbottStatusPatch Submitted=>Ready For Test
    Tue Feb 5 16:08:49 2013bpabbottStatusNone=>Patch Submitted
      Assigned toNone=>bpabbott
    Tue Feb 5 16:08:30 2013bpabbottAttached File-=>Added changeset.patch, #27394

    Back to the top

    Powered by Savane 3.1-cleanup1