bugGNU Octave - Bugs: bug #52547, plotyy with legend eastoutside

 
 

bug #52547: plotyy with legend eastoutside

Submitter:  Muhali <muhali>
Submitted:  Tue 28 Nov 2017 02:01:55 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 29 Nov 2017 09:38:39 PM UTC, comment #5: 

I checked in a fix on the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/8edaf9c80779).  The "trick" was to choose the correct axes object from the two that are available in a plotyy figure.

The tests and demos for legend appear to remain unchanged by this so I think everything is fine.

Rik <rik5>
Group administrator
Tue 28 Nov 2017 11:25:15 PM UTC, comment #4: 

The following code shows how it Octave can do the spacing correctly.


plot ([1 0])
set (gca, 'yaxislocation', 'right')
legend ('ABC', 'location', 'eastoutside')


It would appear that for legend the 'location' parameter should respect which axis it is next to.

Rik <rik5>
Group administrator
Tue 28 Nov 2017 11:16:53 PM UTC, comment #3: 

OK  I see the same as you. I thought you meant that it overlapped the axes line.

Doug Stewart <dastew>
Tue 28 Nov 2017 10:17:23 PM UTC, comment #2: 

With a brand new version, hg 174a4426d441 on Arch Linux, it is for me as described (see figure attached).



Muhali <muhali>
Tue 28 Nov 2017 02:53:59 PM UTC, comment #1: 

This might be fix already.
Works for me.
ubuntu 16.04 octave 4.2.1 hg id  = 0f2dc8d6c34d


Doug Stewart <dastew>
Tue 28 Nov 2017 02:01:55 PM UTC, original submission:  

When I do


plotyy ([0 1], [1 0], [0 1], [0 1]);
legend({"A" "B"}, "location", "eastoutside");


the legend is covering the axis.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #42511:  foo.png added by muhali (23KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-29 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2017-11-28 rik5 StatusNone Confirmed
    2017-11-28 muhali Attached File- Added foo.png, #42511

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code