I want to calculate ~10 kernel density estimates and overlay them on top of each other with varying transparency such that all X_f are on the same plot.
figure;ksdensity(X_f(:,1)); hold on alpha(1)ksdensity(X_f(:,2)); hold onalpha(0.8)ksdensity(X_f(:,3)); hold onalpha(0.6)ksdensity(X_f(:,4)); hold onalpha(0.4)
Is it possible to change the transparency of kernel density estimates in a similar way/or else how can this be done?
Best Answer