From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92242 Path: news.gmane.org!not-for-mail From: John Kitzmiller Newsgroups: gmane.comp.tex.context Subject: m-graph read data and plot Date: Thu, 6 Aug 2015 11:30:20 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/mixed; boundary="===============0131795249==" X-Trace: ger.gmane.org 1438875096 10196 80.91.229.3 (6 Aug 2015 15:31:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 15:31:36 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 06 17:31:23 2015 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 1ZNN8X-00032R-Ik for gctc-ntg-context-518@m.gmane.org; Thu, 06 Aug 2015 17:31:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C38810327 for ; Thu, 6 Aug 2015 17:31:16 +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 kBAFOnfuWHAf for ; Thu, 6 Aug 2015 17:31:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 08EE610234 for ; Thu, 6 Aug 2015 17:30:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 010BD101F7 for ; Thu, 6 Aug 2015 17:30:42 +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 vJ9CMv_vhDNU for ; Thu, 6 Aug 2015 17:30:40 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id DC18D101E6 for ; Thu, 6 Aug 2015 17:30:37 +0200 (CEST) Original-Received: from bosmailout05.eigbox.net (bosmailout05.eigbox.net [66.96.185.5]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t76FUZs4011776 for ; Thu, 6 Aug 2015 17:30:36 +0200 Original-Received: from bosmailscan03.eigbox.net ([10.20.15.3]) by bosmailout05.eigbox.net with esmtp (Exim) id 1ZNN7r-00040n-1a for ntg-context@ntg.nl; Thu, 06 Aug 2015 11:30:35 -0400 Original-Received: from [10.115.3.31] (helo=bosimpout11) by bosmailscan03.eigbox.net with esmtp (Exim) id 1ZNN7r-00038F-00 for ntg-context@ntg.nl; Thu, 06 Aug 2015 11:30:34 -0400 Original-Received: from bosauthsmtp19.yourhostingaccount.com ([10.20.18.19]) by bosimpout11 with id 1TWX1r00N0QhFXN01TWaJ6; Thu, 06 Aug 2015 11:30:34 -0400 X-Authority-Analysis: v=2.1 cv=Q9Rc4uGa c=1 sm=1 tr=0 a=9UqFsMnAB6EOkiq4MrOclQ==:117 a=FAHL2ERDhGLq6us2mS8+wQ==:17 a=pq4jwCggAAAA:8 a=QPcu4mC3AAAA:8 a=y85PGfU6AAAA:8 a=C_IRinGWAAAA:8 a=esbi5I81GEsA:10 a=uRRa74qj2VoA:10 a=8pif782wAAAA:8 a=YgKpxVP32B38G6vPlzsA:9 a=QEXdDO2ut3YA:10 a=ldkJQu5ECLE7NAt6Sx0A:9 a=yTXJUONyjYA0LkJh:21 a=_W_S_7VecoQA:10 Original-Received: from c-75-69-101-28.hsd1.nh.comcast.net ([75.69.101.28]:59017 helo=[10.0.0.4]) by bosauthsmtp19.eigbox.net with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim) id 1ZNN7m-0004PP-UM for ntg-context@ntg.nl; Thu, 06 Aug 2015 11:30:30 -0400 X-Mailer: Apple Mail (2.1993) X-EN-UserInfo: 08df34410b47fe835bedcf202d0c2be6:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: kitz@inradius.net X-EN-OrigIP: 75.69.101.28 X-EN-OrigHost: c-75-69-101-28.hsd1.nh.comcast.net X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=66.96.185.5; country=US; region=Massachusetts; city=Burlington; latitude=42.5048; longitude=-71.1956; http://maps.google.com/maps?q=42.5048,-71.1956&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07P1ruA74 - db8831d1b625 - 20150806 (trained as not-spam) Received-SPF: pass (filter1-utr.mf.surf.net: domain of SRS0=42.cMl=IN=inradius.net=kitz@eigbox.net designates 66.96.185.5 as permitted sender) receiver=filter1-utr.mf.surf.net; client-ip=66.96.185.5; envelope-from=; helo=bosmailout05.eigbox.net; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:92242 Archived-At: --===============0131795249== Content-Type: multipart/alternative; boundary="Apple-Mail=_B00B3341-36AC-49BF-8769-400F50AC6691" --Apple-Mail=_B00B3341-36AC-49BF-8769-400F50AC6691 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Given a file, data.d, containing 1 4 7 I expected the following code to draw a line from (4,1) to (7,1)=E2=80=A6 \enabletrackers[metapost.showlog] \usemodule[m-graph] \startMPpage[instance=3Dgraph,offset=3D3mm] draw begingraph(5cm,5cm); gdata("data.d", v, =20 for n =3D 1 upto 3: a[n] =3D scantokens v[n]; endfor; show a1; show a2; show a3; % numeric show v1; show v2; show v3; % string =20 gdraw (a2,a1)=E2=80=94(a3,a1); % same problem in or out of data = group ); endgraph; \stopMPpage =E2=80=A6the show lines return what I expected, but then come the = complaints: ! Inconsistent equation (off by 0.90000000000000002)=E2=80=A6 >> (0,0,1,0,0,yypart S) ! Transform components aren't all known=E2=80=A6 My goal is to draw multiple box plots = https://en.wikipedia.org/wiki/Box_plot = , either vertical or horizontal, = from data sets, but I am stuck at this early stage.=20 --Apple-Mail=_B00B3341-36AC-49BF-8769-400F50AC6691 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Given a file, data.d, containing 1 4 7

I expected the following code to draw a = line from (4,1) to (7,1)=E2=80=A6


\enabletrackers[metapost.showlog]
\usemodule[m-graph]
\startMPpage[instance=3Dgraph,offset=3D3mm]
  draw begingraph(5cm,5cm);
  =   gdata("data.d", v,    
  =     for n =3D 1 upto 3:
    =   = a[n] =3D scantokens v[n];
    =   endfor;

      show a1; show a2; show a3; % = numeric
      show v1; show v2; show = v3; % string
      
      gdraw (a2,a1)=E2=80=94(a3,a1); % same = problem in or out of data group
    =   );
  endgraph;
\stopMPpage

=E2=80=A6the show lines return what I = expected, but then come the complaints:

! Inconsistent equation (off by = 0.90000000000000002)=E2=80=A6
>> (0,0,1,0,0,yypart S)
! = Transform components aren't all known=E2=80=A6


My goal is to draw multiple box plots https://en.wikipedia.org/wiki/Box_plot, either = vertical or horizontal, from data sets, but I am stuck at this early = stage. 

= --Apple-Mail=_B00B3341-36AC-49BF-8769-400F50AC6691-- --===============0131795249== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0131795249==--