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

 
 

bug #31156: plotyy troubles when putting text

Submitted by:  Pascal Dupuis <cdemills>
Submitted on:  Tue 28 Sep 2010 08:54:45 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Pascal DupuisOpen/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project 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>
Project Member

 

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

Attach File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by cdemills (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
    Wed 03 Nov 2010 03:43:28 PM UTCrik5Open/ClosedOpen=>Closed
    Wed 03 Nov 2010 02:32:16 AM UTCrik5StatusNone=>Fixed
    Tue 28 Sep 2010 08:54:45 PM UTCcdemillsAttached File-=>Added pat1, #21565

    Back to the top


    Powered by Savane 3.1-cleanup1