Added source Matlab code for reference
This commit is contained in:
parent
b8af977117
commit
b5d99903d2
186 changed files with 61405 additions and 1 deletions
16
matlab/graph/showColors2.m
Normal file
16
matlab/graph/showColors2.m
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
function showColors(n_col)
|
||||
|
||||
if n_col>36
|
||||
error('Maximum number of colors 36');
|
||||
end
|
||||
|
||||
figure('NumberTitle','off','Name','Colors');
|
||||
|
||||
set(gca, 'Xlim', [-.5 , n_col+.5], 'YLim', [0,1], ...
|
||||
'XTick', [], 'XTickLabel', [], 'YTick', [], 'YTickLabel', []);
|
||||
|
||||
varit = giveColors(n_col);
|
||||
for k=1:length(varit)
|
||||
h0=patch([k-1 k k k-1], [0 0 1 1], varit(k,:));
|
||||
set(h0,'EdgeColor','none');
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue