[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: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #60759] test subplot fails on hi-res display |
Date: |
Wed, 9 Jun 2021 15:14:49 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
URL:
<https://savannah.gnu.org/bugs/?60759>
Summary: test subplot fails on hi-res display
Project: GNU Octave
Submitted by: dasergatskov
Submitted on: Wed 09 Jun 2021 07:14:47 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 6.2.90
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
test subplot is failing on Win10 laptop with 4K (3840x2160) display:
>> test subplot
***** test
hf = figure ("visible", "off");
unwind_protect
for ii = 1:9
hax(ii) = subplot (3,3,ii);
endfor
subplot (3,3,1);
assert (gca (), hax(1));
subplot (2,1,1);
assert (ishghandle (hax),[false(1,6), true(1,3)]);
unwind_protect_cleanup
delete (hf);
end_unwind_protect
!!!!! test failed
ASSERT errors for: assert (ishghandle (hax),[false(1, 6), true(1, 3)])
Location | Observed | Expected | Reason
(4) 1 0 Abs err 1 exceeds tol 0 by 1
(5) 1 0 Abs err 1 exceeds tol 0 by 1
(6) 1 0 Abs err 1 exceeds tol 0 by 1
>>
>> for ii = 1:9
hax(ii) = subplot (3,3,ii);
endfor
>> subplot (3,3,1);
>> assert (gca (), hax(1));
>> subplot (2,1,1);
>> ishghandle (hax)
ans =
0 0 0 1 1 1 1 1 1
>>
The output of
figure ();
for ii = 1:9
hax(ii) = subplot (3,3,ii);
endfor
subplot (2,1,1);
is attached (this is with 200% display scaling).
The display scaling does not seem to matter, but if I reduce the display
resolution to 2048x1152, the test passes
(at 2048x1536 it still fails).
The test passes in Fedora 34 on the same laptop, so it seems to be Win10
specific.
See additional discussion on
https://octave.discourse.group/t/release-candidate-available/1227/32.
Dmitri.
--
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 09 Jun 2021 07:14:47 PM UTC Name: subplot_das_201210608_1.png
Size: 21KiB By: dasergatskov
<http://savannah.gnu.org/bugs/download.php?file_id=51534>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60759>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60759] test subplot fails on hi-res display,
Dmitri A. Sergatskov <=