Re: Question about Maple (a color problem)
- From: "Alec Mihailovs" <alec@xxxxxxxxxxxxx>
- Date: Mon, 05 Dec 2005 21:53:48 GMT
"anthony" <anthony.canu@xxxxxxxxxxx> wrote in message
news:1133813316.195675.223320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I tried that but unfortunately :
>
>> Enumerate:= proc(L) local n; [seq]([n,L[n]],n=1..nops(L)) end;
>
> Enumerate :=
>
> proc(L) local n; [seq]([n, L[n]], n = 1 .. nops(L)) end proc
>
>> plots[display](map(x->plots[textplot](x,color=[orange,red,blue,brown,green,coral,cyan,magenta,turquoise,violet][parse(x[3])+1]),[seq(map(x->ListTools:-Interleave(x,[i]),Enumerate(StringTools:-Explode(sprintf("%02d",die()))))[],i=1..10)]),axes=none,view=[-15..15,1..10]);
> Error, (in sprintf) integer expected for integer format
You have to enter your definition of die() before doing that, i.e.
die := rand(0..36):
Alec
.
- Follow-Ups:
- Re: Question about Maple (a color problem)
- From: anthony
- Re: Question about Maple (a color problem)
- References:
- Question about Maple (a color problem)
- From: anthony
- Re: Question about Maple (a color problem)
- From: anthony
- Re: Question about Maple (a color problem)
- From: Alec Mihailovs
- Re: Question about Maple (a color problem)
- From: anthony
- Re: Question about Maple (a color problem)
- From: Robert Israel
- Re: Question about Maple (a color problem)
- From: anthony
- Re: Question about Maple (a color problem)
- From: Alec Mihailovs
- Re: Question about Maple (a color problem)
- From: anthony
- Re: Question about Maple (a color problem)
- From: Alec Mihailovs
- Re: Question about Maple (a color problem)
- From: anthony
- Re: Question about Maple (a color problem)
- From: Alec Mihailovs
- Re: Question about Maple (a color problem)
- From: anthony
- Re: Question about Maple (a color problem)
- From: israel
- Re: Question about Maple (a color problem)
- From: anthony
- Re: Question about Maple (a color problem)
- From: anthony
- Question about Maple (a color problem)
- Prev by Date: Re: Maple Vs Mathematica : How much of the source code?
- Next by Date: Re: Maple Vs Mathematica debugging
- Previous by thread: Re: Question about Maple (a color problem)
- Next by thread: Re: Question about Maple (a color problem)
- Index(es):