Re: [NTG-context] Is it possible to have a rotated label in Metafun?

2020-05-25 Thread Hans Hagen

On 5/24/2020 10:41 AM, Otared Kavian wrote:

Hi all,

In a graph which I am trying to draw with LuaMetafun, I have a variable the 
values of which I want to show on the graph rotated 90 degrees (or whatever 
other value).
Is it possible to do that?

An example is:

numeric a, u ; u := 10mm ;
a := 4.5 ;
label.bot(a, (10,-0.1) scaled u) % I would like to have printed 4.5 
rotated 90 degrees for instance.


label.bot(textext(a) rotated 45, (10,-0.1) scaled u);

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Is it possible to have a rotated label in Metafun?

2020-05-24 Thread Otared Kavian
Hi all,

In a graph which I am trying to draw with LuaMetafun, I have a variable the 
values of which I want to show on the graph rotated 90 degrees (or whatever 
other value).
Is it possible to do that?

An example is:

numeric a, u ; u := 10mm ;
a := 4.5 ;
label.bot(a, (10,-0.1) scaled u) % I would like to have printed 4.5 
rotated 90 degrees for instance.

Thanks in advance for any help: Otared

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___