[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51263] plotyy weirdness
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #51263] plotyy weirdness |
Date: |
Tue, 20 Jun 2017 05:12:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #51263 (project octave):
Item Group: None => Matlab Compatibility
Status: None => Need Info
Operating System: GNU/Linux => Any
_______________________________________________________
Follow-up Comment #1:
I am uncertain which plot you would like to achieve. But have you tried
something like:
figure (1); clf;
ax = gca;
hold (ax, 'on');
plotyy (ax, [1:5 11:15], [1*ones(1,5) 3*ones(1,5)], [21:30 31:40],
[2*ones(1,10) 4*ones(1,10)]);
If you do not want the lines to connect, try inserting nans:
hax = plotyy (ax, [1:5 NaN 11:15], [1*ones(1,5) NaN 3*ones(1,5)], [21:30 NaN
31:40], [2*ones(1,10) NaN 4*ones(1,10)]);
ylim (hax(1), [0.5 3.5]); ylim (hax(2), [1.5 4.5]);
I am not sure what Matlab tries to do. But to me it looks like it is failing.
I don't think we have to strictly follow Matlab in this case.
Anyways, if you have doubts using Octave functions, please use the mailing
list instead: address@hidden
Please, report back if you still think there is a bug that I'm missing atm.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51263>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/