[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60742] test failure in hgsave.m with Octave 6
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #60742] test failure in hgsave.m with Octave 6.2.90 (on Windows) |
Date: |
Mon, 7 Jun 2021 07:00:14 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.41 |
Update of bug #60742 (project octave):
Category: None => Plotting
_______________________________________________________
Follow-up Comment #1:
Savannah seems to have eaten parts of the original report.
Copying here from the mailing list:
>>>>> processing
C:\Octave\Octave-6.2.90\mingw64\share\octave\6.2.90\m\plot\util\hgsave.m
***** testif HAVE_MAGICK; (have_window_system () && __have_feature__
("QT_OFFSCREEN") && strcmp ("qt", graphics_toolkit ())) || strcmp ("gnuplot",
graphics_toolkit ());
h1 = figure ("visible", "off", "paperposition", [0.25, 2.5, 8.0, 6.0]);
unwind_protect
x = 0:0.1:2*pi;
y1 = sin (x);
y2 = exp (x - 1);
ax = plotyy (x,y1, x-1,y2, @plot, @semilogy);
xlabel ("X");
ylabel (ax(1), "Axis 1");
ylabel (ax(2), "Axis 2");
axes (ax(1));
text (0.5, 0.5, "Left Axis", ...
"color", [0 0 1], "horizontalalignment", "center");
axes (ax(2));
text (4.5, 80, "Right Axis", ...
"color", [0 0.5 0], "horizontalalignment", "center");
ftmp = [tempname() ".ofig"];
png1 = [tempname() ".png"];
png2 = [tempname() ".png"];
unwind_protect
hgsave (h1, ftmp);
print (h1, png1);
[img1, map1, alpha1] = imread (png1);
h2 = hgload (ftmp);
print (h2, png2);
[img2, map2, alpha2] = imread (png2);
unwind_protect_cleanup
unlink (ftmp);
unlink (png1);
unlink (png2);
end_unwind_protect
assert (img1, img2);
assert (map1, map2);
assert (alpha1, alpha2);
unwind_protect_cleanup
close (h1);
close (h2);
end_unwind_protect
!!!!! test failed
ASSERT errors for: assert (img1,img2)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60742>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/