source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/graphics/YlGnBu_colors.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

  • Property svn:executable set to *
File size: 518 bytes
Line 
1function 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
14if nargin < 1
15  n = 4;
16end
17
18if 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];
20else
21  error('can''t make that many levels');
22end
Note: See TracBrowser for help on using the repository browser.