From: Oscar Marietti on
Try



figure
pDataMin = min(projectedData);
pDataMax = max(projectedData);
pDataStep =abs((pDataMax-pDataMin)/50);
[nPlus,xoutPlus] = hist(projectedData(positiveSeeds),pDataMin:pDataStep:pDataMax);
[nMinus,xoutMinus] = hist(projectedData(negativeSeeds),pDataMin:pDataStep:pDataMax);
stackData=[nMinus',nPlus'];
bar(xoutPlus,stackData,'stacked');
From: Oscar Marietti on
try

figure
pDataMin = min(projectedData);
pDataMax = max(projectedData);
pDataStep =abs((pDataMax-pDataMin)/50);
[nPlus,xoutPlus] = hist(projectedData(positiveSeeds),pDataMin:pDataStep:pDataMax);
[nMinus,xoutMinus] = hist(projectedData(negativeSeeds),pDataMin:pDataStep:pDataMax);
stackData=[nMinus',nPlus'];
bar(xoutPlus,stackData,'stacked');