On Wed, 5 Jul 2006, Aditya Mahajan wrote:

>  p := textext("\AXIS{z}{3}{Optical Size}");
>  p := p rotatedaround (z[13], angle(z[5]-z[1])) ;
>  % inv tan(1.5/2)
>  % Let metapost calculate it for you
>
>  % Ugly kludge
>  label(p,z[13]+(0,2labeloffset));

This can be done neatly if one remembers that label is equivalent to 
draw thelabel. Hence,

  p := textext("\AXIS{z}{3}{Optical Size}");
  label.top(p,z[13]) rotatedaround (z[13], angle(z[5]-z[1]) ) ;

Aditya
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to