[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shrinked axes
From: |
Markus Mützel |
Subject: |
Re: Shrinked axes |
Date: |
Fri, 11 Oct 2019 13:42:51 +0200 |
On 11 Oct 2019 12:00:09 +0300, Valdas Jankūnas wrote:
> Hello,
>
> I execute this line in Octave (dev)...
>
> close all; h_w_1=figure(1,'units','inches','position',[1,0,3,2]);
> h_a_1=axes('units','normalized','outerposition',[0, 0, 1, 1]);
> h_w_2=figure(2,'units','inches','position',[4.3,0,3,2*3]);
> h_a_2=axes('units','normalized','outerposition',[0, 0, 1, 1/3]);
> h_w_3=figure(3,'units','inches','position',[7.5,0,3,2*3]);
> h_a_3=axes('units','normalized','outerposition',[0, 0, 1, 1]);
>
> ... where three figures are created:
> - in first figure axes occupy all space of figure;
> - in second figure axes occupy only third space of figure, but height of
> figure is tripled;
> - in third figure axes occupy all space of figure which height is tripled.
>
> As result I got three windows (see attached screenshot).
> In middle window (Figure 2) I expected (and I think that should be a
> correct result) that size of axes should be same as in left window (Figure
> 1), but instead axes are shrunk vertically.
> Why? It's a Bug? How to get a result as I expected?
>
I see the same in Octave 5.1.0 and Octave 4.4.1. So it doesn't look like a
recent regression.
I also think this is a bug. Can you please open a report on savannah?
https://savannah.gnu.org/bugs/?group=octave
Also setting the outerposition in pixel units seems to be off if the figure is
larger.
It looks like the area that is accounted for the labels and title is
proportional to the figure extent instead of that of the outerpostion.
Fwiw, the axes have the expected dimensions in Matlab with your original
example.
Markus
- Shrinked axes, Valdas Jankūnas, 2019/10/11
- Re: Shrinked axes,
Markus Mützel <=