From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87601 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Strange behavior with Metapost Date: Tue, 27 May 2014 22:19:14 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0248813290==" X-Trace: ger.gmane.org 1401221982 26807 80.91.229.3 (27 May 2014 20:19:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2014 20:19:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 27 22:19:36 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WpNqP-00061U-CR for gctc-ntg-context-518@m.gmane.org; Tue, 27 May 2014 22:19:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C166210263 for ; Tue, 27 May 2014 22:19:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lMzUmty0u1L1 for ; Tue, 27 May 2014 22:19:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 443D21022D for ; Tue, 27 May 2014 22:19:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E40DF101E8 for ; Tue, 27 May 2014 22:19:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id O3Jsy52KK1Pv for ; Tue, 27 May 2014 22:19:22 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 7BBB5101E6 for ; Tue, 27 May 2014 22:19:17 +0200 (CEST) Original-Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4RKgJPM007388 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 27 May 2014 22:42:20 +0200 Original-Received: by mail-ie0-f180.google.com with SMTP id tp5so9422755ieb.11 for ; Tue, 27 May 2014 13:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VlQ+/Kd39TcIAyBB/O9+ZHVHLGmkTtEFSj0HfYBmHys=; b=kcJflHxw3p+Rn5MdU+QPUzWHULf5UmQd1GVLGEhehShjSHs0CB2dxN+2epl3bL6ciz 2rVizPSJI/TkbrLJ+JcRGzm6Glbi5SZA2EcJowjS5Qkh07Etghc4OyRCn5LMNb1ucx4G d0a9WYKVWM6zfaXhrBjlNUqzcajrlUwj6dpWyS/fkCBMW2azulutJwcrb0jobCEWLTjp ssqKMhfH3ZcV7Lbel+gGMSfT+F4qAldSRG88nhzblTQjAy+JlI3LdiTNn31VSCbatybN ffx3LOavb6igYuKGM1Hk7jHeqGU/JhnGyJC+bvH6/7CJxD3jhhJhaeflXXuQkWMdip3g ypMw== X-Received: by 10.42.98.145 with SMTP id s17mr5750409icn.73.1401221954555; Tue, 27 May 2014 13:19:14 -0700 (PDT) Original-Received: by 10.50.1.173 with HTTP; Tue, 27 May 2014 13:19:14 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01M78GjhD - e4826ee05aad - 20140527 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87601 Archived-At: --===============0248813290== Content-Type: multipart/alternative; boundary=90e6ba61513ada576204fa6768d4 --90e6ba61513ada576204fa6768d4 Content-Type: text/plain; charset=UTF-8 Hello, Why curve drawn is not that expected ? Fabrice \starttext \startMPcode input hvdm; l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0; defineDefaultArrow (l, r, alfa, beta, gamma); numeric xmin, xmax, ymin, ymax; xmin :=-2; xmax := 4; ymax :=5 ;ymin:=-1; u := 1cm; pickup pencircle scaled 1pt ; drawarrow ((xmin,0) -- (xmax,0)) scaled u; drawarrow ((0,ymin) -- (0,ymax)) scaled u; draw tightfunction ("x", "2*(x-1)*(x-1)+2", xmin, xmax, (xmax-xmin)/10) scaled u; setbounds currentpicture to boundingbox (((xmin,ymin) -- (xmax,ymax)) scaled u); \stopMPcode \stoptext --90e6ba61513ada576204fa6768d4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,
Why curve drawn is not
that expected ?
Fabrice

\starttext
\startMPcode
=C2=A0=C2=A0=C2=A0=C2=A0= input hvdm;
=C2=A0=C2=A0=C2=A0=C2=A0 l:=3D2.8mm; r:=3D0.6; alfa:=3D45; = beta:=3D0; gamma:=3D0;
=C2=A0=C2=A0=C2=A0=C2=A0 defineDefaultArrow (l, = r, alfa, beta, gamma);=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0 numeric xmi= n, xmax, ymin, ymax;
=C2=A0=C2=A0=C2=A0=C2=A0 xmin :=3D-2; xmax :=3D 4; ymax :=3D5 ;ymin:=3D-1; = u :=3D 1cm;
=C2=A0=C2=A0=C2=A0=C2=A0 pickup pencircle scaled 1pt ;
= =C2=A0=C2=A0=C2=A0=C2=A0 drawarrow ((xmin,0) -- (xmax,0)) scaled u;
=C2= =A0=C2=A0=C2=A0=C2=A0 drawarrow ((0,ymin) -- (0,ymax)) scaled u;
=C2=A0= =C2=A0=C2=A0=C2=A0 draw tightfunction ("x", "2*(x-1)*(x-1)+2= ", xmin, xmax, (xmax-xmin)/10)
=C2=A0=C2=A0=C2=A0=C2=A0 scaled u;
=C2=A0=C2=A0=C2=A0=C2=A0 setbounds cu= rrentpicture to boundingbox (((xmin,ymin) --
=C2=A0=C2=A0=C2=A0=C2=A0 (= xmax,ymax)) scaled u);
\stopMPcode
\stoptext


--90e6ba61513ada576204fa6768d4-- --===============0248813290== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0248813290==--