ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MetaFun:  Rotate picture without rotating labels
@ 2018-04-05 23:05 Henri Menke
  2018-04-05 23:13 ` Henri Menke
  0 siblings, 1 reply; 2+ messages in thread
From: Henri Menke @ 2018-04-05 23:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

In the MWE below I would like py to be px rotated by 90 degrees but the labels
should not be rotated.  Is it possible?

Cheers, Henri

---

\startMPpage

  path p ; p := origin .. (2,1) .. (3,0) .. (2,-1) .. (-2,1) .. (-3,0) .. (-2,-1) .. cycle ;
  picture px, py ;
  px := image (
    draw p scaled 6 ;
    label("$+$",(+10,0));
    label("$-$",(-10,0));
  ) ;
  py := px rotated 90 ;

  draw px ;
  draw py ; % meh :/

\stopMPpage

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-05 23:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-05 23:05 MetaFun: Rotate picture without rotating labels Henri Menke
2018-04-05 23:13 ` Henri Menke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).