ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@suddenlink.net>
To: Context Mailing List List <ntg-context@ntg.nl>
Subject: Keeping it single valued
Date: Wed, 18 Apr 2007 23:01:15 -0700	[thread overview]
Message-ID: <038B14B4-72BC-4061-BCFA-74F6A97FEF5A@suddenlink.net> (raw)

All,

This example from the Metapost manual is beyond my expertise. The  
second figure is sweet, just what I would want. Can anyone wax  
philosophic for a bit and explain why the y-scaling keeps the second  
function single valued?

starttext

\startbuffer[figure]
numeric scf, t[];
3.2scf=2.4in;
path fun;
fun:=(0,-1)..(1,.5){right}..(1.9,.2){right}..{curl .1}(3.2,2);
fun:=fun scaled scf;
draw fun;
\stopbuffer

\placefigure
[][fig:one]
{Caption.}
{\processMPbuffer[figure]}

\startbuffer[figure]
numeric scf, yscl, t[];
3.2scf=2.4in;
path fun;
yscl=.1;  %keep the function single valued
fun:=(0,-1yscl)..(1,.5yscl){right}..(1.9,.2yscl){right}..{curl .1} 
(3.2,2yscl);
fun:=fun yscaled (1/yscl);
fun:=fun scaled scf;
draw fun;
\stopbuffer

\placefigure
[][fig:one]
{Caption.}
{\processMPbuffer[figure]}

\stoptext

             reply	other threads:[~2007-04-19  6:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-19  6:01 David Arnold [this message]
2007-04-19  7:09 ` Mikael Persson

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=038B14B4-72BC-4061-BCFA-74F6A97FEF5A@suddenlink.net \
    --to=dwarnold45@suddenlink.net \
    --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).