[Scilab-users] transparently overlapping histograms

Samuel Gougeon sgougeon at free.fr
Fri Jul 19 13:41:43 CEST 2019


Hello Heinz,

After histplot(), you can just disable the filling of bars:

d = rand(1,10000,'normal');
clf
histplot(-3:0.5:3,d,normalization=%f);
histplot(-3:0.5:3,d(1:5000)+1,normalization=%f,style=color("red"));
*gca().children.children.fill_mode = "off";*


Samuel

Le 19/07/2019 à 13:22, Heinz Nabielek a écrit :
> 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);
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190719/fb0ba244/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bjgpmldpmdnlheaj.png
Type: image/png
Size: 5214 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20190719/fb0ba244/attachment.png>


More information about the users mailing list