From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92246 Path: news.gmane.org!not-for-mail From: John Kitzmiller Newsgroups: gmane.comp.tex.context Subject: Re: m-graph read data and plot Date: Thu, 6 Aug 2015 16:48:51 -0400 Message-ID: References: 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="===============0366973189==" X-Trace: ger.gmane.org 1438894206 601 80.91.229.3 (6 Aug 2015 20:50:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 20:50:06 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 06 22:49:53 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 1ZNS6q-000086-6w for gctc-ntg-context-518@m.gmane.org; Thu, 06 Aug 2015 22:49:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3EE701037A for ; Thu, 6 Aug 2015 22:49:51 +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 c7OVcgIYgNq8 for ; Thu, 6 Aug 2015 22:49:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 990AD10233 for ; Thu, 6 Aug 2015 22:49:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16F55101F7 for ; Thu, 6 Aug 2015 22:49:11 +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 4OPy8L096yeU for ; Thu, 6 Aug 2015 22:49:06 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 972D2101E6 for ; Thu, 6 Aug 2015 22:49:02 +0200 (CEST) Original-Received: from bosmailout03.eigbox.net (bosmailout03.eigbox.net [66.96.186.3]) by filter3-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t76Kn0xY019912 for ; Thu, 6 Aug 2015 22:49:00 +0200 Original-Received: from bosmailscan09.eigbox.net ([10.20.15.9]) by bosmailout03.eigbox.net with esmtp (Exim) id 1ZNS60-0002YV-5I for ntg-context@ntg.nl; Thu, 06 Aug 2015 16:49:00 -0400 Original-Received: from [10.115.3.33] (helo=bosimpout13) by bosmailscan09.eigbox.net with esmtp (Exim) id 1ZNS5z-0007V5-UW for ntg-context@ntg.nl; Thu, 06 Aug 2015 16:48:59 -0400 Original-Received: from bosauthsmtp13.yourhostingaccount.com ([10.20.18.13]) by bosimpout13 with id 1Yow1r00P0GvDVm01YozAw; Thu, 06 Aug 2015 16:48:59 -0400 X-Authority-Analysis: v=2.1 cv=TYEYtHgh c=1 sm=1 tr=0 a=UH8/iCWBfdUmbm4Ft4Vi3Q==: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=jPsX7s1sYVEbf1_eRxgA:9 a=QEXdDO2ut3YA:10 a=6bThn3Pi_fguQ1Ccg9sA:9 a=rZ8Y3wWBrVkmlDRq:21 a=_W_S_7VecoQA:10 Original-Received: from c-75-69-101-28.hsd1.nh.comcast.net ([75.69.101.28]:62469 helo=[10.0.0.4]) by bosauthsmtp13.eigbox.net with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim) id 1ZNS5w-0000k1-Hl for ntg-context@ntg.nl; Thu, 06 Aug 2015 16:48:56 -0400 In-Reply-To: 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.186.3; 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: 03P1wN0uf - d12ae7f3b9a3 - 20150806 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of SRS0=42.cMl=IN=inradius.net=kitz@eigbox.net designates 66.96.186.3 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=66.96.186.3; envelope-from=; helo=bosmailout03.eigbox.net; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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" X-Spam-Report: 5.0 points; * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 0.0 HTML_MESSAGE BODY: HTML included in message * 1.8 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars Xref: news.gmane.org gmane.comp.tex.context:92246 Archived-At: --===============0366973189== Content-Type: multipart/alternative; boundary="Apple-Mail=_54D103B4-BF91-4744-BD7D-93983D40A2F6" --Apple-Mail=_54D103B4-BF91-4744-BD7D-93983D40A2F6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Aug 6, 2015, at 12:59 PM, Hans Hagen > wrote: >=20 > On 8/6/2015 5:30 PM, John Kitzmiller wrote: >> Given a file, data.d, containing 1 4 7 >>=20 >> I expected the following code to draw a line from (4,1) to (7,1)=E2=80=A6= >>=20 >>=20 >> \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; >>=20 >> 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 >>=20 >> =E2=80=A6the show lines return what I expected, but then come the = complaints: >>=20 >> ! 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 >>=20 >=20 >> a[n] =3D scantokens v[n]; >=20 > is a defined? Thank you Hans. Do you mean numeric a[n]? It was not explicitly = declared; I did not think it needed to be=E2=80=94the show commands = write what I expect to the log=E2=80=94anyway, declaring a did not help. >=20 > also, use >=20 > a[n] :=3D scantokens v[n] ; Done. Still the same error messages and no pdf. >=20 >=20 >=20 >> 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=_54D103B4-BF91-4744-BD7D-93983D40A2F6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 On Aug 6, 2015, at 12:59 PM, Hans Hagen <pragma@wxs.nl> wrote:

On 8/6/2015 5:30 PM, John Kitzmiller = wrote:
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,a= 1); % 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


a[n] =3D scantokens v[n];

is a defined?

Thank you Hans. Do you mean numeric a[n]? It was not = explicitly declared; I did not think it needed to be=E2=80=94the show = commands write what I expect to the log=E2=80=94anyway, declaring a did = not help.


also, = use

a[n] :=3D scantokens v[n] = ;

Done. Still the = same error messages and no pdf.




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=_54D103B4-BF91-4744-BD7D-93983D40A2F6-- --===============0366973189== 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= --===============0366973189==--