bugGNU Octave - Bugs: bug #31156, plotyy troubles when putting text

 
 

bug #31156: plotyy troubles when putting text

Submitter:  Pascal Dupuis <cdemills>
Submitted:  Tue 28 Sep 2010 08:54:45 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Pascal Dupuis Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Nov 2010 02:32:16 AM UTC, comment #1: 

Happily, this issue has already been fixed in the development code (at least as of 2010-11-02).  To get the fix you can either download and build from source (http://www.gnu.org/software/octave/download.html) or wait until the next major release of Octave.

Rik <rik5>
Group administrator
Tue 28 Sep 2010 08:54:45 PM UTC, original submission:  

Hello,
 
 consider the following example:
 clf
 x = 0:0.1:2*pi;
 y1 = sin (x);
 y2 = exp (x - 1);
 ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy);
 axes(ax(1)); text(2, .5, 'A');
 axes(ax(2)); text(3, 20, 'B');
 
Expected output: two curves, two vertical axes, one combined horizontal axis, and two letters inside the graph.
 
Matlab output (7.8.0.347 (R2009a)): after axes(ax(1)), the second figure disappear. After axes(ax(2)), it gets back, but then the x axis is overwritten.

Octave 3.2.4 output: after the first 'text' command, the second drawing is compressed horizontally. The second text command has no visible effects.


Enclosed a patch I got from Liam Groener (liamg@mac.com), solving this problem

Regards

Pascal

Pascal Dupuis <cdemills>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21565:  pat1 added by cdemills (1KiB - application/octet-stream)

 

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 cdemills (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-11-03 rik5 Open/ClosedOpen Closed
    2010-11-03 rik5 StatusNone Fixed
    2010-09-28 cdemills Attached File- Added pat1, #21565

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code