Hello,
Le 23/11/2016 16:05, SCHULZ Wolfgang a écrit :
Hello,
I'm using Scilab 6 beta 2 under Win 10 and I have a problem with grayplot and a
colorbar.
With the following script I would expect to have at least 1 square colored in
red because I scale the colorbar to the maximum of the matrix but with grayplot
it doesn't work:
map = jetcolormap(64);
f=get("current_figure");
f.color_map = map;
dxp=0:5:10;
dyp=0:5:10;
nb_xy=[64 30 2; 4 5 6; 7 8 33]
colorbar(1,max(nb_xy),[1 64]);
grayplot(dxp,dyp,nb_xy)
Using Sgrayplot shows 1 corner in red but in this case I cannot see the
individual grid cells what is absolutely necessary for me.
What can I do? What is my mistake?
The grayplot() family sets the color of each cell to the color index
being the *average* of its 4 vertices values.
This is why you don't get 64 anywhere.
To set colors to the given values, Matplot() (or Matplot1() if you
expect true axes) must be used instead, as proposed by Rafael.
Samuel Gougeon
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users