<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      Le 23/11/2016 16:05, SCHULZ Wolfgang a écrit :<br>
    </div>
    <blockquote
      cite="mid:07A8AF089844A549B0F0CCC727AF31AA74B60A77@OVEKBG.ove.at"
      type="cite">
      <pre wrap="">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?</pre>
    </blockquote>
    The grayplot() family sets the color of each cell to the color index
    being the <b>average</b> of its 4 vertices values.<br>
    This is why you don't get 64 anywhere.<br>
    <br>
    To set colors to the given values, Matplot() (or Matplot1() if you
    expect true axes) must be used instead, as proposed by Rafael.<br>
    <br>
    Samuel Gougeon<br>
    <br>
  </body>
</html>