Last change
on this file since 177 was
37,
checked in by (none), 15 years ago
|
Added original make3d
|
-
Property svn:executable set to
*
|
File size:
518 bytes
|
Line | |
---|
1 | function colors = YlGnBu_colors(n)
|
---|
2 | % YlGnBu_colors A good sequential colormap.
|
---|
3 | % YlGnBu_colors(n) returns an RGB matrix of n colors (default 4).
|
---|
4 | % These colors form a sequential colormap (colors easily perceived to lie
|
---|
5 | % on a sequence).
|
---|
6 | %
|
---|
7 | % Example:
|
---|
8 | % colormap(YlGnBu_colors(32))
|
---|
9 | %
|
---|
10 | % See also YR_colors
|
---|
11 |
|
---|
12 | % Written by Tom Minka
|
---|
13 |
|
---|
14 | if nargin < 1
|
---|
15 | n = 4;
|
---|
16 | end
|
---|
17 |
|
---|
18 | if n == 4
|
---|
19 | colors = [1 1 0.8; 0.63 0.855 0.706; 0.255 0.714 0.765; 0.22 0.42 0.69];
|
---|
20 | else
|
---|
21 | error('can''t make that many levels');
|
---|
22 | end
|
---|
Note: See
TracBrowser
for help on using the repository browser.