changeset 16352:b8a4f313e78e

copper.m: Make colormap compatible with Matlab (bug #36473). * scripts/image/copper.m: Make colormap compatible with Matlab (bug #36473).
author Rik <rik@octave.org>
date Thu, 21 Mar 2013 07:42:59 -0700
parents d8babb249f65
children ca395af72d88
files scripts/image/copper.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/image/copper.m	Thu Mar 21 02:31:09 2013 -0400
+++ b/scripts/image/copper.m	Thu Mar 21 07:42:59 2013 -0700
@@ -49,8 +49,8 @@
     x = linspace (0, 1, n)';
     r = (x < 4/5) .* (5/4 * x) ...
       + (x >= 4/5);
-    g = 4/5 * x;
-    b = 1/2 * x;
+    g = 0.7812 * x;
+    b = 0.4975 * x;
     map = [r, g, b];
   else
     map = zeros (0, 3);