bugGNU Octave - Bugs: bug #44829, Separate legends for each plotyy...

 
 

bug #44829: Separate legends for each plotyy axis not possible

Submitted by:  Mattias Linde <linde>
Submitted on:  Tue 14 Apr 2015 08:15:11 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 3 - LowItem Group: Regression
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
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.

 

Fri 22 Dec 2017 04:32:17 PM UTC, comment #3:

I just rewrote legend and plotyy on the development branch. This issue is still there, but I've marked the priority as low. Most people want to be able to supply the labels to a plotyy legend in one statement. Hence, legend treats both axes of a plotyy as a single object and you are only allowed to create one legend for the entire thing. I suppose this could be changed, but if you really need this capability it might be easier to use text objects which you could position at will.

Rik <rik5>
Project Administrator
Thu 17 Nov 2016 10:39:47 AM UTC, comment #2:

This bug is still present in the current dev 4.3.0 (39f39eb4e476).

I filed task #14243 about rewriting legend.m

Pantxo Diribarne <pantxo>
Project Member
Thu 16 Apr 2015 04:46:34 PM UTC, comment #1:

Confirmed. I'm bumping the release to dev since this bug is still present in the latest code.

A small amount of debugging shows that the problem begins with the first call to legend which creates two legend objects instead of just one.

Rik <rik5>
Project Administrator
Tue 14 Apr 2015 08:15:11 AM UTC, original submission:

I have an old script that used to work in octave 3.2 which I've simplified as far as possible:

Tested today with 3.2.4 and it works.

This no longer works in version 3.6.2 or 3.8.1 or the latest dev sources.
The version I built this morning says 4.0.0-rc3

I only get one legend and not two as I expect.

Did most testing in 3.8.1 and changing to gnuplot for toolkit instead of fltk had no effect.

It does work in matlab 2014b.

As a workaround, I tried to create two axes myself instead of using plotyy and do the same thing.
The second code snippet works in 3.6 and 3.8 as well as matlab. Have not tested in 3.2.

Code:

Mattias Linde <linde>

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Dec 2017 04:32:17 PM UTCrik5Priority5 - Normal=>3 - Low
      SummaryMultiple legends not working anymore with plotyy=>Separate legends for each plotyy axis not possible
    Thu 16 Apr 2015 04:46:34 PM UTCrik5StatusNone=>Confirmed
      Release3.8.1=>dev

    Back to the top


    Powered by Savane 3.1-cleanup1