[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors |
Date: |
Sun, 14 Jun 2020 15:00:23 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Update of bug #58566 (project octave):
Status: None => Need Info
_______________________________________________________
Follow-up Comment #1:
I cannot confirm this here.
Running the function in Octave 5.2.0 doesn't provoke any errors for me. Also
no lines seem to be missing.
I'm also attaching the output with Matlab R2020a where indeed not all lines
seem to be in the final plots.
Anyhow, does creating the axes beforehand work for you? That seems to
partially fix it for me in Matlab:
function chart_prob
close all; figure;
x = linspace(0,10,10);
y = rand(4*4,10);
for ip=1:4
hax(ip) = subplot(2,2,ip);
end
% drawnow; % Maybe you'll also need the drawnow here
for ia=1:2
for ip=1:4
% hold on is commented, only 1 window-sized chart
% is drawn: subplot above is ignored().
hold on;
grid on;
iy = (ia-1)*4 + ip;
% plot(x,y(iy,:)); does the right thing
plotyy(hax(ip), x,y(iy,:), x,y(iy+1,:));
end
end
end
(file #49264, file #49265)
_______________________________________________________
Additional Item Attachment:
File name: chart_prob_Octave.png Size:153 KB
<https://savannah.gnu.org/file/chart_prob_Octave.png?file_id=49264>
File name: chart_prob_Matlab.png Size:38 KB
<https://savannah.gnu.org/file/chart_prob_Matlab.png?file_id=49265>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58566>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Neil Konzen, 2020/06/14
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors,
Markus Mützel <=
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Dmitri A. Sergatskov, 2020/06/14
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Dmitri A. Sergatskov, 2020/06/14
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Markus Mützel, 2020/06/15
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Dmitri A. Sergatskov, 2020/06/15
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Dmitri A. Sergatskov, 2020/06/15
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Markus Mützel, 2020/06/15
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Neil Konzen, 2020/06/15
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Dmitri A. Sergatskov, 2020/06/15
- [Octave-bug-tracker] [bug #58566] plotyy() and subplot() generate errors, Markus Mützel, 2020/06/15