[NTG-context] Gnuplot module: Patching of Gnuplot binary still needed?

jeroen.muskee at hotmail.com jeroen.muskee at hotmail.com
Sun Jan 9 22:50:19 CET 2011


In the past I was using this instruction set to install GnuPlot in Windows Context Mkiv minimals but it does not work anymore. Is there a bug in t-gnuplot version 2009-07-21?

Create folder c:\context\gnuplot
Download from http://dl.contextgarden.net/modules/gnuplot-win.zip the gnuplot file gnuplot-win.zip and unzip in folder c:\context so you have folders c:\context\gnuplot\bin and c:\context\gnuplot\term
Create a batch file c:\context\gnuplot\bin\gnuplot.bat with content "c:\context\gnuplot\bin\wgnuplot.exe" %*
START>RUN>CMD ENTER
SET PATH=%PATH%;c:\context\gnuplot\bin ENTER
Test GNUPLOT by entering gnuplot in the CLI console and give in gnuplot the command plot sin(x) ENTER
Create folder c:\context\tex\texmf\tex\context\third\gnuplot
Download http://theory.uwinnipeg.ca/scripts/CTAN/macros/context/contrib/context-gnuplot.zip or http://dl.contextgarden.net/modules/t-gnuplot-2009.07.21.zip module and unzip and put in folder c:\context\tex\texmf\tex\context\third\gnuplot and c:\context\text\texmf\metapost\base\ so you have c:\context\tex\texmf\tex\context\third\gnuplot\t-gnuplot.tex and c:\context\text\texmf\metapost\base\mp-gnuplot.mp
Start>run>cmd>c: ENTER cd \context\tex\texmf-mswin\bin ENTER context – -generate ENTER
(For MkII users use the following command mktexlsr)
Enter the following data to test GNUPLOT

\usemodule[gnuplot]
\enableregime[utf]
\setupGNUPLOT[terminal=mp]

\startGNUPLOTscript[mysinplot]
set xlabel “time”
set ylabel “value”
plot sin(x)
\stopGNUPLOTscript

\starttext
text before picture
\useGNUPLOTgraphic[mysinplot]
text after picture
\stoptext


--
This message was sent on behalf of jeroen.muskee at hotmail.com at openSubscriber.com
http://www.opensubscriber.com/message/ntg-context@ntg.nl/14815843.html


More information about the ntg-context mailing list