Mon 09 Feb 2015 10:42:17 PM UTC, comment #7:
Hi,
This is fixed with this changeset : http://hg.savannah.gnu.org/hgweb/octave/rev/8064b5cdbc11
Closing this report.
|
Wed 18 Jun 2014 11:33:25 AM UTC, comment #6:
Yes Sébastien, I guess this is exactly the same error source.
I investigated some further. In subplot.m, there is a check if the axes object exists (and therefore is kept), or if the axes object is new and has to be crated, or if the user wants to explicitly replace the old axes object.
objpos =
0.050000 0.050000 0.293406 0.900000
outerpos =
0.050000 0.050000 0.291111 0.900000
For some reason, the re-calculated position is differing slighty from the original position. Therefore, the subplot is deleted.
As Mike pointed out, there are some similar errors:
bug #39874 => Similar but different, Version 3.7.6+, already fixed. Works for me in 3.8.1
bug #31610 => No idea
bug #41128 => Yes. To my understanding, Sébastian's and my report are due to the same error source as the one that is underlying in Daisuke's report. They all trigger a breakpoint in line 255.
However, I cannot easily manage to get through calculation of the positions :-/
|
Wed 18 Jun 2014 10:16:24 AM UTC, comment #5:
I have a similar issue. Here is a short example:
subplot(1,3,1)
plot(1:100);
subplot(1,3,1)
The plot is cleared when calling subplot again. Strange thing is that it does not happens for a two-columns plot (ie: subplot(1,2,1)).
Gnuplot 3.8.1 with fltk on ubuntu x64
|
Mon 07 Apr 2014 06:12:38 PM UTC, comment #4:
By stepping through the original example, the bug is not that the hold property is lost but that switching to subplot(4,1,4) redraws the axes, clearing the plot that was there before.
This looks like another slightly different manifestation of bug #39874 (and maybe also having to do with bug #31610 and bug #41128).
|
Fri 04 Apr 2014 05:46:12 PM UTC, comment #3:
I think the behavior you are describing (comment #2) is actually bug #41128 (some subplots do not appear when N>4). Please direct comments about subplots not appearing to that bug report.
This bug report does not concern missing subplots, but the hold property on the 4th subplot in the original example given.
|
Fri 04 Apr 2014 04:49:11 PM UTC, comment #2:
I have tried in the linux dev version and the bug seems to be still less specific. Doing this:
That will plot a figure where the 4rth subplot is not shown and if you do the same with 6 subplots neither the 4rth nor the 5th will be shown.
|
Thu 03 Apr 2014 07:43:39 PM UTC, comment #1:
Confirmed with 3.8.1 on Linux using fltk. Gnuplot has a different problem, that's probably already a separate bug report.
|
Thu 03 Apr 2014 08:15:16 AM UTC, original submission:
When running the code below, a new figure divided into 4 subplots is created. Subplot 4 gets erased, although it has been set on hold.
Running Octave 3.8.1 under Windows 7 x64
|