File tree 2 files changed +19
-19
lines changed
2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 6
6
% intensities for a given colour hue.
7
7
%
8
8
% COLOURSCALE(...,'hue',H)
9
- % Use hue H for colour scheme (default 0.2 ).
10
- % H is a standard "HSV" hue, from zero to one , where approx.:
11
- % H=0.0 - red
12
- % H=0.1 - orange
13
- % H=0. 15 - yellow
14
- % H=0. 35 - green
15
- % H=0. 55 - light blue
16
- % H=0.6 - dark blue
17
- % H=0. 75 - purple
18
- % H=0. 85 - magenta
19
- % H=1.0 - red again
9
+ % Use hue H for colour scheme (default 20 ).
10
+ % H is a standard "HSV" hue, from 0 to 100 , where approx.:
11
+ % H = 0 - red
12
+ % H = 10 - orange
13
+ % H = 15 - yellow
14
+ % H = 35 - green
15
+ % H = 55 - light blue
16
+ % H = 60 - dark blue
17
+ % H = 75 - purple
18
+ % H = 85 - magenta
19
+ % H = 100 - red again
20
20
%
21
21
% COLOURSCALE(...,'chroma',C)
22
22
% Use chroma C for colour scheme (default 70).
79
79
%% Option parsing
80
80
81
81
p = inputParser ;
82
- p .addOptional(' hue' ,0.2 );
82
+ p .addOptional(' hue' ,20 );
83
83
p .addOptional(' chroma' ,70 );
84
84
p .addOptional(' repeat' ,1 );
85
85
p .addOptional(' permute' ,[]);
145
145
end
146
146
147
147
hcl = nan(Ncol ,3 );
148
- hcl(: ,1 ) = hue * 360 ;
148
+ hcl(: ,1 ) = hue * 3.6 ;
149
149
hcl(: ,2 ) = chroma ;
150
150
hcl(: ,3 ) = linspace(lmin ,lmax ,Ncol )' ;
151
151
Original file line number Diff line number Diff line change 9
9
% points per graph:
10
10
p = 20 ;
11
11
12
- % colour: (0-1 )
13
- HUE = 0.1 ;
12
+ % colour: (0-100 )
13
+ HUE = 10 ;
14
14
CHROMA = 60 ;
15
15
16
16
% linewidths:
17
- LW = [2 4 ]; % more exaggerated than default
17
+ LW = [0.5 4 ]; % more exaggerated than default
18
18
19
19
figure(1 )
20
20
for m = 1 : M
37
37
N = 4 ;
38
38
39
39
% lines per graph:
40
- l = 5 ;
40
+ l = 6 ;
41
41
42
42
% points per line:
43
43
p = 20 ;
44
44
45
- hrange = linspace(0 ,1 ,M * N + 1 );
45
+ hrange = linspace(0 ,100 ,M * N + 1 );
46
46
hrange(end ) = [];
47
47
48
48
figure(2 )
53
53
xx = linspace(0 ,1 ,p );
54
54
yy = repmat(1 : l ,[p 1 ])+rand(p ,l );
55
55
plot(xx ,yy ,' linewidth' ,2 )
56
- colourscale(' hue' ,hrange(c ),' lumin' ,[1 99 ]);
56
+ colourscale(' hue' ,hrange(c ),' lumin' ,[20 90 ]);
57
57
title([' H=' ,num2str(hrange(c ))])
58
58
axis tight
59
59
end
You can’t perform that action at this time.
0 commit comments