From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75581 Path: news.gmane.org!not-for-mail From: John Devereux Newsgroups: gmane.comp.tex.context Subject: Re: gnuplot not working Date: Wed, 11 Apr 2012 11:39:28 +0100 Message-ID: <878vi2k0wv.fsf@devereux.me.uk> References: <87ty0qk5i5.fsf@devereux.me.uk> 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: dough.gmane.org 1334140790 4505 80.91.229.3 (11 Apr 2012 10:39:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 10:39:50 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 11 12:39:50 2012 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 1SHuxp-0001XG-1d for gctc-ntg-context-518@m.gmane.org; Wed, 11 Apr 2012 12:39:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AADF410203; Wed, 11 Apr 2012 12:39:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ITBOq+e2cCWy; Wed, 11 Apr 2012 12:39:43 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0061E101E7; Wed, 11 Apr 2012 12:39:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9212D101FC for ; Wed, 11 Apr 2012 12:39: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 (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id h-tv+tu6vH-R for ; Wed, 11 Apr 2012 12:39:30 +0200 (CEST) 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 CFABE101E4 for ; Wed, 11 Apr 2012 12:39:30 +0200 (CEST) Original-Received: from devereux.me.uk (devereux.me.uk [217.169.15.178]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q3BAcpSm010263 for ; Wed, 11 Apr 2012 12:38:52 +0200 Original-Received: from devereux.me.uk ([217.169.15.178] ident=jd) by devereux.me.uk with esmtp (Exim 4.72) (envelope-from ) id 1SHuxV-0001Ra-7e for ntg-context@ntg.nl; Wed, 11 Apr 2012 11:39:29 +0100 In-Reply-To: (Mojca Miklavec's message of "Wed, 11 Apr 2012 11:12:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=217.169.15.178; country=GB; region=J9; city=Arnold; latitude=53.0000; longitude=-1.1333; http://maps.google.com/maps?q=53.0000,-1.1333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WGUyCQQT - bb7ce1ee7e63 - 20120411 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:75581 Archived-At: Mojca Miklavec writes: > On Wed, Apr 11, 2012 at 11:00, John Devereux wrote: >> >> Hi all, >> >> Is there a problem with gnuplot? I get an error with the minimal example >> on the wiki. I think the generated .plt file has an error; it works if I >> manually delete the "fontscale 1" bit and run context on >> test-gnuplot-1.tmp. >> >> Using latest beta, tried with current official gnuplot as well as >> mojca-patched version. > > Which version of Gnuplot did you use / how did you compile it / with > which sources? If you used the one from modules.contextgarden.net for > windows, that was a bad idea (and my bad that I forgot to remove it > from there) since I haven't updated it for a while. > > I changed textscale to fontscale on gnuplot developers' request in > February 2011. > > Gnuplot 4.6.0 already includes the context terminal, so it might be > the best idea to try with official gnuplot binary (or sources). Hi Mojca, Sorry, I should have said I am running on linux. I compiled the official gnuplot 4.6 jd@devereux:~$ gnuplot G N U P L O T Version 4.6 patchlevel 0 last modified 2012-03-04 Build System: Linux i686 Copyright (C) 1986-1993, 1998, 2004, 2007-2012 Thomas Williams, Colin Kelley and many others gnuplot home: http://www.gnuplot.info faq, bugs, etc: type "help FAQ" immediate help: type "help" (plot window: hit 'h') It does seem to be running this version. I found the generated tex file: ====================================================================== % Written by ConTeXt terminal for GNUPLOT on: 2012-04-11 11:31 BST % GNUPLOT version: 4.6.0, terminal version: 1.0.0 (2011-11-05) % See also http://wiki.contextgarden.net/Gnuplot % \startGNUPLOTgraphic[1] string gnuplotversion; gnuplotversion := "4.6"; string termversion; termversion := "1.0"; % scaling factor, width and height of the figure a := 1cm; w := 12.700a; h := 7.620a; % (5in, 3in) % temporary variable for storing the path and images save p, img, ima; path p; string img, ima; % ------------------------- % Different initialisations % ------------------------- % for additional user-defined settings gp_setup_before; % text scaling factor for the whole figure gp_scale_text := 1; % pointsize scaling factor gp_set_pointsize(1); % linewidth scaling factor for individual lines gp_set_linewidth(1); % for additional user-defined settings gp_setup_after; % ------------------------- gp_set_linetype(-2); p := (1.345a,0.844a)--(1.468a,0.844a); gp_draw(p); p := (12.078a,0.844a)--(11.955a,0.844a); gp_draw(p); gp_put_text((1.138a, 0.844a), align(right), \sometxt[gp]{-1}); p := (1.345a,1.480a)--(1.468a,1.480a); gp_draw(p); p := (12.078a,1.480a)--(11.955a,1.480a); gp_draw(p); gp_put_text((1.138a, 1.480a), align(right), \sometxt[gp]{-0.8}); p := (1.345a,2.116a)--(1.468a,2.116a); gp_draw(p); p := (12.078a,2.116a)--(11.955a,2.116a); gp_draw(p); gp_put_text((1.138a, 2.116a), align(right), \sometxt[gp]{-0.6}); p := (1.345a,2.752a)--(1.468a,2.752a); gp_draw(p); p := (12.078a,2.752a)--(11.955a,2.752a); gp_draw(p); gp_put_text((1.138a, 2.752a), align(right), \sometxt[gp]{-0.4}); p := (1.345a,3.388a)--(1.468a,3.388a); gp_draw(p); p := (12.078a,3.388a)--(11.955a,3.388a); gp_draw(p); gp_put_text((1.138a, 3.388a), align(right), \sometxt[gp]{-0.2}); p := (1.345a,4.024a)--(1.468a,4.024a); gp_draw(p); p := (12.078a,4.024a)--(11.955a,4.024a); gp_draw(p); gp_put_text((1.138a, 4.024a), align(right), \sometxt[gp]{0}); p := (1.345a,4.661a)--(1.468a,4.661a); gp_draw(p); p := (12.078a,4.661a)--(11.955a,4.661a); gp_draw(p); gp_put_text((1.138a, 4.661a), align(right), \sometxt[gp]{0.2}); p := (1.345a,5.297a)--(1.468a,5.297a); gp_draw(p); p := (12.078a,5.297a)--(11.955a,5.297a); gp_draw(p); gp_put_text((1.138a, 5.297a), align(right), \sometxt[gp]{0.4}); p := (1.345a,5.933a)--(1.468a,5.933a); gp_draw(p); p := (12.078a,5.933a)--(11.955a,5.933a); gp_draw(p); gp_put_text((1.138a, 5.933a), align(right), \sometxt[gp]{0.6}); p := (1.345a,6.569a)--(1.468a,6.569a); gp_draw(p); p := (12.078a,6.569a)--(11.955a,6.569a); gp_draw(p); gp_put_text((1.138a, 6.569a), align(right), \sometxt[gp]{0.8}); p := (1.345a,7.205a)--(1.468a,7.205a); gp_draw(p); p := (12.078a,7.205a)--(11.955a,7.205a); gp_draw(p); gp_put_text((1.138a, 7.205a), align(right), \sometxt[gp]{1}); p := (1.345a,0.844a)--(1.345a,0.967a); gp_draw(p); p := (1.345a,7.205a)--(1.345a,7.082a); gp_draw(p); gp_put_text((1.345a, 0.422a), align(center), \sometxt[gp]{-10}); p := (4.028a,0.844a)--(4.028a,0.967a); gp_draw(p); p := (4.028a,7.205a)--(4.028a,7.082a); gp_draw(p); gp_put_text((4.028a, 0.422a), align(center), \sometxt[gp]{-5}); p := (6.711a,0.844a)--(6.711a,0.967a); gp_draw(p); p := (6.711a,7.205a)--(6.711a,7.082a); gp_draw(p); gp_put_text((6.711a, 0.422a), align(center), \sometxt[gp]{0}); p := (9.395a,0.844a)--(9.395a,0.967a); gp_draw(p); p := (9.395a,7.205a)--(9.395a,7.082a); gp_draw(p); gp_put_text((9.395a, 0.422a), align(center), \sometxt[gp]{5}); p := (12.078a,0.844a)--(12.078a,0.967a); gp_draw(p); p := (12.078a,7.205a)--(12.078a,7.082a); gp_draw(p); gp_put_text((12.078a, 0.422a), align(center), \sometxt[gp]{10}); p := (1.345a,7.205a)--(1.345a,0.844a)--(12.078a,0.844a)--(12.078a,7.205a)--cycle; gp_draw(p); gp_set_linetype(0); gp_set_color(lt(-2)); gp_put_text((10.506a, 6.871a), align(right), \sometxt[gp]{sin(x)}); gp_set_linetype(0); p := (10.713a,6.871a)--(11.664a,6.871a); gp_draw(p); p := (1.345a,5.755a)--(1.453a,5.184a)--(1.562a,4.566a)--(1.670a,3.926a) --(1.779a,3.291a)--(1.887a,2.685a)--(1.995a,2.133a)--(2.104a,1.658a) --(2.212a,1.280a)--(2.321a,1.013a)--(2.429a,0.869a)--(2.538a,0.853a) --(2.646a,0.966a)--(2.754a,1.204a)--(2.863a,1.556a)--(2.971a,2.009a) --(3.080a,2.543a)--(3.188a,3.138a)--(3.296a,3.769a)--(3.405a,4.410a) --(3.513a,5.036a)--(3.622a,5.620a)--(3.730a,6.140a)--(3.839a,6.573a) --(3.947a,6.903a)--(4.055a,7.116a)--(4.164a,7.203a)--(4.272a,7.161a) --(4.381a,6.991a)--(4.489a,6.700a)--(4.597a,6.301a)--(4.706a,5.809a) --(4.814a,5.245a)--(4.923a,4.631a)--(5.031a,3.992a)--(5.139a,3.354a) --(5.248a,2.744a)--(5.356a,2.186a)--(5.465a,1.703a)--(5.573a,1.314a) --(5.682a,1.035a)--(5.790a,0.878a)--(5.898a,0.849a)--(6.007a,0.949a) --(6.115a,1.174a)--(6.224a,1.515a)--(6.332a,1.958a)--(6.440a,2.486a) --(6.549a,3.075a)--(6.657a,3.704a)--(6.766a,4.345a)--(6.874a,4.974a) --(6.983a,5.563a)--(7.091a,6.091a)--(7.199a,6.534a)--(7.308a,6.875a) --(7.416a,7.100a)--(7.525a,7.200a)--(7.633a,7.171a)--(7.741a,7.014a) --(7.850a,6.735a)--(7.958a,6.346a)--(8.067a,5.863a)--(8.175a,5.305a) --(8.284a,4.695a)--(8.392a,4.057a)--(8.500a,3.418a)--(8.609a,2.804a) --(8.717a,2.240a)--(8.826a,1.748a)--(8.934a,1.349a)--(9.042a,1.058a) --(9.151a,0.888a)--(9.259a,0.846a)--(9.368a,0.933a)--(9.476a,1.146a) --(9.584a,1.476a)--(9.693a,1.909a)--(9.801a,2.429a)--(9.910a,3.013a) --(10.018a,3.639a)--(10.127a,4.280a)--(10.235a,4.911a)--(10.343a,5.506a) --(10.452a,6.040a)--(10.560a,6.493a)--(10.669a,6.845a)--(10.777a,7.083a) --(10.885a,7.196a)--(10.994a,7.180a)--(11.102a,7.036a)--(11.211a,6.769a) --(11.319a,6.391a)--(11.428a,5.916a)--(11.536a,5.364a)--(11.644a,4.758a) --(11.753a,4.123a)--(11.861a,3.483a)--(11.970a,2.865a)--(12.078a,2.294a); gp_draw(p); gp_set_linetype(-2); p := (1.345a,7.205a)--(1.345a,0.844a)--(12.078a,0.844a)--(12.078a,7.205a)--cycle; gp_draw(p); setbounds currentpicture to unitsquare xyscaled (w,h); \stopGNUPLOTgraphic \endinput -- John Devereux ___________________________________________________________________________________ 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 ___________________________________________________________________________________