[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60759] test subplot fails on hi-res display
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #60759] test subplot fails on hi-res display |
Date: |
Mon, 14 Jun 2021 11:28:47 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36 Edg/91.0.864.48 |
Follow-up Comment #3, bug #60759 (project octave):
Afaict, `subplot` only takes the "position" property into account for the
check for overlapping axes. That is only the extent of the axes themselves
(not including the labels and tick labels). See also the blue box in `demo
annotation 2`.
So, axes font and fontsize shouldn't make a difference (and they don't).
Could you please run the following on your hi-res display?
hf = figure ("visible", "off");
set (hf, "position", get (groot, "defaultfigureposition")); # FIXME: This
step shouldn't be necessary
get (groot, "defaultfigureposition")
get (hf, "position")
unwind_protect
for ii = 1:9
hax(ii) = subplot (3,3,ii);
endfor
subplot (3,3,1);
assert (gca (), hax(1));
get (hax(4), "position")
subplot (2,1,1);
get (gca, "position")
assert (ishghandle (hax), [false(1,6), true(1,3)]);
unwind_protect_cleanup
delete (hf);
end_unwind_protect
For me:
ans =
300 200 560 420
ans =
300 200 560 420
ans =
0.1300 0.4253 0.1818 0.1844
ans =
0.1300 0.5996 0.7750 0.3254
Fwiw, in Matlab R2021a:
ans =
1256 1206 560 420
ans =
1256 1206 560 420
ans =
0.1300 0.4096 0.2134 0.2157
ans =
0.1300 0.5838 0.7750 0.3412
So Matlab seems to choose slightly larger subplot axes.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60759>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/