From: Fabrice <couvreur.fabrice@wanadoo.fr>
To: ntg-context@ntg.nl
Subject: Re: Add labels to a grid (Metafun)
Date: Fri, 06 Mar 2015 19:11:49 +0100 [thread overview]
Message-ID: <54F9EDE5.6020601@wanadoo.fr> (raw)
In-Reply-To: <20150306183818.1bcf812f@iram-ha-003587.extra.cea.fr>
thank you very much Alain, I think I understood for the format "@d" but
for other formats, I will need documentation.
Fabrice
\definecolor[mycolor][c=.4,m=0,y=0,k=0]
\starttext
\start
\switchtobodyfont[small]
\startMPcode
xmin := 0; xmax := 22; ymax :=460 ;ymin:=0; u := 0.5cm; v:= 0.025cm;
drawoptions(withpen pencircle scaled 0.5pt withcolor
\MPcolor{mycolor});
draw hlingrid(ymin,ymax,20,11.5cm,11cm);
draw vlingrid(xmin,xmax,2,11cm,11.5cm);
drawoptions(withpen pencircle scaled 1pt) ;
drawarrow (0,0)--(22,0) scaled u ;
drawarrow (0,0)--(0,460) scaled v ;
draw vlintext(0,20,2,10cm,"@d") shifted (0,-0.25cm) ;
draw hlintext(0,420,20,11cm,"@d") shifted (-0.35cm,0) ;
label.bot( "$x$",(10.8cm,-0.1cm)) ;
label.lft( "$y$",(-0.1cm,11.4cm)) ;
\stopMPcode
\stop
\stoptext
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2015-03-06 18:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-06 17:15 Fabrice Couvreur
2015-03-06 17:38 ` Alan BRASLAU
2015-03-06 18:11 ` Fabrice [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54F9EDE5.6020601@wanadoo.fr \
--to=couvreur.fabrice@wanadoo.fr \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).