From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29730 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: Re: gnuplot in ConTeXt Date: Thu, 27 Jul 2006 08:47:49 +0200 Message-ID: <44C86195.5040304@nibua-r.org> References: <406470D9-7FF0-4AEC-810A-3D2AC08010D4@mac.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1368292491==" X-Trace: sea.gmane.org 1153983054 16279 80.91.229.2 (27 Jul 2006 06:50:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2006 06:50:54 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 27 08:50:53 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G5zhf-00011a-G5 for gctc-ntg-context-518@m.gmane.org; Thu, 27 Jul 2006 08:50:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA5CD1FDD3; Thu, 27 Jul 2006 08:50:38 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02296-06; Thu, 27 Jul 2006 08:50:38 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E51431FE23; Thu, 27 Jul 2006 08:48:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FA281FE23 for ; Thu, 27 Jul 2006 08:48:04 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01877-03-3 for ; Thu, 27 Jul 2006 08:47:59 +0200 (CEST) Original-Received: from 42.mail-out.ovh.net (42.mail-out.ovh.net [213.251.189.42]) by ronja.ntg.nl (Postfix) with SMTP id 3FD1B1FE22 for ; Thu, 27 Jul 2006 08:47:59 +0200 (CEST) Original-Received: (qmail 26046 invoked by uid 503); 27 Jul 2006 06:47:52 -0000 Original-Received: from b6.ovh.net (HELO mail175.ha.ovh.net) (213.186.33.56) by 42.mail-out.ovh.net with SMTP; 27 Jul 2006 06:47:52 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 27 Jul 2006 06:47:58 -0000 Original-Received: from d83-179-156-164.cust.tele2.fr (HELO ?192.168.78.10?) (aubin@nibua-r.org@83.179.156.164) by ns0.ovh.net with SMTP; 27 Jul 2006 06:47:56 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: mailing list for ConTeXt users In-Reply-To: <406470D9-7FF0-4AEC-810A-3D2AC08010D4@mac.com> X-Ovh-Remote: 83.179.156.164 (d83-179-156-164.cust.tele2.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/0.5/5.0/N X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29730 Archived-At: This is a multi-part message in MIME format. --===============1368292491== Content-Type: multipart/alternative; boundary="------------090001020307080605060401" This is a multi-part message in MIME format. --------------090001020307080605060401 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, The ConTeXt term is now in development. You have *at least* two or three alternatives (with one prefered but in dev): - use postscript term and include the resulting graphics with externalfig= ure - use mp term and process the MP buffer with metafun - last but not least, use directly the context terminal... For this one, you have to: - compile and install gnuplot from source by adding context.trm in gnuplot/term/ and adding context.trm to term.h (if you are on linux, else on windows you can use the wiki's patched binary gnuplot http://pub.mojca.org/gnuplot/bin/) - get mp-gnuplot.mp and t-gnuplot.tex and copy these two files into your current document directory - use \usemodule[t-gnuplot] to bypass the gnuplot module distributed with the ConTeXt release Then, you can try: \usemodule[t-gnuplot] \starttext \startGNUPLOTscript{abc} plot sin(x) \stopGNUPLOTscript \useGNUPLOTgraphic[abc] \useGNUPLOTgraphic[abc][width=3D\textwidth] \stoptext If you have any questions... Cheers, Renaud Dalyoung Jeong a =E9crit : >Dear all, > >I have installed gnuplot and others(aqua term, x11). >I tested the minimal sample file in ConTeXt Wiki. >In the wiki page, there is a command like > >\startGNUPLOTgraphics{sin} >plot sin(x) >\stopGNUPLOTgraphics > >but there is an error message like > >l.6 \startGNUPLOTgraphics > {sin} >? x > >If I changed \startGNUPLOTgraphics{sin} to \startGNUPLOTgraphic{sin}, =20 >then the error is disappeared but the output showed only texts but =20 >not graph. Only a grey box is appeared. > >Would you please show me an example in detail? > >Thank you for reading. > >Dalyoung=20 >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > > > =20 > --------------090001020307080605060401 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,

The ConTeXt term is now in development.
You have at least two or three alternatives (with one prefered but in dev):
- use postscript term and include the resulting graphics with externalfigure
- use mp term and process the MP buffer with metafun
- last but not least, use directly the context terminal...

For this one, you have to:
- compile and install gnuplot from source by adding context.trm in gnuplot/term/ and adding context.trm to term.h (if you are on linux, else on windows you can use the wiki's patched binary gnuplot http://pub.mojca.org/gnuplot/bin/)
- get mp-gnuplot.mp and t-gnuplot.tex and copy these two files into your current document directory
- use \usemodule[t-gnuplot] to bypass the gnuplot module distributed with the ConTeXt release

Then, you can try:
\usemodule[t-gnuplot]

\starttext
\startGNUPLOTscript{abc}
plot sin(x)
\stopGNUPLOTscript

\useGNUPLOTgraphic[abc]
\useGNUPLOTgraphic[abc][width=\textwidth]
\stoptext

If you have any questions...

Cheers,

Renaud

Dalyoung Jeong a écrit :
Dear all,

I have installed gnuplot and others(aqua term, x11).
I tested the minimal sample file in ConTeXt Wiki.
In the wiki page, there is a command like

\startGNUPLOTgraphics{sin}
plot sin(x)
\stopGNUPLOTgraphics

but there is an error message like

l.6 \startGNUPLOTgraphics
                          {sin}
? x

If I changed \startGNUPLOTgraphics{sin} to \startGNUPLOTgraphic{sin},  
then the error is disappeared but the output showed only texts but  
not graph. Only a grey box is appeared.

Would you please show me an example in detail?

Thank you for reading.

Dalyoung 
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  

--------------090001020307080605060401-- --===============1368292491== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1368292491==--