ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: interesting link
Date: Tue, 18 Sep 2012 10:34:53 +0200	[thread overview]
Message-ID: <CAG5iGsAyaxjEOchWuTtWJ_raJOBfTTo9pMwE33w2vruMUELNbw@mail.gmail.com> (raw)
In-Reply-To: <50582E7A.6050601@wxs.nl>


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

On Tue, Sep 18, 2012 at 10:19 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 18-9-2012 09:10, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
>
>> Hello,
>>
>>  http://www.nongnu.org/gsl-**shell/doc/<http://www.nongnu.org/gsl-shell/doc/>
>>>
>>
>> it looks useful...
>>
>> So far, I can't see any binding between GSL's 'graph.plot*()' and any
>> output that would be accepted by ConTeXt; e.g. no .png nor MP code can
>> be produced from GSL.
>>
>
> it should not be to hard (for luigi, given his mf project) to add output
> to mp
>
>
there are
save(filename[, w, h])
Save the plot in a file in a bitmap image format. The first argument is the
file name without extension while the other optional arguments are the
width and the height in pixels of the image. The format used is BMP on
windows and PPM on Linux.

save_svg(filename[, w, h])
Save the plot in the given filename in SVG format. Two optional parameters
can be given to specify the width and height of the drawing area. If the
“svg” extension is not given it will be automatically added.

They can managed with imagemagick/inkscape

On the other side, I often manage to export a kind of lua table (if
possible) and use lua /mplib of context to produce a single pdf of each
graph.

-- 
luigi

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

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

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

  reply	other threads:[~2012-09-18  8:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 21:16 Hans Hagen
2012-09-18  6:38 ` luigi scarso
2012-09-18  8:18   ` Hans Hagen
2012-09-18  7:10 ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-18  8:19   ` Hans Hagen
2012-09-18  8:34     ` luigi scarso [this message]
2013-10-23 11:32 Hans Hagen
2013-10-23 14:00 ` luigi scarso
2013-10-23 17:48   ` Aditya Mahajan
2013-10-23 18:11     ` luigi scarso
2013-10-23 23:09       ` Aditya Mahajan
2013-10-23 15:47 ` john Culleton
2013-10-23 16:41   ` Aditya Mahajan
2013-10-23 22:37   ` Hans Hagen

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=CAG5iGsAyaxjEOchWuTtWJ_raJOBfTTo9pMwE33w2vruMUELNbw@mail.gmail.com \
    --to=luigi.scarso@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).