bugGNU Octave - Bugs: bug #40334, printing a plot with legend fails,...

 
 

bug #40334: printing a plot with legend fails, if setting fontsize

Submitted by:  Stefan Mahr <dac922>
Submitted on:  Mon 21 Oct 2013 07:17:35 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 22 Oct 2013 01:35:41 PM UTC, comment #5:

The callback for the fontsize property on legends has to re-create the legend object entirely. This means the existing graphic objects get destroyed.

I pushed more of a complete hack here (http://hg.savannah.gnu.org/hgweb/octave/rev/132d9f543cc5).

Rik <rik5>
Project Administrator
Tue 22 Oct 2013 12:23:05 PM UTC, comment #4:

I tried to debug this and surrounded print.m:409:

and run the script

Why is the handle for the legend text no longer a handle after a call to set?

Andreas Weber <andy1978>
Project Member
Tue 22 Oct 2013 11:25:32 AM UTC, comment #3:

still fails with default 5b0036d89d4a (after e477578fca3d), fltk and gnuplot backend.

Andreas Weber <andy1978>
Project Member
Tue 22 Oct 2013 08:52:32 AM UTC, comment #2:

The bug is not fixed for me. It's just fixed for the first try, but for the second plot it still occurs.

Stefan Mahr <dac922>
Tue 22 Oct 2013 05:46:50 AM UTC, comment #1:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/e477578fca3d). This will be a part of the 3.8 release due out in a few weeks.

Rik <rik5>
Project Administrator
Mon 21 Oct 2013 07:17:35 PM UTC, original submission:

title, xlabel, ylabel and text are working fine, only using legend triggers this bug.

Both, gnuplot and fltk toolkit are affected.

Stefan Mahr <dac922>

 

(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 andy1978 (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by dac922 (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Oct 2013 01:35:41 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 22 Oct 2013 11:25:32 AM UTCandy1978Item GroupNone=>Regression
      StatusFixed=>Confirmed
      Open/ClosedClosed=>Open
    Tue 22 Oct 2013 05:46:50 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup