Gnuplot module: Patching of Gnuplot binary still needed?
Dear ConTeXt folks, I read about the Gnuplot module [1] and I am wondering whether patching the Gnuplot binary is still necessary. Github is currently down and therefore cannot check if the code is included. But judging from gnuplot> help terminal […] Subtopics available for terminal: canvas cgm corel dpu414 dumb dxf eepic emf emtex epslatex epson_180dpi epson_60dpi epson_lx800 fig gif gpic hp2623a hp2648 hp500c hpdj hpgl hpljii hppj imagen jpeg latex mf mif mp nec_cp6 okidata pbm pcl5 pdfcairo png pngcairo pop postscript pslatex pstex pstricks push qms regis starc svg tandy_60dpi tek40xx tek410x texdraw tgif tkcanvas tpic vttek wxt x11 xlib xterm $ gnuplot --version gnuplot 4.4 patchlevel 0 it appears it is still required. Did some send this patch already upstream for inclusion? Thanks, Paul [1] http://wiki.contextgarden.net/Gnuplot
On Sun, Nov 14, 2010 at 23:04, Paul Menzel wrote:
Dear ConTeXt folks,
I read about the Gnuplot module [1] and I am wondering whether patching the Gnuplot binary is still necessary.
Yes. Can you please send the same message to the gnuplot mailing list? I have sent the patch upstream once in 2006, but they had two arguments against including the patch: 1.) nobody from the development team was willing to install anything else but tetex to try it out (and the module doesn't work under tetex) 2.) they assumed that I was the only user The first point should hopefully be resolved by now (module should work under MikTeX or TeX Live out-of-the-box and hopefully TeX Live is enough widespread by now), but if anyone wants to have the module included, somebody else but me needs to write to the gnuplot mailing list and ask the developers if they are willing to include the patch. (By pointing them to https://github.com/mojca/gnuplot/blob/master/term/context.trm first.) I'm willing to upload the patch, but it makes no sense for me to regularly upload new patches to their feature-requests-and-bug-tracking system if they ignore them for ages ... I admit that the number of ConTeXt/Gnuplot users might be small, alone for the fact that the number of ConTeXt users (several thousand?) is much smaller than the number of LaTeX addicts, but I would be glad to see 20 users of metafont terminal when not even the output of metapost terminal is satisfactory (it could be improved considerably). Apart from that ... I was working with Peter Hedwig on the ConTeXt part of his lua/TikZ terminal (that has already been included in gnuplot). We got it running, with some issues like general font loading scheme, but the work was never polished to the end (stalled at some point). We could revive that thread as well.
Github is currently down and
It works here, but the main gnuplot code is located on fontforge (in CVS). Github only includes a patched version of gnuplot that contains context support. Mojca
therefore cannot check if the code is included. But judging from
gnuplot> help terminal […] Subtopics available for terminal: canvas cgm corel dpu414 dumb dxf eepic emf emtex epslatex epson_180dpi epson_60dpi epson_lx800 fig gif gpic hp2623a hp2648 hp500c hpdj hpgl hpljii hppj imagen jpeg latex mf mif mp nec_cp6 okidata pbm pcl5 pdfcairo png pngcairo pop postscript pslatex pstex pstricks push qms regis starc svg tandy_60dpi tek40xx tek410x texdraw tgif tkcanvas tpic vttek wxt x11 xlib xterm
$ gnuplot --version gnuplot 4.4 patchlevel 0
it appears it is still required. Did some send this patch already upstream for inclusion?
Thanks,
Paul
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-gnupl... 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@hotmail.com at openSubscriber.com http://www.opensubscriber.com/message/ntg-context@ntg.nl/14815843.html
On Sun, Jan 9, 2011 at 22:50,
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?
Thanks a lot for the bug report. I can confirm that it fails here as well. I rarely use any other terminal but the native ConTeXt one, so I didn't notice the problem with metapost terminal. I'll take a look into it. I get the following error and will try to investigate further: This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) \write18 enabled. ---! /context/tex/texmf-osx-64/web2c/pdftex/mptopdf.fmt doesn't match pdftex.pool (Fatal format file error; I'm stymied) MPtoPDF 1.4.0 : error while processing tex file Mojca PS: I have to admit that I have no idea when I last compiled the windows binary for gnuplot. I would need to learn again how to do it.
On Sun, 9 Jan 2011, Mojca Miklavec wrote:
On Sun, Jan 9, 2011 at 22:50,
wrote: 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?
Thanks a lot for the bug report. I can confirm that it fails here as well.
I rarely use any other terminal but the native ConTeXt one, so I didn't notice the problem with metapost terminal.
I'll take a look into it. I get the following error and will try to investigate further:
This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) \write18 enabled. ---! /context/tex/texmf-osx-64/web2c/pdftex/mptopdf.fmt doesn't match pdftex.pool (Fatal format file error; I'm stymied)
MPtoPDF 1.4.0 : error while processing tex file
texexec --make --all should regenerate mptopdf format. Aditya
On Sun, Jan 9, 2011 at 19:54, Mojca Miklavec
On Sun, Jan 9, 2011 at 22:50,
wrote: 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?
Thanks a lot for the bug report. I can confirm that it fails here as well.
I rarely use any other terminal but the native ConTeXt one, so I didn't notice the problem with metapost terminal.
I'll take a look into it.
Does it help if you change \getfiguredimensions[\@@GNUPLOTresult] into \getfiguredimensions[\@@GNUPLOTfinalresult] in line 484? Mojca
I have tried texexec --make --all and changing line 484 from \getfiguredimensions[\@@GNUPLOTresult] into \getfiguredimensions[\@@GNUPLOTfinalresult] but neither is giving me any luck. Now also install-setup.bat --extras="t-gnuplot" is not working anymore. Not sure what the issue is. Jeroen -- This message was sent on behalf of jeroen.muskee@hotmail.com at openSubscriber.com http://www.opensubscriber.com/message/ntg-context@ntg.nl/14992530.html
Am Montag, den 15.11.2010, 12:29 +0100 schrieb Mojca Miklavec:
On Sun, Nov 14, 2010 at 23:04, Paul Menzel wrote:
I read about the Gnuplot module [1] and I am wondering whether patching the Gnuplot binary is still necessary.
Yes.
Can you please send the same message to the gnuplot mailing list?
I will.
I have sent the patch upstream once in 2006,
Could you please tell me subject line or even better provide a link to the archive. I could not find your post to the archive.
but they had two arguments against including the patch:
[…] Thanks, Paul
participants (5)
-
Aditya Mahajan
-
jeroen.muskee@hotmail.com
-
Jonas Stein
-
Mojca Miklavec
-
Paul Menzel