|
805 | 805 | y = (ii-offset)*ones(length(data{ii}),1)+jitter_kde; x = data{ii}(:);
|
806 | 806 | end
|
807 | 807 | if opt.usescatter
|
808 |
| - sc = scatter(x,y,opt.datasymbol,'MarkerEdgeColor',scl*0.3*opt.groupcolor(ii,:),... |
| 808 | + sc = scatter(x,y,opt.datasymbol, ... |
| 809 | + 'MarkerEdgeColor',scl*0.3*opt.groupcolor(ii,:),... |
809 | 810 | 'MarkerFaceColor',scl*0.3*opt.groupcolor(ii,:),...
|
810 |
| - 'MarkerEdgeAlpha',0.1 + 0.9/numel(x).^.3,'MarkerFaceAlpha',0.1 + 0.9/numel(x).^.3); |
| 811 | + 'MarkerEdgeAlpha',0.05 + 0.25/numel(x).^.3, ... |
| 812 | + 'MarkerFaceAlpha',0.05 + 0.25/numel(x).^.3); |
811 | 813 | if opt.datasymbol, sc.SizeData = 12; end % dotlike but with transparency
|
812 | 814 | else
|
813 | 815 | plot(x,y,opt.datasymbol,'Color',[scl*0.3*opt.groupcolor(ii,:)]);
|
|
1169 | 1171 | Range=maximum-minimum;
|
1170 | 1172 | MIN=minimum-Range/2; MAX=maximum+Range/2;
|
1171 | 1173 | end
|
| 1174 | +if MIN==MAX, MIN=MIN-1; MAX=MAX+1; end |
1172 | 1175 | % set up the grid over which the density estimate is computed;
|
1173 | 1176 | R=MAX-MIN; dx=R/(n-1); xmesh=MIN+[0:dx:R]; N=length(unique(data));
|
1174 | 1177 | %bin the data uniformly using the grid defined above;
|
|
0 commit comments