[scilab-Users] Re : [scilab-Users] Re : [scilab-Users] grayplot scaling

Antoine Monmayrant antoine.monmayrant at laas.fr
Mon Nov 8 22:38:31 CET 2010


  Le 08/11/10 21:55, Bouchra Bensiali a écrit :
> Hello and thank you for your answers.
>
> Yes, the context is to use a common color scale among several images, excuse it
> wasn't clear in my first message.
To get the same colorscale on several images, I tend to use contourf 
instead of grayplot.
I have an example at work, I'll post it here tomorrow.
BTW, is it just me or scilab.org is down?

Antoine

> And another use would be for animation, as
> said in the bugzilla link, "zminmax option is important for animation to have a
> colorbar scale which is not changing from frame to frame".
>
> I tried the following:
> --
> x = linspace(0,1,101);
> z = cos(2*%pi*x)'*sin(2*%pi*x);
> zm = min(z); zM = max(z);
> xset("window",1)
> xset("colormap",jetcolormap(64))
> colorbar(zm,zM)
> grayplot(x,x,z)
>
> z2 = x'*x*0.4;
> xset("window",2)
> xset("colormap",jetcolormap(64))
> colorbar(zm,zM)
> grayplot(x,x,z2)
>
> e = gce(); m = e.data.z;
> e.data.z = zm+(m-min(m))/(max(m)-min(m))*(zM-zm);
> --
> but it doesn't work for me, am I doing something wrong?
>
> Thanks.
>
>
>
> ----- Message d'origine ----
> De : Samuel GOUGEON<Samuel.Gougeon at univ-lemans.fr>
> À : users at lists.scilab.org
> Envoyé le : Lun 8 novembre 2010, 19h 14min 13s
> Objet : [scilab-Users] Re : [scilab-Users] grayplot scaling
>
> ----- Message d'origine -----
> De : Stéphane Mottelet
> Date : 08/11/2010 18:23:
>> What is requested by Bouchra is as intuitive as wanting to change axis limits
>> to easily compare two plots. This feature (caxis stuff) is really missing in
>> Scilab graphics.
>>
>> S.
> For instance to use and share the same colorbar for several plots?
> Would the following be a work-around?
> http://bugzilla.scilab.org/show_bug.cgi?id=4808#c3
>
>
>
>




More information about the users mailing list