bugGNU Octave - Bugs: bug #36135, legend: should box & visible...

 
 

bug #36135: legend: should box & visible by synced ?

Submitted by:  Rik <rik5>
Submitted on:  Mon 09 Apr 2012 03:27:02 AM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 01 May 2012 11:40:59 PM UTC, comment #4:

I pushed a changeset.

http://hg.savannah.gnu.org/hgweb/octave/rev/c38a253723d3

I choose to deviate from Matlab's behavior, but if anyone thinks that we should follow Matlab's behavior, I'm ok with that as well.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Tue 01 May 2012 03:05:28 PM UTC, comment #3:

The problem is that "show" does

This leaves the box "off", which is why only half the box is drawn.

For Matlab, "show" is equivalent to

Should we copy Matlab's behavior, or do something reasonable like,

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Tue 01 May 2012 02:14:28 PM UTC, comment #2:

The original bug is fixed but there are still some oddities.

Try the following code

When the legend is drawn again due to the 'legend show' command there is 1/2 of a box around the legend. This is neither 'boxoff' nor 'boxon'. Should this bug be re-opened or do you want a different bug report for this?

Rik <rik5>
Project Administrator
Thu 26 Apr 2012 02:16:09 PM UTC, comment #1:

This has been fixed by the changeset below.

http://hg.savannah.gnu.org/hgweb/octave/rev/f579a94aacaa

I had inadvertently attributed the changet to Carnë Draug.

I hadn't noticed this bug, and thought it a regression of my changeset, so I fixed it.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Mon 09 Apr 2012 03:27:02 AM UTC, original submission:

legend ("hide") removes the legend text but leaves the box around the legend still visible. A call to legend ("boxoff") will properly remove the box as well. The key is probably that the "hide" command is not changing the "visibility" property of the legend graphics object.

Sample code:

Rik <rik5>
Project Administrator

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 06 Jun 2013 05:21:47 AM UTCbpabbottStatusIn Progress=>Fixed
    Tue 01 May 2012 11:40:59 PM UTCbpabbottOpen/ClosedOpen=>Closed
    Tue 01 May 2012 03:06:46 PM UTCbpabbottStatusFixed=>In Progress
      Open/ClosedClosed=>Open
      Summarylegend ("hide") still leaves legend box visible with fltk toolkit=>legend: should box & visible by synced ?
    Thu 26 Apr 2012 02:16:09 PM UTCbpabbottStatusNone=>Fixed
      Assigned toNone=>bpabbott
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1