bugGNU Octave - Bugs: bug #40327, wrong legend color in bar plot

 
 

bug #40327: wrong legend color in bar plot

Submitted by:  Muhali <muhali>
Submitted on:  Mon 21 Oct 2013 08:50:23 AM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
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 22 Oct 2013 09:37:02 PM UTC, comment #4:

I fixed the legend color here (http://hg.savannah.gnu.org/hgweb/octave/rev/580990c2ce04). There is still no updating if the bar colors are changed manually or if the clim values are changed in the parent axes. There was already a note in the code about the lack of listeners needed to fix those sorts of issues.

Rik <rik5>
Project Administrator
Tue 22 Oct 2013 12:13:13 PM UTC, comment #3:

Perhaps the clim property associated with the legend object is different from the axes containing the patch (i.e. the bar plot)?

Ben Abbott <bpabbott>
Project Member
Tue 22 Oct 2013 05:49:05 AM UTC, comment #2:

Interestingly, this is only a problem when there is a single vector of values. Matrices (more than two bars per x-value) work just fine.

Rik <rik5>
Project Administrator
Mon 21 Oct 2013 01:21:35 PM UTC, comment #1:

The legend's patch color appears to be set to the color corresponding to the center the color limits (i.e. mean (caxis ()))

Ben Abbott <bpabbott>
Project Member
Mon 21 Oct 2013 08:50:23 AM UTC, original submission:

I noticed that

produces a yellow legend instead of blue (default). Adding a facecolor property makes it work.

This is with the present tip.

Muhali <muhali>

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Oct 2013 09:37:02 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 21 Oct 2013 01:21:35 PM UTCbpabbottStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1