From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80370 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: \asciimode does not work with gnuplot module Date: Mon, 21 Jan 2013 10:08:04 +0100 Message-ID: References: <20130120220640.GP29592@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358759288 27802 80.91.229.3 (21 Jan 2013 09:08:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2013 09:08:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 21 10:08:27 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TxDMh-0007Nx-5s for gctc-ntg-context-518@m.gmane.org; Mon, 21 Jan 2013 10:08:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 08F31101E2; Mon, 21 Jan 2013 10:08:10 +0100 (CET) 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 ItJQNxYqp2nq; Mon, 21 Jan 2013 10:08:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8CF48101E5; Mon, 21 Jan 2013 10:08:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28B1B101E5 for ; Mon, 21 Jan 2013 10:08:07 +0100 (CET) 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 W-C96I6g9+hp for ; Mon, 21 Jan 2013 10:08:06 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 29913101E2 for ; Mon, 21 Jan 2013 10:08:06 +0100 (CET) Original-Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0L8vFMi007809 for ; Mon, 21 Jan 2013 09:57:16 +0100 Original-Received: by mail-wi0-f174.google.com with SMTP id hq4so6924428wib.7 for ; Mon, 21 Jan 2013 01:08:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=0K6nWxPBMtNXdWCm1H6yA9zHT4J/nQXysRQ4vAblfB8=; b=TGsEbL4UeZrE6qZvtB2pEpoOtNxv6bfNRQMZeb2ZTGL9Ybq6V57w5I9MPBStwCt5Ai 7z4kbIQzWjNz1Klwsc+Git3AxE9RjdGWmGyUzr3gXREkPypFHNSeBFkMA+ltJe/wiIFw gvmO8J6nQG1yOEcwjh/h7fIFKXmX4w85gTdxKZHUcShPltwPnUizNL6kxyf2UM/rbPrQ mdYqZ3W/SEH7rzxV4sWkO4oE76/NyaTZmHRL1jdeS6W/YUC0J5S4kcFNER5+Lca1f/NS Bl1VxWvAY2Ar+iyn25xpZuy0d2g0Qw3uBPNWhKlriORhzYbQ6DrGdrco6NWZE0seStex 1dRg== X-Received: by 10.194.58.175 with SMTP id s15mr24874283wjq.31.1358759284201; Mon, 21 Jan 2013 01:08:04 -0800 (PST) Original-Received: by 10.216.98.67 with HTTP; Mon, 21 Jan 2013 01:08:04 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.174; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIOwVg3b - 6d446122d780 - 20130121 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:80370 Archived-At: On Mon, Jan 21, 2013 at 9:16 AM, Wolfgang Schuster wrote: > Am 21.01.2013 um 01:19 schrieb Mojca Miklavec: >> On Sun, Jan 20, 2013 at 11:06 PM, Marco Patzer wrote: >>> \usemodule [gnuplot] >>> \asciimode >>> >>> \starttext >>> \startGNUPLOTscript [foo] >>> plot sin(x) >>> \stopGNUPLOTscript >>> \useGNUPLOTgraphic [foo] >>> \stoptext >> >> I need help with that one. > > At which point does it fail? > > - creates context the input file for gnu plot > - is gnu plot called from context > - does gnu plot create a output file > - does it help when you change the terminal setting in context I'm sorry. I should have been more explicit. Gnuplot runs and creates the necessary output file(s) which starts with the following for example: % Written by ConTeXt terminal for GNUPLOT on: 2013-01-21 01:17 CET % GNUPLOT version: 4.6.1, terminal version: 1.0.0 (2011-11-05) % See also http://wiki.contextgarden.net/Gnuplot % \startGNUPLOTgraphic[1] string gnuplotversion; gnuplotversion := "4.6"; ... The command \useGNUPLOTgraphic[foo] basically calls \reuseMPgraphic{gpg:foo:1} where "foo" is the name from brackets and 1 is the sequential number. But instead of the graphic I get the following written to the pdf as text: % Written by ConTeXt terminal for GNUPLOT on: 2013-01-21 01:17 CET % GNU- PLOT version: 4.6.1, terminal version: 1.0.0 (2011-11-05) % See also http://wiki.con- textgarden.net/Gnuplot % If I change the graphic to TikZ, I get almost the whole plot, except for the sine line which is drawn between -10 and approximately -9 and then disappears. I suspect the culprit is the percentage sign at the end of the line: \draw[gp path] (1.410,5.722)--(1.517,5.147)--(1.625,4.524)--(1.732,3.879)--(1.840,3.237)% --(1.947,2.626)--(2.055,2.070)--(2.162,1.591)--(2.270,1.210)--(2.377,0.941)--(2.485,0.795)% --(2.592,0.779)--(2.699,0.893)--(2.807,1.133)--(2.914,1.488)--(3.022,1.944)--(3.129,2.484)% ... 17 lines altogether --(11.618,4.718)--(11.726,4.076)--(11.833,3.431)--(11.941,2.808)--(12.048,2.233); I didn't test it, but it seems as if everything after the first percentage sign gets ignored. I can do a couple more tests with MetaPost and TikZ in \asciimode, but the fact that the above line gets broken in the middle simply doesn't seem right (even if my gnuplot module code is clumsy). Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________