[scilab-Users] Rectangles Problem
David Arnold
dwarnold45 at suddenlink.net
Sat Jan 22 17:36:56 CET 2011
Samuel,
Thanks, that worked. You can see how new I am to Scilab.
D.
On Jan 22, 2011, at 2:19 AM, Samuel Gougeon wrote:
>
> 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