1 function p = plot_mu_frequency(mu_values,params)
2 %
function p = plot_mu_frequency(mu_values,params)
4 %
function plotting the mu_values (columnwise 2D/3D vectors) as a
5 % point distribution, the colors and size indicating the frequency
8 % required fields of params:
9 % mu_names: cell array of the names of the components of mu_values
11 % determine frequency vectors in a list
13 % marker sizes minimum and maximum
17 % eliminate possible NaN entries in list:
19 while ~isempty(find(isnan(mu_values(:,1))))
20 mu_values = [mu_values(:,2:end)];
23 if (length(params.mu_names) == 2)
24 mu_values = [mu_values; zeros(1,size(mu_values,2))];
25 params.mu_names = [params.mu_names, {
''}];
28 [mu_single, mu_frequency] = count_column_frequency(mu_values);
30 %l = plot3(mu_values(1,:),mu_values(2,:),mu_values(3,:),
'.');
32 cmax = max(mu_frequency);
41 j = find(mu_frequency==i);
43 plot_args = [plot_args, ...
44 {mu_single(1,j)},{mu_single(2,j)},{mu_single(3, ...
49 % first plot all black
50 %p = plot3(plot_args{:}), hold on;
52 % wi = (mmax*((pfreq(i)-1)/(cmax-1)) + mmin*(1-(pfreq(i)-1)/(cmax-1)))*1.1;
53 %
set(p(i),
'Markersize',wi,
'Color',cm(1,:));
55 % then plot all with gray shades
56 p = plot3(plot_args{:});
59 wi = mmax*((pfreq(i)-1)/(cmax-1)) ...
60 + mmin*(1-(pfreq(i)-1)/(cmax- 1));
64 set(p(i),'Markersize',wi,'MarkerFaceColor',cm(pfreq(i),:),'Marker','o',...
65 'MarkerEdgeColor',[0 0 0]);
71 set(c,'Clim',[0.5,cmax+0.5]);
74 xlabel(params.mu_names{1});
75 ylabel(params.mu_names{2});
76 zlabel(params.mu_names{3});
78 % TO BE ADJUSTED TO NEW SYNTAX