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

Bouchra Bensiali bouchra.bensiali at yahoo.fr
Mon Nov 8 21:55:02 CET 2010


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. 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