bugGNU Octave - Bugs: bug #42035, legend (hax, ...) doesn't work for...

 
 

bug #42035: legend (hax, ...) doesn't work for any axes handle apart from gca

Submitted by:  sergey plotnikov <nul0m>
Submitted on:  Thu 03 Apr 2014 09:27:16 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 13 Apr 2014 05:41:43 AM UTC, comment #5:

Checked in a changeset that fixes the problem (http://hg.savannah.gnu.org/hgweb/octave/rev/ce36233e4849). I used the same save/restore figure code that is used in the other plotting routines. I added the fix to updateline and the %!test from Pantxo's changeset.

Rik <rik5>
Project Administrator
Sun 06 Apr 2014 04:17:36 PM UTC, comment #4:

The attached updated patch fixes the infinite loop problem in the case you have shown but as you also showed I may be overlooking many difficulties.

(file #31131)

Pantxo Diribarne <pantxo>
Project Member
Sun 06 Apr 2014 03:04:21 PM UTC, comment #3:

legend.m is really complicated which always makes it painful to modify. In this case, the patch works for the first invocation, but not for a second invocation. In fact, it enters into an infinite loop.

The trouble appears to be with a callback for setting "DisplayName" when the text changes which then re-invokes legend.

Rik <rik5>
Project Administrator
Fri 04 Apr 2014 10:19:10 AM UTC, comment #2:

yeah, I was about to do the same thing, thank you Pantxo! will try it out

sergey plotnikov <nul0m>
Thu 03 Apr 2014 03:40:11 PM UTC, comment #1:

I attached a patch for this bug.

(file #31116)

Pantxo Diribarne <pantxo>
Project Member
Thu 03 Apr 2014 09:27:16 AM UTC, original submission:

In case of fltk legend is created at current axes instead of ones which was specified. And in case of gnuplot it is not shown at all.

sergey plotnikov <nul0m>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #31131:  legend_parent_bug42035.patch added by pantxo (5KiB - application/x-download)
file #31116:  legend_ax_arg.patch added by pantxo (4KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by pantxo (Updated the item)
  • -unavailable- added by nul0m (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Apr 2014 05:41:43 AM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Sun 06 Apr 2014 04:17:36 PM UTCpantxoAttached File-=>Added legend_parent_bug42035.patch, #31131
    Thu 03 Apr 2014 07:51:00 PM UTCmtmillerStatusNone=>Patch Submitted
      Operating SystemGNU/Linux=>Any
    Thu 03 Apr 2014 03:40:11 PM UTCpantxoAttached File-=>Added legend_ax_arg.patch, #31116

    Back to the top


    Powered by Savane 3.1-cleanup1