Mercurial > octave
annotate scripts/image/viridis.m @ 21563:1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
* viridis.m: Use same language in docstring to describe colormap. Use 'map' as
return variable. Declare internal variable viridi as persistent since it is
large and potentially used frequently now that it is the default colormap.
Use two newlines between endfunction and start of any %!demo or %!test blocks.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 30 Mar 2016 15:34:05 -0700 |
parents | 516bb87ea72e |
children | 894239974868 |
rev | line source |
---|---|
20529
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
1 ## Copyright (C) 2015 Eric Firing |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
2 ## Copyright (C) 2015 Nathaniel J. Smith |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
3 ## Copyright (C) 2015 Stefan van der Walt |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
4 ## Copyright (C) 2015 Carlo de Falco |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
5 ## |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
6 ## This file is part of Octave. |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
7 ## |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
8 ## Octave is free software; you can redistribute it and/or modify it |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
9 ## under the terms of the GNU General Public License as published by |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
10 ## the Free Software Foundation; either version 3 of the License, or (at |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
11 ## your option) any later version. |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
12 ## |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
13 ## Octave is distributed in the hope that it will be useful, but |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
16 ## General Public License for more details. |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
17 ## |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
18 ## You should have received a copy of the GNU General Public License |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
19 ## along with Octave; see the file COPYING. If not, see |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
20 ## <http://www.gnu.org/licenses/>. |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
21 |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
22 ## -*- texinfo -*- |
20852
516bb87ea72e
2015 Code Sprint: remove class of function from docstring for all m-files.
Rik <rik@octave.org>
parents:
20724
diff
changeset
|
23 ## @deftypefn {} {@var{map} =} viridis () |
516bb87ea72e
2015 Code Sprint: remove class of function from docstring for all m-files.
Rik <rik@octave.org>
parents:
20724
diff
changeset
|
24 ## @deftypefnx {} {@var{map} =} viridis (@var{n}) |
21563
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
25 ## Create color colormap. This colormap ranges from dark purplish-blue through |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
26 ## blue, green, to yellow. |
20529
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
27 ## |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
28 ## The argument @var{n} must be a scalar. |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
29 ## If unspecified, the length of the current colormap, or 64, is used. |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
30 ## @seealso{colormap} |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
31 ## @end deftypefn |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
32 |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
33 ## Author: Carlo de Falco |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
34 |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
35 ## PKG_ADD: colormap ("register", "viridis"); |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
36 ## PKG_DEL: colormap ("unregister", "viridis"); |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
37 |
21563
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
38 ## This is a port to Octave of the default matplotlib colormap "viridis" |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
39 ## by Eric Firing. The original file is distributed under CC0: |
20529
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
40 ## http://creativecommons.org/publicdomain/zero/1.0 |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
41 |
21563
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
42 function map = viridis (n = rows (colormap ())) |
20715
5b7643257978
Remove trailing whitespace at end of lines.
Rik <rik@octave.org>
parents:
20529
diff
changeset
|
43 |
20529
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
44 if (nargin > 1) |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
45 print_usage (); |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
46 elseif (! isscalar (n)) |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
47 error ("viridis: N must be a scalar"); |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
48 endif |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
49 |
21563
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
50 ## FIXME: Is there no algorithmic definition of the viridis colormap? |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
51 persistent viridi = [0.26700401 0.00487433 0.32941519 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
52 0.26851048 0.00960483 0.33542652 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
53 0.26994384 0.01462494 0.34137895 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
54 0.27130489 0.01994186 0.34726862 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
55 0.27259384 0.02556309 0.35309303 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
56 0.27380934 0.03149748 0.35885256 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
57 0.27495242 0.03775181 0.36454323 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
58 0.27602238 0.04416723 0.37016418 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
59 0.2770184 0.05034437 0.37571452 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
60 0.27794143 0.05632444 0.38119074 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
61 0.27879067 0.06214536 0.38659204 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
62 0.2795655 0.06783587 0.39191723 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
63 0.28026658 0.07341724 0.39716349 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
64 0.28089358 0.07890703 0.40232944 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
65 0.28144581 0.0843197 0.40741404 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
66 0.28192358 0.08966622 0.41241521 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
67 0.28232739 0.09495545 0.41733086 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
68 0.28265633 0.10019576 0.42216032 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
69 0.28291049 0.10539345 0.42690202 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
70 0.28309095 0.11055307 0.43155375 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
71 0.28319704 0.11567966 0.43611482 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
72 0.28322882 0.12077701 0.44058404 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
73 0.28318684 0.12584799 0.44496 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
74 0.283072 0.13089477 0.44924127 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
75 0.28288389 0.13592005 0.45342734 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
76 0.28262297 0.14092556 0.45751726 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
77 0.28229037 0.14591233 0.46150995 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
78 0.28188676 0.15088147 0.46540474 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
79 0.28141228 0.15583425 0.46920128 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
80 0.28086773 0.16077132 0.47289909 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
81 0.28025468 0.16569272 0.47649762 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
82 0.27957399 0.17059884 0.47999675 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
83 0.27882618 0.1754902 0.48339654 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
84 0.27801236 0.18036684 0.48669702 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
85 0.27713437 0.18522836 0.48989831 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
86 0.27619376 0.19007447 0.49300074 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
87 0.27519116 0.1949054 0.49600488 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
88 0.27412802 0.19972086 0.49891131 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
89 0.27300596 0.20452049 0.50172076 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
90 0.27182812 0.20930306 0.50443413 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
91 0.27059473 0.21406899 0.50705243 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
92 0.26930756 0.21881782 0.50957678 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
93 0.26796846 0.22354911 0.5120084 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
94 0.26657984 0.2282621 0.5143487 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
95 0.2651445 0.23295593 0.5165993 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
96 0.2636632 0.23763078 0.51876163 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
97 0.26213801 0.24228619 0.52083736 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
98 0.26057103 0.2469217 0.52282822 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
99 0.25896451 0.25153685 0.52473609 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
100 0.25732244 0.2561304 0.52656332 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
101 0.25564519 0.26070284 0.52831152 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
102 0.25393498 0.26525384 0.52998273 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
103 0.25219404 0.26978306 0.53157905 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
104 0.25042462 0.27429024 0.53310261 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
105 0.24862899 0.27877509 0.53455561 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
106 0.2468114 0.28323662 0.53594093 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
107 0.24497208 0.28767547 0.53726018 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
108 0.24311324 0.29209154 0.53851561 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
109 0.24123708 0.29648471 0.53970946 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
110 0.23934575 0.30085494 0.54084398 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
111 0.23744138 0.30520222 0.5419214 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
112 0.23552606 0.30952657 0.54294396 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
113 0.23360277 0.31382773 0.54391424 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
114 0.2316735 0.3181058 0.54483444 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
115 0.22973926 0.32236127 0.54570633 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
116 0.22780192 0.32659432 0.546532 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
117 0.2258633 0.33080515 0.54731353 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
118 0.22392515 0.334994 0.54805291 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
119 0.22198915 0.33916114 0.54875211 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
120 0.22005691 0.34330688 0.54941304 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
121 0.21812995 0.34743154 0.55003755 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
122 0.21620971 0.35153548 0.55062743 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
123 0.21429757 0.35561907 0.5511844 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
124 0.21239477 0.35968273 0.55171011 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
125 0.2105031 0.36372671 0.55220646 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
126 0.20862342 0.36775151 0.55267486 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
127 0.20675628 0.37175775 0.55311653 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
128 0.20490257 0.37574589 0.55353282 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
129 0.20306309 0.37971644 0.55392505 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
130 0.20123854 0.38366989 0.55429441 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
131 0.1994295 0.38760678 0.55464205 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
132 0.1976365 0.39152762 0.55496905 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
133 0.19585993 0.39543297 0.55527637 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
134 0.19410009 0.39932336 0.55556494 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
135 0.19235719 0.40319934 0.55583559 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
136 0.19063135 0.40706148 0.55608907 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
137 0.18892259 0.41091033 0.55632606 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
138 0.18723083 0.41474645 0.55654717 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
139 0.18555593 0.4185704 0.55675292 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
140 0.18389763 0.42238275 0.55694377 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
141 0.18225561 0.42618405 0.5571201 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
142 0.18062949 0.42997486 0.55728221 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
143 0.17901879 0.43375572 0.55743035 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
144 0.17742298 0.4375272 0.55756466 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
145 0.17584148 0.44128981 0.55768526 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
146 0.17427363 0.4450441 0.55779216 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
147 0.17271876 0.4487906 0.55788532 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
148 0.17117615 0.4525298 0.55796464 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
149 0.16964573 0.45626209 0.55803034 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
150 0.16812641 0.45998802 0.55808199 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
151 0.1666171 0.46370813 0.55811913 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
152 0.16511703 0.4674229 0.55814141 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
153 0.16362543 0.47113278 0.55814842 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
154 0.16214155 0.47483821 0.55813967 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
155 0.16066467 0.47853961 0.55811466 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
156 0.15919413 0.4822374 0.5580728 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
157 0.15772933 0.48593197 0.55801347 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
158 0.15626973 0.4896237 0.557936 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
159 0.15481488 0.49331293 0.55783967 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
160 0.15336445 0.49700003 0.55772371 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
161 0.1519182 0.50068529 0.55758733 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
162 0.15047605 0.50436904 0.55742968 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
163 0.14903918 0.50805136 0.5572505 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
164 0.14760731 0.51173263 0.55704861 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
165 0.14618026 0.51541316 0.55682271 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
166 0.14475863 0.51909319 0.55657181 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
167 0.14334327 0.52277292 0.55629491 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
168 0.14193527 0.52645254 0.55599097 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
169 0.14053599 0.53013219 0.55565893 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
170 0.13914708 0.53381201 0.55529773 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
171 0.13777048 0.53749213 0.55490625 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
172 0.1364085 0.54117264 0.55448339 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
173 0.13506561 0.54485335 0.55402906 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
174 0.13374299 0.54853458 0.55354108 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
175 0.13244401 0.55221637 0.55301828 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
176 0.13117249 0.55589872 0.55245948 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
177 0.1299327 0.55958162 0.55186354 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
178 0.12872938 0.56326503 0.55122927 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
179 0.12756771 0.56694891 0.55055551 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
180 0.12645338 0.57063316 0.5498411 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
181 0.12539383 0.57431754 0.54908564 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
182 0.12439474 0.57800205 0.5482874 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
183 0.12346281 0.58168661 0.54744498 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
184 0.12260562 0.58537105 0.54655722 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
185 0.12183122 0.58905521 0.54562298 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
186 0.12114807 0.59273889 0.54464114 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
187 0.12056501 0.59642187 0.54361058 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
188 0.12009154 0.60010387 0.54253043 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
189 0.11973756 0.60378459 0.54139999 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
190 0.11951163 0.60746388 0.54021751 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
191 0.11942341 0.61114146 0.53898192 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
192 0.11948255 0.61481702 0.53769219 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
193 0.11969858 0.61849025 0.53634733 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
194 0.12008079 0.62216081 0.53494633 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
195 0.12063824 0.62582833 0.53348834 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
196 0.12137972 0.62949242 0.53197275 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
197 0.12231244 0.63315277 0.53039808 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
198 0.12344358 0.63680899 0.52876343 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
199 0.12477953 0.64046069 0.52706792 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
200 0.12632581 0.64410744 0.52531069 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
201 0.12808703 0.64774881 0.52349092 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
202 0.13006688 0.65138436 0.52160791 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
203 0.13226797 0.65501363 0.51966086 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
204 0.13469183 0.65863619 0.5176488 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
205 0.13733921 0.66225157 0.51557101 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
206 0.14020991 0.66585927 0.5134268 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
207 0.14330291 0.66945881 0.51121549 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
208 0.1466164 0.67304968 0.50893644 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
209 0.15014782 0.67663139 0.5065889 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
210 0.15389405 0.68020343 0.50417217 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
211 0.15785146 0.68376525 0.50168574 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
212 0.16201598 0.68731632 0.49912906 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
213 0.1663832 0.69085611 0.49650163 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
214 0.1709484 0.69438405 0.49380294 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
215 0.17570671 0.6978996 0.49103252 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
216 0.18065314 0.70140222 0.48818938 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
217 0.18578266 0.70489133 0.48527326 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
218 0.19109018 0.70836635 0.48228395 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
219 0.19657063 0.71182668 0.47922108 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
220 0.20221902 0.71527175 0.47608431 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
221 0.20803045 0.71870095 0.4728733 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
222 0.21400015 0.72211371 0.46958774 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
223 0.22012381 0.72550945 0.46622638 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
224 0.2263969 0.72888753 0.46278934 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
225 0.23281498 0.73224735 0.45927675 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
226 0.2393739 0.73558828 0.45568838 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
227 0.24606968 0.73890972 0.45202405 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
228 0.25289851 0.74221104 0.44828355 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
229 0.25985676 0.74549162 0.44446673 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
230 0.26694127 0.74875084 0.44057284 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
231 0.27414922 0.75198807 0.4366009 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
232 0.28147681 0.75520266 0.43255207 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
233 0.28892102 0.75839399 0.42842626 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
234 0.29647899 0.76156142 0.42422341 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
235 0.30414796 0.76470433 0.41994346 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
236 0.31192534 0.76782207 0.41558638 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
237 0.3198086 0.77091403 0.41115215 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
238 0.3277958 0.77397953 0.40664011 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
239 0.33588539 0.7770179 0.40204917 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
240 0.34407411 0.78002855 0.39738103 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
241 0.35235985 0.78301086 0.39263579 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
242 0.36074053 0.78596419 0.38781353 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
243 0.3692142 0.78888793 0.38291438 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
244 0.37777892 0.79178146 0.3779385 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
245 0.38643282 0.79464415 0.37288606 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
246 0.39517408 0.79747541 0.36775726 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
247 0.40400101 0.80027461 0.36255223 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
248 0.4129135 0.80304099 0.35726893 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
249 0.42190813 0.80577412 0.35191009 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
250 0.43098317 0.80847343 0.34647607 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
251 0.44013691 0.81113836 0.3409673 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
252 0.44936763 0.81376835 0.33538426 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
253 0.45867362 0.81636288 0.32972749 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
254 0.46805314 0.81892143 0.32399761 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
255 0.47750446 0.82144351 0.31819529 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
256 0.4870258 0.82392862 0.31232133 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
257 0.49661536 0.82637633 0.30637661 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
258 0.5062713 0.82878621 0.30036211 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
259 0.51599182 0.83115784 0.29427888 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
260 0.52577622 0.83349064 0.2881265 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
261 0.5356211 0.83578452 0.28190832 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
262 0.5455244 0.83803918 0.27562602 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
263 0.55548397 0.84025437 0.26928147 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
264 0.5654976 0.8424299 0.26287683 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
265 0.57556297 0.84456561 0.25641457 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
266 0.58567772 0.84666139 0.24989748 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
267 0.59583934 0.84871722 0.24332878 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
268 0.60604528 0.8507331 0.23671214 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
269 0.61629283 0.85270912 0.23005179 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
270 0.62657923 0.85464543 0.22335258 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
271 0.63690157 0.85654226 0.21662012 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
272 0.64725685 0.85839991 0.20986086 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
273 0.65764197 0.86021878 0.20308229 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
274 0.66805369 0.86199932 0.19629307 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
275 0.67848868 0.86374211 0.18950326 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
276 0.68894351 0.86544779 0.18272455 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
277 0.69941463 0.86711711 0.17597055 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
278 0.70989842 0.86875092 0.16925712 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
279 0.72039115 0.87035015 0.16260273 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
280 0.73088902 0.87191584 0.15602894 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
281 0.74138803 0.87344918 0.14956101 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
282 0.75188414 0.87495143 0.14322828 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
283 0.76237342 0.87642392 0.13706449 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
284 0.77285183 0.87786808 0.13110864 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
285 0.78331535 0.87928545 0.12540538 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
286 0.79375994 0.88067763 0.12000532 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
287 0.80418159 0.88204632 0.11496505 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
288 0.81457634 0.88339329 0.11034678 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
289 0.82494028 0.88472036 0.10621724 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
290 0.83526959 0.88602943 0.1026459 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
291 0.84556056 0.88732243 0.09970219 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
292 0.8558096 0.88860134 0.09745186 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
293 0.86601325 0.88986815 0.09595277 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
294 0.87616824 0.89112487 0.09525046 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
295 0.88627146 0.89237353 0.09537439 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
296 0.89632002 0.89361614 0.09633538 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
297 0.90631121 0.89485467 0.09812496 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
298 0.91624212 0.89609127 0.1007168 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
299 0.92610579 0.89732977 0.10407067 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
300 0.93590444 0.8985704 0.10813094 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
301 0.94563626 0.899815 0.11283773 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
302 0.95529972 0.90106534 0.11812832 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
303 0.96489353 0.90232311 0.12394051 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
304 0.97441665 0.90358991 0.13021494 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
305 0.98386829 0.90486726 0.13689671 |
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
306 0.99324789 0.90615657 0.1439362 ]; |
20529
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
307 |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
308 p = rows (viridi); |
21563
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
309 map = interp1 (1:p, viridi, linspace (1, p, n), "linear"); |
20529
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
310 |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
311 endfunction |
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
312 |
21563
1fc6ae99c792
viridis.m: Clean up code to more closely follow other colormaps.
Rik <rik@octave.org>
parents:
20852
diff
changeset
|
313 |
20724
0338dc274ec5
Rewrite colormap demos with rgbplot() to show both composite and profile.
Carnë Draug <carandraug@octave.org>
parents:
20715
diff
changeset
|
314 ## A better demo of this colormap would be to plot the CIECAM02 values. |
20529
2e7a09136516
Add the default matplotlib colormap "viridis" to the list of colormaps
Carlo de Falco <cdf@users.sourceforge.net>
parents:
diff
changeset
|
315 %!demo |
20724
0338dc274ec5
Rewrite colormap demos with rgbplot() to show both composite and profile.
Carnë Draug <carandraug@octave.org>
parents:
20715
diff
changeset
|
316 %! ## Show the 'viridis' colormap profile and as an image |
0338dc274ec5
Rewrite colormap demos with rgbplot() to show both composite and profile.
Carnë Draug <carandraug@octave.org>
parents:
20715
diff
changeset
|
317 %! cmap = viridis (256); |
0338dc274ec5
Rewrite colormap demos with rgbplot() to show both composite and profile.
Carnë Draug <carandraug@octave.org>
parents:
20715
diff
changeset
|
318 %! subplot (2, 1, 1); |
0338dc274ec5
Rewrite colormap demos with rgbplot() to show both composite and profile.
Carnë Draug <carandraug@octave.org>
parents:
20715
diff
changeset
|
319 %! rgbplot (cmap, "composite"); |
0338dc274ec5
Rewrite colormap demos with rgbplot() to show both composite and profile.
Carnë Draug <carandraug@octave.org>
parents:
20715
diff
changeset
|
320 %! subplot (2, 1, 2); |
0338dc274ec5
Rewrite colormap demos with rgbplot() to show both composite and profile.
Carnë Draug <carandraug@octave.org>
parents:
20715
diff
changeset
|
321 %! rgbplot (cmap); |