[Scilab-users] transparently overlapping histograms
Heinz Nabielek
heinznabielek at me.com
Fri Jul 19 13:44:58 CEST 2019
G R E A T
T H A T I S I T
WHAT I HAD BEEN LOOKING FOR....
HEINZ
> On 19.07.2019, at 13:41, Samuel Gougeon <sgougeon at free.fr> wrote:
>
> 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";
>
> <bjgpmldpmdnlheaj.png>
>
> 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
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
More information about the users
mailing list