* \asciimode does not work with gnuplot module @ 2013-01-20 22:06 Marco Patzer 2013-01-21 0:19 ` Mojca Miklavec 0 siblings, 1 reply; 4+ messages in thread From: Marco Patzer @ 2013-01-20 22:06 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 242 bytes --] Hi, When \asciimode is set some version info is printed instead of the graph. Example: \usemodule [gnuplot] \asciimode \starttext \startGNUPLOTscript [foo] plot sin(x) \stopGNUPLOTscript \useGNUPLOTgraphic [foo] \stoptext Marco [-- Attachment #1.2: Digital signature --] [-- Type: application/pgp-signature, Size: 490 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \asciimode does not work with gnuplot module 2013-01-20 22:06 \asciimode does not work with gnuplot module Marco Patzer @ 2013-01-21 0:19 ` Mojca Miklavec 2013-01-21 8:16 ` Wolfgang Schuster 0 siblings, 1 reply; 4+ messages in thread From: Mojca Miklavec @ 2013-01-21 0:19 UTC (permalink / raw) To: mailing list for ConTeXt users On Sun, Jan 20, 2013 at 11:06 PM, Marco Patzer wrote: > \usemodule [gnuplot] > \asciimode > > \starttext > \startGNUPLOTscript [foo] > plot sin(x) > \stopGNUPLOTscript > \useGNUPLOTgraphic [foo] > \stoptext I need help with that one. Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \asciimode does not work with gnuplot module 2013-01-21 0:19 ` Mojca Miklavec @ 2013-01-21 8:16 ` Wolfgang Schuster 2013-01-21 9:08 ` Mojca Miklavec 0 siblings, 1 reply; 4+ messages in thread From: Wolfgang Schuster @ 2013-01-21 8:16 UTC (permalink / raw) To: mailing list for ConTeXt users Am 21.01.2013 um 01:19 schrieb Mojca Miklavec <mojca.miklavec.lists@gmail.com>: > On Sun, Jan 20, 2013 at 11:06 PM, Marco Patzer wrote: >> \usemodule [gnuplot] >> \asciimode >> >> \starttext >> \startGNUPLOTscript [foo] >> plot sin(x) >> \stopGNUPLOTscript >> \useGNUPLOTgraphic [foo] >> \stoptext > > I need help with that one. At which point does it fail? - creates context the input file for gnu plot - is gnu plot called from context - does gnu plot create a output file - does it help when you change the terminal setting in context Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \asciimode does not work with gnuplot module 2013-01-21 8:16 ` Wolfgang Schuster @ 2013-01-21 9:08 ` Mojca Miklavec 0 siblings, 0 replies; 4+ messages in thread From: Mojca Miklavec @ 2013-01-21 9:08 UTC (permalink / raw) To: mailing list for ConTeXt users On Mon, Jan 21, 2013 at 9:16 AM, Wolfgang Schuster wrote: > Am 21.01.2013 um 01:19 schrieb Mojca Miklavec: >> On Sun, Jan 20, 2013 at 11:06 PM, Marco Patzer wrote: >>> \usemodule [gnuplot] >>> \asciimode >>> >>> \starttext >>> \startGNUPLOTscript [foo] >>> plot sin(x) >>> \stopGNUPLOTscript >>> \useGNUPLOTgraphic [foo] >>> \stoptext >> >> I need help with that one. > > At which point does it fail? > > - creates context the input file for gnu plot > - is gnu plot called from context > - does gnu plot create a output file > - does it help when you change the terminal setting in context I'm sorry. I should have been more explicit. Gnuplot runs and creates the necessary output file(s) which starts with the following for example: % Written by ConTeXt terminal for GNUPLOT on: 2013-01-21 01:17 CET % GNUPLOT version: 4.6.1, terminal version: 1.0.0 (2011-11-05) % See also http://wiki.contextgarden.net/Gnuplot % \startGNUPLOTgraphic[1] string gnuplotversion; gnuplotversion := "4.6"; ... <metapost code here> The command \useGNUPLOTgraphic[foo] basically calls \reuseMPgraphic{gpg:foo:1} where "foo" is the name from brackets and 1 is the sequential number. But instead of the graphic I get the following written to the pdf as text: % Written by ConTeXt terminal for GNUPLOT on: 2013-01-21 01:17 CET % GNU- PLOT version: 4.6.1, terminal version: 1.0.0 (2011-11-05) % See also http://wiki.con- textgarden.net/Gnuplot % If I change the graphic to TikZ, I get almost the whole plot, except for the sine line which is drawn between -10 and approximately -9 and then disappears. I suspect the culprit is the percentage sign at the end of the line: \draw[gp path] (1.410,5.722)--(1.517,5.147)--(1.625,4.524)--(1.732,3.879)--(1.840,3.237)% --(1.947,2.626)--(2.055,2.070)--(2.162,1.591)--(2.270,1.210)--(2.377,0.941)--(2.485,0.795)% --(2.592,0.779)--(2.699,0.893)--(2.807,1.133)--(2.914,1.488)--(3.022,1.944)--(3.129,2.484)% ... 17 lines altogether --(11.618,4.718)--(11.726,4.076)--(11.833,3.431)--(11.941,2.808)--(12.048,2.233); I didn't test it, but it seems as if everything after the first percentage sign gets ignored. I can do a couple more tests with MetaPost and TikZ in \asciimode, but the fact that the above line gets broken in the middle simply doesn't seem right (even if my gnuplot module code is clumsy). Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-21 9:08 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-01-20 22:06 \asciimode does not work with gnuplot module Marco Patzer 2013-01-21 0:19 ` Mojca Miklavec 2013-01-21 8:16 ` Wolfgang Schuster 2013-01-21 9:08 ` Mojca Miklavec
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).