[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in linkaxes
From: |
avlas |
Subject: |
Re: bug in linkaxes |
Date: |
Fri, 27 Apr 2018 13:10:51 -0400 |
El divendres, 27 d’abril de 2018, a les 12:59:30 EDT, Rik va escriure:
On 04/27/2018 07:33 AM, address@hidden wrote:
> Subject:
> bug in linkaxes ?
> From:
> avlas <address@hidden>
> Date:
> 04/27/2018 07:23 AM
>
> To:
> octave-maintainers <address@hidden>
>
> List-Post:
> <mailto:address@hidden>
> Content-Transfer-Encoding:
> 7Bit
> Precedence:
> list
> MIME-Version:
> 1.0
> Message-ID:
> <address@hidden>
> Content-Type:
> text/plain; charset="us-ascii"
> Message:
> 4
>
>
> I think there is a bug in linkaxes, at least in my Octave version (flatpak
package of Octave 4.3.91).
>
> Before submitting a bug report about this, could somebody please test the
following code snippet? Thanks!
>
> % these examples work fine
> % for ii = 1:3; ha(ii) = subplot(3,1,ii); axes(ha(ii));
plot(randn(10,ii)); end
> % for ii = 1:3; ha(ii) = subplot(2,2,ii); axes(ha(ii));
plot(randn(10,ii)); end
>
> % these examples do NOT work
> for ii = 1:4; ha(ii) = subplot(4,1,ii); axes(ha(ii));
plot(randn(10,ii)); end
> % for ii = 1:4; ha(ii) = subplot(2,2,ii); axes(ha(ii));
plot(randn(10,ii)); end
>
> linkaxes(ha, 'x')
>
> This is the error I'm finding:
>
> error: horizontal dimensions mismatch (1x1 vs 2x1)
> error: called from
> linkprop at line 84 column 7
> linkaxes at line 83 column 13
>
> ...
> a.
This was a simple error in using a comma, ',', for horizontal concatenation
when a semicolon, ';', was desired for vertical concatenation. I fixed it
on the stable branch here
http://hg.savannah.gnu.org/hgweb/octave/rev/2540fde5f07b.
--Rik
Thank you
....
a.