Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

grayplot scaling

44 views
Skip to first unread message

Bouchra Bensiali

unread,
Nov 7, 2010, 11:17:03 AM11/7/10
to
Hello,

I want to use a common color scale among several images. In Matlab, it
is possible with the caxis command, is there an equivalent in Scilab?
I want to do something like this but within Scilab:

--
figure,
x = linspace(0,1,101);
z = cos(2*pi*x)'*sin(2*pi*x);
zm = min(min(z)); zM = max(max(z));
pcolor(x,x,z), shading flat,
caxis manual; caxis([zm zM]);
colorbar

figure,
z2 = x'*x*0.4;
pcolor(x,x,z2), shading flat,
caxis manual; caxis([zm zM]);
colorbar
--

Thank your for your help.


Stéphane Mottelet

unread,
Nov 7, 2010, 1:53:20 PM11/7/10
to
Hi,

You can use the same code
if you install the plotlib (version >= 0.4)
available thru the Atoms gui.

S.

Le 07/11/10 17:17, Bouchra Bensiali a écrit :

Bouchra Bensiali

unread,
Nov 7, 2010, 3:19:05 PM11/7/10
to
Thank you for the answer,

Actually, I thought about this solution but I have some problems with
it. I installed plotlib following http://atoms.scilab.org/toolboxes/plotlib/0.42,
so when I start scilab, I have this:
Start plotlib toolbox 0.42
Load macros
Load help

but then when I try to run the previous example, scilab just closes.
In fact I have some problems with scilab-5.2.2, because even a normal
plot bloks it. Can I use plotlib with scilab-4.1.2?
Or is there a way to do the scaling directly in scilab?

Thank you.


On 7 nov, 19:53, Stéphane Mottelet

Stéphane Mottelet

unread,
Nov 8, 2010, 4:54:10 AM11/8/10
to
Le 07/11/10 21:19, Bouchra Bensiali a écrit :

> Thank you for the answer,
>
> Actually, I thought about this solution but I have some problems with
> it. I installed plotlib following http://atoms.scilab.org/toolboxes/plotlib/0.42,
> so when I start scilab, I have this:
> Start plotlib toolbox 0.42
> Load macros
> Load help
>
> but then when I try to run the previous example, scilab just closes.
> In fact I have some problems with scilab-5.2.2, because even a normal
> plot bloks it. Can I use plotlib with scilab-4.1.2?
> Or is there a way to do the scaling directly in scilab?

What graphics card do you have on your computer ?

S.

Message has been deleted

Bouchra Bensiali

unread,
Nov 8, 2010, 3:07:49 PM11/8/10
to
Hello,

I read: Mobile Intel(R) 4 Series Express Chipset Family.

Thank you for your help.


On 8 nov, 10:54, Stéphane Mottelet


<stephane.motte...@nospam.gnark.gnark> wrote:
> Le 07/11/10 21:19, Bouchra Bensiali a écrit :
>
> > Thank you for the answer,
>
> > Actually, I thought about this solution but I have some problems with

> > it. I installed plotlib followinghttp://atoms.scilab.org/toolboxes/plotlib/0.42,

Message has been deleted
0 new messages