[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pbaspect() and legend
From: |
Nicholas Jankowski |
Subject: |
Re: pbaspect() and legend |
Date: |
Tue, 28 Jan 2020 12:55:04 -0500 |
On Tue, Jan 28, 2020 at 11:13 AM José Luis García Pallero
<address@hidden> wrote:
>
> Hello:
>
> I need to use the pbaspect() function in order to customize a figure
> aspect ratio. All works perfect except the legend, which is not
> maintained inside the plot box after the pbaspect() call. But in
> Matlab the legend is affected by the function. Is it a bug in the
> Octave pbaspect()?
>
> I'm using this script:
>
> plot(rand(3));
> legend('First','Second','Third');
> pbaspect([2 1 1]);
>
I can confirm this behavior appears to be a noncompatibility bug in
Octave. Testing in Octave and Matlab 2019a, I get the two attached
different figures (appears the same both on screen and in the
generated png)
check_pbaspect_octave5.1.0.png
Description: PNG image
check_pbaspect_matlab2019a.png
Description: PNG image
- pbaspect() and legend, José Luis García Pallero, 2020/01/28
- Re: pbaspect() and legend,
Nicholas Jankowski <=