[Scilab-users] transparently overlapping histograms

Heinz Nabielek heinznabielek at me.com
Fri Jul 19 13:22:56 CEST 2019


On 19.07.2019, at 09:42, Antoine Monmayrant <antoine.monmayrant at laas.fr> wrote:
> 
> 
> Le 19/07/2019 à 09:30, Heinz Nabielek a écrit :
>> Scilab friends:
>> 
>> I have seen transparently overlapping histograms in R and in Matlab. But how do I do that in Scilab?
> Basically?
> You can't.

Primitive, but simple trick to outwit Scilab for my purposes:

first dataset plotted with histplot
subsequent datasets with histc and plotting squares with same width as histogram in differen colours...
h

d=.25;i=-5:d:5;j=-5+d/2:d:5-d/2;

plot2d(0,0,0,"012", " ",[-5,-.05,5,.5]);

histplot(i,grand(10000,1,'nor',0,1),style=5);

A=histc(i,grand(1000,1,'nor',0,1));plot(j,A,'ks','markersize',9);
A=histc(i,grand(1000,1,'nor',0,1));plot(j,A,'gs','markersize',9);
A=histc(i,grand(1000,1,'nor',0,1));plot(j,A,'bs','markersize',9);


More information about the users mailing list