ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Renaud AUBIN <aubin@nibua-r.org>
Subject: Re: gnuplot in ConTeXt
Date: Thu, 27 Jul 2006 08:47:49 +0200	[thread overview]
Message-ID: <44C86195.5040304@nibua-r.org> (raw)
In-Reply-To: <406470D9-7FF0-4AEC-810A-3D2AC08010D4@mac.com>


[-- Attachment #1.1: Type: text/plain, Size: 1861 bytes --]

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
>
>
>  
>


[-- Attachment #1.2: Type: text/html, Size: 2490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

      reply	other threads:[~2006-07-27  6:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-27  4:48 Dalyoung Jeong
2006-07-27  6:47 ` Renaud AUBIN [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44C86195.5040304@nibua-r.org \
    --to=aubin@nibua-r.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).