[scilab-Users] Rectangles Problem

Samuel Gougeon Samuel.Gougeon at univ-lemans.fr
Sat Jan 22 11:19:03 CET 2011


David Arnold <dwarnold45 at suddenlink.net> a écrit :

> HI,
>
> I'm trying to draw some rectangles under a curve. I'm doing  
> something wrong, but not sure what it is, as my rectangles don't  
> show up.
>
> Any suggestions?

OK, the only problem is the color index 34 you have chosen.
By default, it is not defined: only 32 colors are defined
in the default colormap of a figure.
So, either you may choose a predefined color <= 32, or you
may define your own one. Examples:

xrects(rects,30*ones(xx))
xrects(rects,color(56, 10,40)*ones(xx))

It has worked for me because i defined and used other colors
for some other work, before trying your example.

Regards
Samuel





More information about the users mailing list