[metapost] enumeration

Karel horakk at math.cas.cz
Sun Nov 1 19:31:23 CET 2009


Steve MC Han napsal(a):
> Thank you for your response.
>  
> One other question: Is there any way, labeling with alphbetical order? i,e,
>  
> If we want numbering each corner of a octagon, we would do this
>  
> for i:=0 upto 7:
> label(decimal(i), u*dir(360/8));
> endfor;
>  
> But how could we label with A,B,C,... instead of 1,2,3....
>  

Try

for i=1 upto 8: label(char(64+i),u*dir(360i/8)); 
endfor


Best wishes,
Karel Horak


More information about the metapost mailing list