ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: function plotting
Date: Wed, 5 Oct 2005 17:02:47 +0200	[thread overview]
Message-ID: <6faad9f00510050802s165e237dj@mail.gmail.com> (raw)
In-Reply-To: <43437B38.6030006@wxs.nl>

Hans Hagen wrote:
> gnuplot is great indeed, but the output is rather large; it would be nice if there was a real good output mode (say, comparable to the output produced by metapost: compact, parsable);

LaTeX mode IS parsable and I often edit it manually (except the part
which does the smooth plotting of functions with lines; smooth lines
are composed from hundreds of points and that part makes the files
huge). Drawing only the points results in a reasonably small file.

> btw, is it really that difficult to use gnuplot output in context?

No. A file context.trm
(http://cvs.sourceforge.net/viewcvs.py/gnuplot/gnuplot/term/) should
be written by modifiying the postscript/metapost/latex.trm and perhaps
some layer should be added in ConTeXt for \startgnuplot ...
\stopgnuplot.

Metapost can already be used, perhaps only some interaction with
ConTeXt is missing (setting point shapes & colors, fonts, ...
somewhere at the beginning or in a separate style file).

To answer Christophers's and Alexander's question about quality of
metapost output: I guess I mixed it up with pslatex when I was talking
about the output quality. You can't express it in percentage. See
http://pub.mojca.org/tex/gnuplot/trlin.pdf for an example graph with
latex/pslatex/mp as rendering terminal.

The second example could be easily manually tuned a bit afterwards.
Linewidths & typesetting in general is a bit worse (from my point of
view), but there's no such quality loss as if you use PNGs.

Mojca

  parent reply	other threads:[~2005-10-05 15:02 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-02 17:27 Q: about \externalfile from metafun-p.pdf Alexander Lazic
2005-10-02 17:54 ` Christopher Creutzig
2005-10-02 18:58   ` Alexander Lazic
2005-10-02 20:36     ` Christopher Creutzig
2005-10-03  8:03       ` Alexander Lazic
2005-10-03 17:26         ` Christopher Creutzig
2005-10-04  8:29           ` function plotting (was: Re: Q: about \externalfile from metafun-p.pdf) Alexander Lazic
2005-10-04 16:07             ` function plotting Christopher Creutzig
2005-10-04 19:17               ` Alexander Lazic
2005-10-04 17:48             ` function plotting (was: Re: Q: about \externalfile from metafun-p.pdf) Mojca Miklavec
2005-10-04 19:20               ` Alexander Lazic
2005-10-05  6:17                 ` function plotting David Arnold
2005-10-05  9:02                   ` Alexander Lazic
2005-10-04 22:33               ` Christopher Creutzig
2005-10-05  7:18                 ` Hans Hagen
2005-10-05 13:22                   ` David Arnold
2005-10-05  7:05               ` Hans Hagen
2005-10-05  9:06                 ` Alexander Lazic
2005-10-05 12:08                 ` David Munger
2005-10-05 15:02                 ` Mojca Miklavec [this message]
2005-10-06 11:51                   ` Christopher Creutzig
2005-10-04 19:14             ` Peter Münster
2005-10-04 20:25               ` Alexander Lazic
2005-10-05  6:16                 ` Peter Münster
2005-10-05  6:43                   ` luigi.scarso
2005-10-05 21:08                     ` Alexander Lazic

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=6faad9f00510050802s165e237dj@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --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).