From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63839 Path: news.gmane.org!not-for-mail From: Ethan Merritt Newsgroups: gmane.comp.tex.context Subject: Re: Gnuplot module: Patching of Gnuplot binary still needed? Date: Mon, 22 Nov 2010 10:12:45 -0800 Organization: University of Washington Message-ID: <201011221012.45460.merritt@u.washington.edu> References: <1289772254.13580.44.camel@mattotaupa> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290495726 16238 80.91.229.12 (23 Nov 2010 07:02:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Nov 2010 07:02:06 +0000 (UTC) Cc: mailing list for ConTeXt users , Peter Hedwig To: Mojca Miklavec Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 23 08:02:02 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PKmt6-0006xK-VW for gctc-ntg-context-518@m.gmane.org; Tue, 23 Nov 2010 08:02:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 50EE8CA893; Tue, 23 Nov 2010 08:02:00 +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 CPifcRRwMgme; Tue, 23 Nov 2010 08:01:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 815AFCA873; Tue, 23 Nov 2010 08:01:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D839ACA86D for ; Mon, 22 Nov 2010 19:16:32 +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 8pSmLcSk4kGM for ; Mon, 22 Nov 2010 19:16:27 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 29901CA852 for ; Mon, 22 Nov 2010 19:16:27 +0100 (CET) Original-Received: from mxout14.cac.washington.edu (mxout14.cac.washington.edu [140.142.33.32]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oAMIGMNN013700 for ; Mon, 22 Nov 2010 19:16:24 +0100 Original-Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.204] (may be forged)) by mxout14.cac.washington.edu (8.14.3+UW09.11/8.14.3+UW10.10) with ESMTP id oAMICjX9013667 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 22 Nov 2010 10:12:46 -0800 X-Auth-Received: from chauvet.localnet (chauvet.bmsc.washington.edu [128.95.235.33] (may be forged)) (authenticated authid=merritt) by smtp.washington.edu (8.14.3+UW09.11/8.14.3+UW10.10) with ESMTP id oAMICjur023170 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 22 Nov 2010 10:12:45 -0800 User-Agent: KMail/1.13.3 (Linux/2.6.33.7-desktop-2mnb; KDE/4.4.3; i686; ; ) In-Reply-To: X-PMX-Version: 5.5.9.388399, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.11.22.180314 X-Uwash-Spam: Gauge=IIIIIIII, Probability=8%, Report=' SUPERLONG_LINE 0.05, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0, __TO_MALFORMED_2 0, __USER_AGENT 0' X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=140.142.33.32; country=US; region=WA; city=Seattle; latitude=47.5951; longitude=-122.3326; metrocode=819; areacode=206; http://maps.google.com/maps?q=47.5951,-122.3326&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDyigmx1 - c26b96fd7fb9 - 20101122 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Mailman-Approved-At: Tue, 23 Nov 2010 08:01:53 +0100 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:63839 Archived-At: On Monday, November 22, 2010 07:01:07 am Mojca Miklavec wrote: > On Fri, Nov 19, 2010 at 00:38, Florian Wobbe wrote: > > > > Thanks, I just updated the CVS version of gnuplot with your files and gave it a try: It works with minimals! > > > >> [...] > >>> > >>> Feedback and patches welcome! > > > > No patches I'm afraid. But feedback goes here: > > > > 1) The label text of the following key element takes the color of the preceding key symbol. Minimal example: > > > > set terminal lua tikz fulldoc size 15cm,7cm context > > set output 'plot.tex' > > set xrange [ 0 : 13 ] > > f1(x)=sqrt(x) > > f2(x)=sqrt(x*0.8)-3 > > plot f1(x) lc rgb 'blue', f2(x) > > Confirmed. I had the problems with that in my terminal as well, but I > think that it was a buglet in metapost back then; oh, good old > memories ... :) :) :) I didn't check the details about this one. > > > 2) Negative axis labels are set with hyphen instead of proper minus sign, which should be longer (see example above). > > I'm not sure if this should really be fixed automatically or not. In > order to fix this one would have to patch gnuplot core. > > I forgot the details how to do it (I can find it out), but you can > configure the layout of labels. In particular you may enclose the > number into math delimiters ($). Maybe something like > set format y "$%.1f$" > would work (you might want to change the size of left margin then). > Doing any other kind of magic would be a bit dangerous. Keep in mind > that > plot 'x.dat' u 1:(2*$2) > will also fail since TeX will interpret $ as math delimiter. But > changing that behaviour would have other undesirable effects. > > > 3) First I thought luatex hangs but then I noticed TikZ is awfully slow when drawing plots with large amounts of data points (the tikzpicture had about 3000 lines). I can speed this up by reducing the size by invoking plot with: > > > > plot "< gawk '(NR-1)%10 == 0 {print $0}' fileWithLotsOfData" using [...] > > > > I wonder if there is a smarter way to do this in gnuplot. > > Using bitmap terminals. A while back I was dreaming about having > mixed-mode with one terminal creating text labels and the other one > (png for example) drawing the plot. But this needs some extra > programming effort. As I recall, I posted a patch the last time this discussion came up. It turns off text output from the png terminal without affecting any other graphical elements. My though was that it could be the basis of a pdflatex terminal class that works the same way as the current epslatex terminals. I can post it again, or upload it to SourceForge if it isn't there already. Ethan > > You would stumble against the same problem when using PS or PDF > terminal, maybe only at a slightly bigger number of points. > > What I did for my "theory of chaos" reports and the million-of-points > plots in my thesis was to create an empty plot with ConTeXt terminal, > create a borderless plot with PNG and then manually insert PNG into > the generated ConTeXt output, which you could do with TikZ output as > well. It requires more effort, but there is no other way to speed up > vector graphics. They are simply not suitable for drawing millions of > points on the same plot. > > (Gnuplot also has a keyword 'every' to reduce the number of points, > but in my case I wanted to plot all of them.) > > 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 ___________________________________________________________________________________