[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65010] compatibility: colormaps now default t
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65010] compatibility: colormaps now default to 256 colors in matlab |
Date: |
Tue, 2 Jan 2024 23:20:45 -0500 (EST) |
Follow-up Comment #14, bug#65010 (group octave):
would the simple test attached sufficiently check the intended feature or is
there somewhere else it would be better inserted and/or with more detail?
diff -r ea5158206032 -r f030e572b715 libinterp/corefcn/graphics.cc
--- a/libinterp/corefcn/graphics.cc Tue Jan 02 17:37:01 2024 -0800
+++ b/libinterp/corefcn/graphics.cc Tue Jan 02 23:10:12 2024 -0500
@@ -412,6 +412,18 @@
return cmap;
}
+/*
+## Test default colormap returns as 256 color viridis
+%!test
+%! hf = figure ("visible", "off");
+%! unwind_protect
+%! hax = axes ("parent", hf);
+%! assert (get (hax, "colormap"), viridis (256), eps);
+%! unwind_protect_cleanup
+%! delete (hf);
+%! end_unwind_protect
+*/
+
static double
default_screendepth ()
{
(my slow test machine is rebuilding from scratch now so i haven't verified yet
that it would have caught the sombrero issue)
(file #55512)
_______________________________________________________
Additional Item Attachment:
File name: default_colormap_BIST_bug65010.diff Size:0 KB
<https://file.savannah.gnu.org/file/default_colormap_BIST_bug65010.diff?file_id=55512>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-2b478236128ba85c00d8a2ecb8cf6141b8b94a05.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65010>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/