[Top][All Lists]

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

[Octave-bug-tracker] [bug #41937] plotyy with hold on is missing an outp

From: anonymous
Subject: [Octave-bug-tracker] [bug #41937] plotyy with hold on is missing an output
Date: Sun, 23 Mar 2014 00:24:49 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36


                 Summary: plotyy with hold on is missing an output
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sun 23 Mar 2014 12:24:48 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Gerrit Barrere
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: Microsoft Windows



When I superimpose two plotyy's using 'hold on' the first y2 plot doesn't
display.  This is an example:

clear all;
N = 200;

hold on;
xa  = linspace (0, 10, N);
y1a = sin (2*pi*xa/10 - .0*pi);
y2a = sin (2*pi*xa/10 - .1*pi);
[ax, h1, h2] = plotyy (xa, y1a, xa, y2a);
set (h1, 'color', 'r');
set (h2, 'color', 'g');

xb  = linspace (0, 10, N);
y1b = sin (2*pi*xb/10 - .2*pi);
y2b = sin (2*pi*xb/10 - .3*pi);
[ax, h1, h2] = plotyy (xb, y1b, xb, y2b);
set (h1, 'color', 'b');
set (h2, 'color', 'k');

There should be four sine waves separated by pi/10 in phase, but the second
one (y2a, which should be green) is missing. 

I also see this problem when importing data for the various vectors x and y.

I've tried different N for the two plotyy's with the same result.

I've tried simple plotyy calls with no handle returns or 'set' calls with the
same result.

I'm not specifying a graphics toolkit, so I think this means I'm using

Thanks for any help,


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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