Taco Hoekwater wrote: > Hi Peter, > >> def draw_vline(expr h,a,b,c)= >> draw (.5u,.5u)--(.5u,h*u-.5u) withpen pensquare scaled u > > That scales the whole draw statement, just like if you had said: > > draw (.5u,.5u)--(.5u,h*u-.5u) scaled u withpen pensquare > > So you need to do it like this: > > draw (.5u,.5u)--(.5u,h*u-.5u) withpen (pensquare scaled u) > Hi Taco, thanks for the answer. Sadly I doesn't work here; all drawn lines are still fixed to 1pt. Even my own defined pen (upen) in draw_hline is completely ignored. Greetings, Peter > Cheers, Taco > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > >