[Therion] FW: Scalebar meatpost labelling errors

Thomas Holder thomas at thomas-holder.de
Sat Feb 6 12:42:29 CET 2010


Hi Bruce,

>> that's strange, it should work at any scale. What is error cp-02 ?
> 
> Cp-02 from therion, actually the metapost complains about the tmpx in
> the loop that calculates the position of the intermediate text
> labels. It is some sort of numeric overflow. As from the wiki it only
> runs for me if scale = 1:1000. If I constrain the loop to cycle only
> twice it runs for scale =1:500, 1:1000, 1:2000, 1:5000, but crashes
> similarly for 1:10000.

change the line to

   tmpx:=tmpl * (i * 2 / l - 1);

works for me up to 1:30000

I'll change it in the wiki.

Cheers,
   Thomas



More information about the Therion mailing list