From: "Jan-Erik Hägglöf" <janerik.hagglof@bahnhof.se>
To: Hans Hagen <j.hagen@xs4all.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: running gnuplot failure
Date: Mon, 30 Mar 2020 07:04:26 +0200 [thread overview]
Message-ID: <F35CCB80-1154-46F1-B3BD-E9C99985741E@bahnhof.se> (raw)
In-Reply-To: <a56d8fba-e838-2310-8223-f2fb45ebce56@xs4all.nl>
That was working just fine, thank you so much!
Janne
> 30 mars 2020 kl. 01:48 skrev Hans Hagen <j.hagen@xs4all.nl>:
>
> On 3/29/2020 8:32 PM, Jan-Erik Hägglöf wrote:
>> Hi!
>> I have tried to run the following codeexample with no success
>> \usemodule
>> [gnuplot]
> in lmtx gnuplot can be done like this (here i just write the file but it can be external or a saved buffer or ... ):
>
> \usemodule[gnuplot]
>
> \startluacode
> io.savedata("m-gnuplot-demo.gp", [[
> set format xy "$%g$"
>
> set title 'This is a plot of $y=\\sin(x)$'
> set xlabel 'This is the $x$ axis'
> set ylabel 'This is the $y$ axis'
>
> plot [0:6.28] [0:1] sin(x)
> ]])
> \stopluacode
>
> \starttext
>
> \externalfigure[m-gnuplot-demo.gp][conversion=svg,width=4cm]
>
> \externalfigure[m-gnuplot-demo.gp][conversion=svg,width=8cm]
>
> \stoptext
>
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2020-03-30 5:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-29 18:32 Jan-Erik Hägglöf
2020-03-29 23:48 ` Hans Hagen
2020-03-30 5:04 ` Jan-Erik Hägglöf [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=F35CCB80-1154-46F1-B3BD-E9C99985741E@bahnhof.se \
--to=janerik.hagglof@bahnhof.se \
--cc=j.hagen@xs4all.nl \
--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).