ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>,
	"Jan-Erik Hägglöf" <janerik.hagglof@bahnhof.se>
Subject: Re: running gnuplot failure
Date: Mon, 30 Mar 2020 01:48:23 +0200	[thread overview]
Message-ID: <a56d8fba-e838-2310-8223-f2fb45ebce56@xs4all.nl> (raw)
In-Reply-To: <52D6394A-997A-488F-A43A-DB8079A24685@bahnhof.se>

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
___________________________________________________________________________________

  reply	other threads:[~2020-03-29 23:48 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 [this message]
2020-03-30  5:04   ` Jan-Erik Hägglöf

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=a56d8fba-e838-2310-8223-f2fb45ebce56@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=janerik.hagglof@bahnhof.se \
    --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).