octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #31156] plotyy troubles when putting text


From: Pascal Dupuis
Subject: [Octave-bug-tracker] [bug #31156] plotyy troubles when putting text
Date: Tue, 28 Sep 2010 20:54:45 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.10) Gecko/20100920 Fedora/3.6.10-1.fc13 Firefox/3.6.10

URL:
  <http://savannah.gnu.org/bugs/?31156>

                 Summary: plotyy troubles when putting text
                 Project: GNU Octave
            Submitted by: cdemills
            Submitted on: mar 28 sep 2010 20:54:45 GMT
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Pascal Dupuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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 (address@hidden), solving this
problem

Regards

Pascal



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: mar 28 sep 2010 20:54:45 GMT  Name: pat1  Size: 1 ko   By: cdemills

<http://savannah.gnu.org/bugs/download.php?file_id=21565>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31156>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]