summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/context
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-19 23:50:30 +0000
committerKarl Berry <karl@freefriends.org>2011-09-19 23:50:30 +0000
commit982fd914e8a8280290bf497fc838067e08bae6f3 (patch)
tree1049ad2720dc57be8741253203dfebcdc58352f6 /Master/texmf-dist/doc/context
parent68c8eb6d0ad58860c28d19dcfc1f98fbe818512d (diff)
context-gnuplot (19sep11)
git-svn-id: svn://tug.org/texlive/trunk@24028 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/context')
-rw-r--r--Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.pdfbin10875 -> 11414 bytes
-rw-r--r--Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.tex335
-rw-r--r--Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.pdfbin63663 -> 426501 bytes
-rw-r--r--Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.tex268
4 files changed, 365 insertions, 238 deletions
diff --git a/Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.pdf b/Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.pdf
index 23230b5b0ad..216a21e6f05 100644
--- a/Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.pdf
+++ b/Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.tex b/Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.tex
index ccf83859412..9e99294055e 100644
--- a/Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.tex
+++ b/Master/texmf-dist/doc/context/third/gnuplot/examples/fullpage-example.tex
@@ -1,5 +1,5 @@
-% Written by ConTeXt terminal for GNUPLOT on: Thu Feb 10 09:02:54 2011
-% GNUPLOT version 4.5 patchlevel 0
+% Written by ConTeXt terminal for GNUPLOT on: 2011-09-18 15:32 CEST
+% GNUPLOT version: 4.5.0, terminal version: 1.0.0 (2011-09-16)
% See also http://wiki.contextgarden.net/Gnuplot
%
\usemodule
@@ -14,21 +14,20 @@
linecap=butt, % *butt* | rounded | squared
dashed=yes, % *yes* | no
dashlength=1, % scaling factor for dash lengths
- linewidth=1, % scaling factor for line widths (1.0 means 0.4bp)
- %textscale=1, % scaling factor for text labels
- points=metapost] % *metapost* | tex (Should points be drawn with MetaPost or TeX?)
+ linewidth=1, % scaling factor for line widths (1.0 means 0.5bp)
+ %fontscale=1, % scaling factor for text labels
+ points=metapost, % *metapost* | tex (Should points be drawn with MetaPost or TeX?)
+ images=inline] % *inline* | external (inline only works in MKIV, external requires png support in gnuplot)
\starttext
\startGNUPLOTpage % Graphic Nr. 1
-gnuplotversion := "4.5";
-% width and height of the figure
-w:=5in; h:=3in;
-% horizontal and vertical scaling factors
-a:=w/120.00; b:=h/72.00;
-% temporary variable for storing the path
-save p; path p;
-%
+string gnuplotversion; gnuplotversion := "4.5";
+string termversion; termversion := "1.0";
+% scaling factor, width and height of the figure
+a := 1cm; w := 12.700a; h := 7.620a; % (5in, 3in)
+% temporary variable for storing the path and images
+save p, img, ima; path p; string img, ima;
% -------------------------
% Different initialisations
% -------------------------
@@ -44,138 +43,132 @@ gp_set_linewidth(1);
gp_setup_after;
% -------------------------
gp_set_linetype(-2);
-p := (12.61a,7.96b)--(13.77a,7.96b);
+p := (1.339a,0.842a)--(1.462a,0.842a);
gp_draw(p);
-p := (114.17a,7.96b)--(113.01a,7.96b);
+p := (12.081a,0.842a)--(11.958a,0.842a);
gp_draw(p);
-gp_put_text((10.67a, 7.96b), align(right), \sometxt[gp]{-1});
-p := (12.61a,13.98b)--(13.77a,13.98b);
+gp_put_text((1.133a, 0.842a), align(right), \sometxt[gp]{-1});
+p := (1.339a,1.479a)--(1.462a,1.479a);
gp_draw(p);
-p := (114.17a,13.98b)--(113.01a,13.98b);
+p := (12.081a,1.479a)--(11.958a,1.479a);
gp_draw(p);
-gp_put_text((10.67a, 13.98b), align(right), \sometxt[gp]{-0.8});
-p := (12.61a,19.99b)--(13.77a,19.99b);
+gp_put_text((1.133a, 1.479a), align(right), \sometxt[gp]{-0.8});
+p := (1.339a,2.115a)--(1.462a,2.115a);
gp_draw(p);
-p := (114.17a,19.99b)--(113.01a,19.99b);
+p := (12.081a,2.115a)--(11.958a,2.115a);
gp_draw(p);
-gp_put_text((10.67a, 19.99b), align(right), \sometxt[gp]{-0.6});
-p := (12.61a,26.00b)--(13.77a,26.00b);
+gp_put_text((1.133a, 2.115a), align(right), \sometxt[gp]{-0.6});
+p := (1.339a,2.751a)--(1.462a,2.751a);
gp_draw(p);
-p := (114.17a,26.00b)--(113.01a,26.00b);
+p := (12.081a,2.751a)--(11.958a,2.751a);
gp_draw(p);
-gp_put_text((10.67a, 26.00b), align(right), \sometxt[gp]{-0.4});
-p := (12.61a,32.02b)--(13.77a,32.02b);
+gp_put_text((1.133a, 2.751a), align(right), \sometxt[gp]{-0.4});
+p := (1.339a,3.388a)--(1.462a,3.388a);
gp_draw(p);
-p := (114.17a,32.02b)--(113.01a,32.02b);
+p := (12.081a,3.388a)--(11.958a,3.388a);
gp_draw(p);
-gp_put_text((10.67a, 32.02b), align(right), \sometxt[gp]{-0.2});
-p := (12.61a,38.04b)--(13.77a,38.04b);
+gp_put_text((1.133a, 3.388a), align(right), \sometxt[gp]{-0.2});
+p := (1.339a,4.025a)--(1.462a,4.025a);
gp_draw(p);
-p := (114.17a,38.04b)--(113.01a,38.04b);
+p := (12.081a,4.025a)--(11.958a,4.025a);
gp_draw(p);
-gp_put_text((10.67a, 38.04b), align(right), \sometxt[gp]{0});
-p := (12.61a,44.05b)--(13.77a,44.05b);
+gp_put_text((1.133a, 4.025a), align(right), \sometxt[gp]{0});
+p := (1.339a,4.661a)--(1.462a,4.661a);
gp_draw(p);
-p := (114.17a,44.05b)--(113.01a,44.05b);
+p := (12.081a,4.661a)--(11.958a,4.661a);
gp_draw(p);
-gp_put_text((10.67a, 44.05b), align(right), \sometxt[gp]{0.2});
-p := (12.61a,50.07b)--(13.77a,50.07b);
+gp_put_text((1.133a, 4.661a), align(right), \sometxt[gp]{0.2});
+p := (1.339a,5.298a)--(1.462a,5.298a);
gp_draw(p);
-p := (114.17a,50.07b)--(113.01a,50.07b);
+p := (12.081a,5.298a)--(11.958a,5.298a);
gp_draw(p);
-gp_put_text((10.67a, 50.07b), align(right), \sometxt[gp]{0.4});
-p := (12.61a,56.08b)--(13.77a,56.08b);
+gp_put_text((1.133a, 5.298a), align(right), \sometxt[gp]{0.4});
+p := (1.339a,5.934a)--(1.462a,5.934a);
gp_draw(p);
-p := (114.17a,56.08b)--(113.01a,56.08b);
+p := (12.081a,5.934a)--(11.958a,5.934a);
gp_draw(p);
-gp_put_text((10.67a, 56.08b), align(right), \sometxt[gp]{0.6});
-p := (12.61a,62.10b)--(13.77a,62.10b);
+gp_put_text((1.133a, 5.934a), align(right), \sometxt[gp]{0.6});
+p := (1.339a,6.571a)--(1.462a,6.571a);
gp_draw(p);
-p := (114.17a,62.10b)--(113.01a,62.10b);
+p := (12.081a,6.571a)--(11.958a,6.571a);
gp_draw(p);
-gp_put_text((10.67a, 62.10b), align(right), \sometxt[gp]{0.8});
-p := (12.61a,68.11b)--(13.77a,68.11b);
+gp_put_text((1.133a, 6.571a), align(right), \sometxt[gp]{0.8});
+p := (1.339a,7.207a)--(1.462a,7.207a);
gp_draw(p);
-p := (114.17a,68.11b)--(113.01a,68.11b);
+p := (12.081a,7.207a)--(11.958a,7.207a);
gp_draw(p);
-gp_put_text((10.67a, 68.11b), align(right), \sometxt[gp]{1});
-p := (12.61a,7.96b)--(12.61a,9.12b);
+gp_put_text((1.133a, 7.207a), align(right), \sometxt[gp]{1});
+p := (1.339a,0.842a)--(1.339a,0.965a);
gp_draw(p);
-p := (12.61a,68.11b)--(12.61a,66.95b);
+p := (1.339a,7.207a)--(1.339a,7.084a);
gp_draw(p);
-gp_put_text((12.61a, 3.98b), align(center), \sometxt[gp]{-10});
-p := (38.00a,7.96b)--(38.00a,9.12b);
+gp_put_text((1.339a, 0.421a), align(center), \sometxt[gp]{-10});
+p := (4.025a,0.842a)--(4.025a,0.965a);
gp_draw(p);
-p := (38.00a,68.11b)--(38.00a,66.95b);
+p := (4.025a,7.207a)--(4.025a,7.084a);
gp_draw(p);
-gp_put_text((38.00a, 3.98b), align(center), \sometxt[gp]{-5});
-p := (63.39a,7.96b)--(63.39a,9.12b);
+gp_put_text((4.025a, 0.421a), align(center), \sometxt[gp]{-5});
+p := (6.710a,0.842a)--(6.710a,0.965a);
gp_draw(p);
-p := (63.39a,68.11b)--(63.39a,66.95b);
+p := (6.710a,7.207a)--(6.710a,7.084a);
gp_draw(p);
-gp_put_text((63.39a, 3.98b), align(center), \sometxt[gp]{0});
-p := (88.78a,7.96b)--(88.78a,9.12b);
+gp_put_text((6.710a, 0.421a), align(center), \sometxt[gp]{0});
+p := (9.396a,0.842a)--(9.396a,0.965a);
gp_draw(p);
-p := (88.78a,68.11b)--(88.78a,66.95b);
+p := (9.396a,7.207a)--(9.396a,7.084a);
gp_draw(p);
-gp_put_text((88.78a, 3.98b), align(center), \sometxt[gp]{5});
-p := (114.17a,7.96b)--(114.17a,9.12b);
+gp_put_text((9.396a, 0.421a), align(center), \sometxt[gp]{5});
+p := (12.081a,0.842a)--(12.081a,0.965a);
gp_draw(p);
-p := (114.17a,68.11b)--(114.17a,66.95b);
+p := (12.081a,7.207a)--(12.081a,7.084a);
gp_draw(p);
-gp_put_text((114.17a, 3.98b), align(center), \sometxt[gp]{10});
-p := (12.61a,68.11b)--(12.61a,7.96b)--(114.17a,7.96b)--(114.17a,68.11b)
- --(12.61a,68.11b)--cycle;
+gp_put_text((12.081a, 0.421a), align(center), \sometxt[gp]{10});
+p := (1.339a,7.207a)--(1.339a,0.842a)--(12.081a,0.842a)--(12.081a,7.207a)--cycle;
gp_draw(p);
-gp_set_pointsize(1.000);
gp_set_linetype(0);
gp_set_color(lt(-2));
-gp_put_text((99.43a, 64.96b), align(right), \sometxt[gp]{sin(x)});
+gp_put_text((10.516a, 6.874a), align(right), \sometxt[gp]{sin(x)});
gp_set_linetype(0);
-p := (101.37a,64.96b)--(110.29a,64.96b);
-gp_draw(p);
-p := (12.61a,54.40b)--(13.64a,49.00b)--(14.66a,43.16b)--(15.69a,37.11b)
- --(16.71a,31.09b)--(17.74a,25.36b)--(18.77a,20.15b)--(19.79a,15.66b)
- --(20.82a,12.08b)--(21.84a,9.56b)--(22.87a,8.20b)--(23.89a,8.05b)
- --(24.92a,9.12b)--(25.95a,11.36b)--(26.97a,14.69b)--(28.00a,18.97b)
- --(29.02a,24.03b)--(30.05a,29.65b)--(31.08a,35.62b)--(32.10a,41.68b)
- --(33.13a,47.60b)--(34.15a,53.12b)--(35.18a,58.04b)--(36.20a,62.14b)
- --(37.23a,65.26b)--(38.26a,67.27b)--(39.28a,68.09b)--(40.31a,67.69b)
- --(41.33a,66.09b)--(42.36a,63.34b)--(43.39a,59.56b)--(44.41a,54.91b)
- --(45.44a,49.57b)--(46.46a,43.77b)--(47.49a,37.73b)--(48.52a,31.70b)
- --(49.54a,25.93b)--(50.57a,20.65b)--(51.59a,16.08b)--(52.62a,12.40b)
- --(53.64a,9.77b)--(54.67a,8.28b)--(55.70a,8.01b)--(56.72a,8.95b)
- --(57.75a,11.08b)--(58.77a,14.31b)--(59.80a,18.50b)--(60.83a,23.48b)
- --(61.85a,29.06b)--(62.88a,35.00b)--(63.90a,41.07b)--(64.93a,47.01b)
- --(65.95a,52.59b)--(66.98a,57.57b)--(68.01a,61.76b)--(69.03a,64.99b)
- --(70.06a,67.12b)--(71.08a,68.06b)--(72.11a,67.79b)--(73.14a,66.30b)
- --(74.16a,63.67b)--(75.19a,59.99b)--(76.21a,55.42b)--(77.24a,50.14b)
- --(78.26a,44.37b)--(79.29a,38.34b)--(80.32a,32.30b)--(81.34a,26.50b)
- --(82.37a,21.16b)--(83.39a,16.51b)--(84.42a,12.73b)--(85.45a,9.98b)
- --(86.47a,8.38b)--(87.50a,7.98b)--(88.52a,8.80b)--(89.55a,10.81b)
- --(90.58a,13.93b)--(91.60a,18.03b)--(92.63a,22.95b)--(93.65a,28.47b)
- --(94.68a,34.39b)--(95.70a,40.45b)--(96.73a,46.42b)--(97.76a,52.04b)
- --(98.78a,57.10b)--(99.81a,61.38b)--(100.83a,64.71b)--(101.86a,66.95b)
- --(102.89a,68.02b)--(103.91a,67.87b)--(104.94a,66.51b)--(105.96a,63.99b)
- --(106.99a,60.41b)--(108.01a,55.92b)--(109.04a,50.71b)--(110.07a,44.98b)
- --(111.09a,38.96b)--(112.12a,32.91b)--(113.14a,27.07b)--(114.17a,21.67b);
+p := (10.722a,6.874a)--(11.669a,6.874a);
+gp_draw(p);
+p := (1.339a,5.756a)--(1.448a,5.185a)--(1.556a,4.567a)--(1.665a,3.926a)
+ --(1.773a,3.290a)--(1.882a,2.684a)--(1.990a,2.132a)--(2.099a,1.657a)
+ --(2.207a,1.278a)--(2.316a,1.011a)--(2.424a,0.867a)--(2.533a,0.851a)
+ --(2.641a,0.964a)--(2.750a,1.202a)--(2.858a,1.554a)--(2.967a,2.007a)
+ --(3.075a,2.542a)--(3.184a,3.137a)--(3.292a,3.769a)--(3.401a,4.410a)
+ --(3.509a,5.036a)--(3.618a,5.621a)--(3.726a,6.141a)--(3.835a,6.575a)
+ --(3.943a,6.905a)--(4.052a,7.118a)--(4.160a,7.205a)--(4.269a,7.163a)
+ --(4.377a,6.993a)--(4.486a,6.702a)--(4.594a,6.303a)--(4.703a,5.810a)
+ --(4.811a,5.246a)--(4.920a,4.631a)--(5.028a,3.992a)--(5.137a,3.354a)
+ --(5.245a,2.743a)--(5.354a,2.185a)--(5.462a,1.701a)--(5.571a,1.312a)
+ --(5.679a,1.033a)--(5.788a,0.876a)--(5.896a,0.847a)--(6.005a,0.947a)
+ --(6.113a,1.172a)--(6.222a,1.514a)--(6.330a,1.957a)--(6.439a,2.485a)
+ --(6.547a,3.075a)--(6.656a,3.704a)--(6.764a,4.345a)--(6.873a,4.974a)
+ --(6.981a,5.564a)--(7.090a,6.092a)--(7.198a,6.535a)--(7.307a,6.877a)
+ --(7.415a,7.102a)--(7.524a,7.202a)--(7.632a,7.173a)--(7.741a,7.016a)
+ --(7.849a,6.737a)--(7.958a,6.348a)--(8.066a,5.864a)--(8.175a,5.306a)
+ --(8.283a,4.695a)--(8.392a,4.057a)--(8.500a,3.418a)--(8.609a,2.803a)
+ --(8.717a,2.239a)--(8.826a,1.746a)--(8.934a,1.347a)--(9.043a,1.056a)
+ --(9.151a,0.886a)--(9.260a,0.844a)--(9.368a,0.931a)--(9.477a,1.144a)
+ --(9.585a,1.474a)--(9.694a,1.908a)--(9.802a,2.428a)--(9.911a,3.013a)
+ --(10.019a,3.639a)--(10.128a,4.280a)--(10.236a,4.912a)--(10.345a,5.507a)
+ --(10.453a,6.042a)--(10.562a,6.495a)--(10.670a,6.847a)--(10.779a,7.085a)
+ --(10.887a,7.198a)--(10.996a,7.182a)--(11.104a,7.038a)--(11.213a,6.771a)
+ --(11.321a,6.392a)--(11.430a,5.917a)--(11.538a,5.365a)--(11.647a,4.759a)
+ --(11.755a,4.123a)--(11.864a,3.482a)--(11.972a,2.864a)--(12.081a,2.293a);
gp_draw(p);
gp_set_linetype(-2);
-p := (12.61a,68.11b)--(12.61a,7.96b)--(114.17a,7.96b)--(114.17a,68.11b)
- --(12.61a,68.11b)--cycle;
+p := (1.339a,7.207a)--(1.339a,0.842a)--(12.081a,0.842a)--(12.081a,7.207a)--cycle;
gp_draw(p);
-gp_set_pointsize(1.000);
setbounds currentpicture to unitsquare xyscaled (w,h); % 0 0 1 1
\stopGNUPLOTpage
\startGNUPLOTpage % Graphic Nr. 2
-gnuplotversion := "4.5";
-% width and height of the figure
-w:=5in; h:=3in;
-% horizontal and vertical scaling factors
-a:=w/120.00; b:=h/72.00;
-% temporary variable for storing the path
-save p; path p;
-%
+string gnuplotversion; gnuplotversion := "4.5";
+string termversion; termversion := "1.0";
+% scaling factor, width and height of the figure
+a := 1cm; w := 12.700a; h := 7.620a; % (5in, 3in)
+% temporary variable for storing the path and images
+save p, img, ima; path p; string img, ima;
% -------------------------
% Different initialisations
% -------------------------
@@ -191,107 +184,103 @@ gp_set_linewidth(1);
gp_setup_after;
% -------------------------
gp_set_linetype(-2);
-p := (12.61a,7.96b)--(13.77a,7.96b);
+p := (1.339a,0.842a)--(1.462a,0.842a);
gp_draw(p);
-p := (114.17a,7.96b)--(113.01a,7.96b);
+p := (12.081a,0.842a)--(11.958a,0.842a);
gp_draw(p);
-gp_put_text((10.67a, 7.96b), align(right), \sometxt[gp]{-0.6});
-p := (12.61a,17.99b)--(13.77a,17.99b);
+gp_put_text((1.133a, 0.842a), align(right), \sometxt[gp]{-0.6});
+p := (1.339a,1.903a)--(1.462a,1.903a);
gp_draw(p);
-p := (114.17a,17.99b)--(113.01a,17.99b);
+p := (12.081a,1.903a)--(11.958a,1.903a);
gp_draw(p);
-gp_put_text((10.67a, 17.99b), align(right), \sometxt[gp]{-0.4});
-p := (12.61a,28.01b)--(13.77a,28.01b);
+gp_put_text((1.133a, 1.903a), align(right), \sometxt[gp]{-0.4});
+p := (1.339a,2.964a)--(1.462a,2.964a);
gp_draw(p);
-p := (114.17a,28.01b)--(113.01a,28.01b);
+p := (12.081a,2.964a)--(11.958a,2.964a);
gp_draw(p);
-gp_put_text((10.67a, 28.01b), align(right), \sometxt[gp]{-0.2});
-p := (12.61a,38.04b)--(13.77a,38.04b);
+gp_put_text((1.133a, 2.964a), align(right), \sometxt[gp]{-0.2});
+p := (1.339a,4.025a)--(1.462a,4.025a);
gp_draw(p);
-p := (114.17a,38.04b)--(113.01a,38.04b);
+p := (12.081a,4.025a)--(11.958a,4.025a);
gp_draw(p);
-gp_put_text((10.67a, 38.04b), align(right), \sometxt[gp]{0});
-p := (12.61a,48.06b)--(13.77a,48.06b);
+gp_put_text((1.133a, 4.025a), align(right), \sometxt[gp]{0});
+p := (1.339a,5.085a)--(1.462a,5.085a);
gp_draw(p);
-p := (114.17a,48.06b)--(113.01a,48.06b);
+p := (12.081a,5.085a)--(11.958a,5.085a);
gp_draw(p);
-gp_put_text((10.67a, 48.06b), align(right), \sometxt[gp]{0.2});
-p := (12.61a,58.08b)--(13.77a,58.08b);
+gp_put_text((1.133a, 5.085a), align(right), \sometxt[gp]{0.2});
+p := (1.339a,6.146a)--(1.462a,6.146a);
gp_draw(p);
-p := (114.17a,58.08b)--(113.01a,58.08b);
+p := (12.081a,6.146a)--(11.958a,6.146a);
gp_draw(p);
-gp_put_text((10.67a, 58.08b), align(right), \sometxt[gp]{0.4});
-p := (12.61a,68.11b)--(13.77a,68.11b);
+gp_put_text((1.133a, 6.146a), align(right), \sometxt[gp]{0.4});
+p := (1.339a,7.207a)--(1.462a,7.207a);
gp_draw(p);
-p := (114.17a,68.11b)--(113.01a,68.11b);
+p := (12.081a,7.207a)--(11.958a,7.207a);
gp_draw(p);
-gp_put_text((10.67a, 68.11b), align(right), \sometxt[gp]{0.6});
-p := (12.61a,7.96b)--(12.61a,9.12b);
+gp_put_text((1.133a, 7.207a), align(right), \sometxt[gp]{0.6});
+p := (1.339a,0.842a)--(1.339a,0.965a);
gp_draw(p);
-p := (12.61a,68.11b)--(12.61a,66.95b);
+p := (1.339a,7.207a)--(1.339a,7.084a);
gp_draw(p);
-gp_put_text((12.61a, 3.98b), align(center), \sometxt[gp]{-10});
-p := (38.00a,7.96b)--(38.00a,9.12b);
+gp_put_text((1.339a, 0.421a), align(center), \sometxt[gp]{-10});
+p := (4.025a,0.842a)--(4.025a,0.965a);
gp_draw(p);
-p := (38.00a,68.11b)--(38.00a,66.95b);
+p := (4.025a,7.207a)--(4.025a,7.084a);
gp_draw(p);
-gp_put_text((38.00a, 3.98b), align(center), \sometxt[gp]{-5});
-p := (63.39a,7.96b)--(63.39a,9.12b);
+gp_put_text((4.025a, 0.421a), align(center), \sometxt[gp]{-5});
+p := (6.710a,0.842a)--(6.710a,0.965a);
gp_draw(p);
-p := (63.39a,68.11b)--(63.39a,66.95b);
+p := (6.710a,7.207a)--(6.710a,7.084a);
gp_draw(p);
-gp_put_text((63.39a, 3.98b), align(center), \sometxt[gp]{0});
-p := (88.78a,7.96b)--(88.78a,9.12b);
+gp_put_text((6.710a, 0.421a), align(center), \sometxt[gp]{0});
+p := (9.396a,0.842a)--(9.396a,0.965a);
gp_draw(p);
-p := (88.78a,68.11b)--(88.78a,66.95b);
+p := (9.396a,7.207a)--(9.396a,7.084a);
gp_draw(p);
-gp_put_text((88.78a, 3.98b), align(center), \sometxt[gp]{5});
-p := (114.17a,7.96b)--(114.17a,9.12b);
+gp_put_text((9.396a, 0.421a), align(center), \sometxt[gp]{5});
+p := (12.081a,0.842a)--(12.081a,0.965a);
gp_draw(p);
-p := (114.17a,68.11b)--(114.17a,66.95b);
+p := (12.081a,7.207a)--(12.081a,7.084a);
gp_draw(p);
-gp_put_text((114.17a, 3.98b), align(center), \sometxt[gp]{10});
-p := (12.61a,68.11b)--(12.61a,7.96b)--(114.17a,7.96b)--(114.17a,68.11b)
- --(12.61a,68.11b)--cycle;
+gp_put_text((12.081a, 0.421a), align(center), \sometxt[gp]{10});
+p := (1.339a,7.207a)--(1.339a,0.842a)--(12.081a,0.842a)--(12.081a,7.207a)--cycle;
gp_draw(p);
-gp_set_pointsize(1.000);
gp_set_linetype(0);
gp_set_color(lt(-2));
-gp_put_text((99.43a, 64.96b), align(right), \sometxt[gp]{cos(atan(x))*sin(x)});
+gp_put_text((10.516a, 6.874a), align(right), \sometxt[gp]{cos(atan(x))*sin(x)});
gp_set_linetype(0);
-p := (101.37a,64.96b)--(110.29a,64.96b);
-gp_draw(p);
-p := (12.61a,40.75b)--(13.64a,39.89b)--(14.66a,38.92b)--(15.69a,37.87b)
- --(16.71a,36.78b)--(17.74a,35.70b)--(18.77a,34.66b)--(19.79a,33.72b)
- --(20.82a,32.91b)--(21.84a,32.28b)--(22.87a,31.85b)--(23.89a,31.66b)
- --(24.92a,31.73b)--(25.95a,32.06b)--(26.97a,32.66b)--(28.00a,33.52b)
- --(29.02a,34.62b)--(30.05a,35.93b)--(31.08a,37.41b)--(32.10a,39.01b)
- --(33.13a,40.67b)--(34.15a,42.34b)--(35.18a,43.94b)--(36.20a,45.41b)
- --(37.23a,46.68b)--(38.26a,47.68b)--(39.28a,48.36b)--(40.31a,48.66b)
- --(41.33a,48.52b)--(42.36a,47.93b)--(43.39a,46.86b)--(44.41a,45.31b)
- --(45.44a,43.27b)--(46.46a,40.78b)--(47.49a,37.88b)--(48.52a,34.62b)
- --(49.54a,31.09b)--(50.57a,27.37b)--(51.59a,23.57b)--(52.62a,19.82b)
- --(53.64a,16.26b)--(54.67a,13.08b)--(55.70a,10.47b)--(56.72a,8.67b)
- --(57.75a,7.98b)--(58.77a,8.77b)--(59.80a,11.45b)--(60.83a,16.39b)
- --(61.85a,23.72b)--(62.88a,33.01b)--(63.90a,43.06b)--(64.93a,52.35b)
- --(65.95a,59.68b)--(66.98a,64.62b)--(68.01a,67.30b)--(69.03a,68.09b)
- --(70.06a,67.40b)--(71.08a,65.60b)--(72.11a,62.99b)--(73.14a,59.81b)
- --(74.16a,56.25b)--(75.19a,52.50b)--(76.21a,48.70b)--(77.24a,44.98b)
- --(78.26a,41.45b)--(79.29a,38.19b)--(80.32a,35.29b)--(81.34a,32.80b)
- --(82.37a,30.76b)--(83.39a,29.21b)--(84.42a,28.14b)--(85.45a,27.55b)
- --(86.47a,27.41b)--(87.50a,27.71b)--(88.52a,28.39b)--(89.55a,29.39b)
- --(90.58a,30.66b)--(91.60a,32.13b)--(92.63a,33.73b)--(93.65a,35.40b)
- --(94.68a,37.06b)--(95.70a,38.66b)--(96.73a,40.14b)--(97.76a,41.45b)
- --(98.78a,42.55b)--(99.81a,43.41b)--(100.83a,44.01b)--(101.86a,44.34b)
- --(102.89a,44.41b)--(103.91a,44.22b)--(104.94a,43.79b)--(105.96a,43.16b)
- --(106.99a,42.35b)--(108.01a,41.41b)--(109.04a,40.37b)--(110.07a,39.29b)
- --(111.09a,38.20b)--(112.12a,37.15b)--(113.14a,36.18b)--(114.17a,35.32b);
+p := (10.722a,6.874a)--(11.669a,6.874a);
+gp_draw(p);
+p := (1.339a,4.312a)--(1.448a,4.221a)--(1.556a,4.118a)--(1.665a,4.007a)
+ --(1.773a,3.892a)--(1.882a,3.777a)--(1.990a,3.668a)--(2.099a,3.568a)
+ --(2.207a,3.482a)--(2.316a,3.415a)--(2.424a,3.370a)--(2.533a,3.350a)
+ --(2.641a,3.357a)--(2.750a,3.392a)--(2.858a,3.456a)--(2.967a,3.547a)
+ --(3.075a,3.663a)--(3.184a,3.802a)--(3.292a,3.958a)--(3.401a,4.128a)
+ --(3.509a,4.304a)--(3.618a,4.480a)--(3.726a,4.649a)--(3.835a,4.805a)
+ --(3.943a,4.939a)--(4.052a,5.046a)--(4.160a,5.117a)--(4.269a,5.148a)
+ --(4.377a,5.134a)--(4.486a,5.072a)--(4.594a,4.959a)--(4.703a,4.794a)
+ --(4.811a,4.578a)--(4.920a,4.315a)--(5.028a,4.008a)--(5.137a,3.663a)
+ --(5.245a,3.289a)--(5.354a,2.896a)--(5.462a,2.494a)--(5.571a,2.097a)
+ --(5.679a,1.721a)--(5.788a,1.384a)--(5.896a,1.107a)--(6.005a,0.917a)
+ --(6.113a,0.845a)--(6.222a,0.928a)--(6.330a,1.211a)--(6.439a,1.734a)
+ --(6.547a,2.510a)--(6.656a,3.492a)--(6.764a,4.557a)--(6.873a,5.539a)
+ --(6.981a,6.315a)--(7.090a,6.838a)--(7.198a,7.121a)--(7.307a,7.204a)
+ --(7.415a,7.132a)--(7.524a,6.942a)--(7.632a,6.665a)--(7.741a,6.328a)
+ --(7.849a,5.952a)--(7.958a,5.555a)--(8.066a,5.153a)--(8.175a,4.760a)
+ --(8.283a,4.386a)--(8.392a,4.041a)--(8.500a,3.734a)--(8.609a,3.471a)
+ --(8.717a,3.255a)--(8.826a,3.090a)--(8.934a,2.977a)--(9.043a,2.915a)
+ --(9.151a,2.901a)--(9.260a,2.932a)--(9.368a,3.003a)--(9.477a,3.110a)
+ --(9.585a,3.244a)--(9.694a,3.400a)--(9.802a,3.569a)--(9.911a,3.745a)
+ --(10.019a,3.921a)--(10.128a,4.091a)--(10.236a,4.247a)--(10.345a,4.386a)
+ --(10.453a,4.502a)--(10.562a,4.593a)--(10.670a,4.657a)--(10.779a,4.692a)
+ --(10.887a,4.699a)--(10.996a,4.679a)--(11.104a,4.634a)--(11.213a,4.567a)
+ --(11.321a,4.481a)--(11.430a,4.381a)--(11.538a,4.272a)--(11.647a,4.157a)
+ --(11.755a,4.042a)--(11.864a,3.931a)--(11.972a,3.828a)--(12.081a,3.737a);
gp_draw(p);
gp_set_linetype(-2);
-p := (12.61a,68.11b)--(12.61a,7.96b)--(114.17a,7.96b)--(114.17a,68.11b)
- --(12.61a,68.11b)--cycle;
+p := (1.339a,7.207a)--(1.339a,0.842a)--(12.081a,0.842a)--(12.081a,7.207a)--cycle;
gp_draw(p);
-gp_set_pointsize(1.000);
setbounds currentpicture to unitsquare xyscaled (w,h); % 0 0 1 1
\stopGNUPLOTpage
\stoptext
diff --git a/Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.pdf b/Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.pdf
index 23e3883496b..af12c28b627 100644
--- a/Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.pdf
+++ b/Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.tex b/Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.tex
index 3e82e2d26c4..69f208001a0 100644
--- a/Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.tex
+++ b/Master/texmf-dist/doc/context/third/gnuplot/gnuplot-context-doc.tex
@@ -5,23 +5,24 @@
\setupinteraction
[state=start]
+
\usemodule
[gnuplot]
-\setupexternalfigures
- [directory={.,examples}]
-
\setuplayout
- [backspace=1in,
+ [backspace=2cm,
width=middle,
- topspace=1in,
+ topspace=2cm,
heigh=middle,
header=0pt,
headerdistance=0pt]
+\setupwhitespace
+ [medium]
\setuphead
[title]
[align=middle,
+ before={\strut\blank[24pt]},
style=\bfc]
\setuphead
[section]
@@ -38,6 +39,13 @@
% \setupbodyfont
% [antykwa]
+\definetyping
+ [GP]
+ [escape={[[,]]},lines=no]
+\setuptyping
+ [TEX]
+ [stlye=\tfx]
+
\beginNEWTEX\usetypescript[lucida] \endNEWTEX
\beginOLDTEX\usetypescript[lucida][ec]\endOLDTEX
\setupbodyfont
@@ -53,13 +61,12 @@
[screen]
[s=0.9]
-\setuptyping
- [TEX]
- [tab=4]
+\logo [GNUPLOT] {{\sc gnuplot}}
\logo [TEXLIVE] {\TeX\ Live}
-\logo [MIKTEX] {Mik\TeX}
+\logo [MIKTEX] {MiK\TeX}
\logo [TIKZ] {Tik{\it Z}}
+\logo [CONTEXTMKII] {\ConTeXt\ \MKII}
\defineframedtext
[background]
@@ -75,9 +82,11 @@
\starttext
-\title{Using \color[maincolor]{\tt\bf context} and \color[maincolor]{\tt\bf tikz} terminal for gnuplot}
+\title{Using \color[maincolor]{\tt\bf context} and \color[maincolor]{\tt\bf tikz} terminals for gnuplot in \ConTeXt}
-\centerline{Mojca Miklavec, \date[y=2011,m=2,d=10]}
+\centerline{Mojca Miklavec, \date[y=2011,m=9,d=3]}
+
+{\it With special thanks to Hans Hagen, Taco Hoekwater, Aditya Mahajan and others.}
\blank
@@ -88,32 +97,49 @@
\section{Requirements}
\startitemize[n,packed]
-\item Any working \ConTeXt\ installation (\ConTeXt\ Minimals, \TEXLIVE\ 2010 or \MIKTEX\ 2.9 or newer).
+\item Any working \ConTeXt\ installation (\ConTeXt\ Minimals, \TEXLIVE\ 2011, \MIKTEX\ 2.9 or newer -- if it starts supporting \ConTeXt\ again).
\item The {\tt gnuplot} binary (or {\tt gnuplot.exe} under Windows) has to be in {\tt PATH} and needs to have support for {\tt context} and/or {\tt tikz} terminal built in.
\item The latest version of gnuplot module for ConTeXt.
+\item For running \GNUPLOT\ on the fly or when using \CONTEXTMKII, you need to have {\tt write18} enabled. Usually this can be set with {\tt shell_escape = t} in {\tt texmf.cnf}.
\stopitemize
\section{Installation}
-\subsection{\CONTEXT}
+\subsection{Gnuplot}
-TODO
+At the time of writing inclusion of {\tt context} terminal in gnuplot is still pending gnuplot. This may change in future, but even then you might want to compile gnuplot yourself to get a recent version. The latest version of {\tt context.trm} can be found at
+\useURL[github gnuplot][https://github.com/mojca/gnuplot]\from[github gnuplot].
-\subsection{Gnuplot}
+You need to run
+\starttyping
+git clone git://github.com/mojca/gnuplot.git
+cd gnuplot
+./prepare
+./configure
+make
+make install
+\stoptyping
-TODO
+You can also provide something like \type{--prefix=$PWD/install} to install gnuplot locally. Just make sure that you add the resulting binary to {\tt PATH}.
-You can check the list of supported terminals by typing \startlines
+Once you have the gnuplot binary running, you can check the list of supported terminals by typing
+\startlines
\tt{gnuplot>} \bf set term
\stoplines
-into gnuplot shell.
+into \GNUPLOT\ shell. Make sure that it lists:
+\starttyping
+ context ConTeXt with MetaFun (for PDF documents)
+ tikz Lua PGF/TikZ terminal for TeX and friends
+\stoptyping
+
+The module also supports some other terminals like {\tt png}, {\tt metapost}, {\tt postscript} and {\tt pdf}, so it is usable even if you didn't compile \GNUPLOT\ yourself, but their integration with \CONTEXT\ is very limited.
\subsection{{\tt\bf t-gnuplot} module for \CONTEXT}
-Under \CONTEXT\ Minimals you can install the gnuplot module and \TIKZ\ with an additional switch when running {\tt f\/irst-setup}, for example:
+Under \CONTEXT\ Minimals you can install the gnuplot module and \TIKZ\ with an additional switch when running {\tt first-setup}, for example:
\startbackground
-\tt f\/irst-setup.sh -\/-extras=t-gnuplot,t-tikz
+\tt first-setup.sh --modules=gnuplot,tikz
\stopbackground
If you have installed a {\tt complete} or {\tt context} scheme under \TEXLIVE, gnuplot module and \TIKZ\ might already be installed. Else you can use:
@@ -124,9 +150,10 @@ tlmgr install pgf
Under \MIKTEX\ the module is installed automatically when it is first used.
+\page
\section{Simple examples}
-\subsection{Calling gnuplot directly}
+\subsection[calling gnuplot directly]{Calling gnuplot directly}
Let's first create a simple file (we will call it {\tt\it example.plt}, but you may choose any name) with the contents below.
@@ -146,10 +173,11 @@ plot sin(x)\\
plot cos(atan(x))*sin(x)
\stopmyinput
-In both cases the option {\tt standalone} is used to create a complete \CONTEXT\ document with one plot per page, including header and {\tt\textbackslash starttext \dots\ \textbackslash stoptext}, so that it can be compiled directly. The option {\tt createstyle} is used to create three files with required macros in working directory\footnote{An alternative is to place those three files somewhere where kpathsea can find them and omit the option {\tt createstyle}, just make sure that the versions of {\tt tikz} terminal and the files in your \TeX\ tree remain compatible.}
+In both cases the option {\tt standalone} is used to create a complete \CONTEXT\ document with one plot per page, including header and {\tt\textbackslash starttext \dots\ \textbackslash stoptext}, so that it can be compiled directly. The option {\tt createstyle} is used to create three files with required macros in working directory\footnote{An alternative is to place those three files somewhere where kpathsea can find them and omit the option {\tt createstyle}, just make sure that the versions of {\tt tikz} terminal and the files in your \TeX\ tree remain compatible.}.
-Both terminals should give you almost equivalent results apart from default plot size. You are highly encouraged to specify the disired plot size explicitely. You may scale the plot later on, but you probably want to get the desired proportions from the start.
+Both terminals should give you almost equivalent results apart from default plot size. You are highly encouraged to specify the desired plot size explicitly. You may scale the plot later on, but you probably want to get the desired proportions from the start.
+\page
Run gnuplot with
\startbackground
gnuplot example.plt
@@ -161,33 +189,37 @@ and compile the result with any of the following three commands (depending on yo
\hbox{\hbox to 25em{texexec --xtx fullpage-example.tex \hss} {\rm\# for \XeTeX} }
\stopbackground
-They are almost equivalent except that \XeTeX\ lacks some advanced features (some patterns). The only major difference is the choice of fonts. If you want to typeset Arabic labels or use system fonts, you will probably want to choose \LuaTeX\ or \XeTeX. If you are using many graphical elements (like in 3D plots), you might want to go for \LuaTeX.
-
-You should get a {\sc pdf} document with two full-page plots that you can include into your document with \type{\externalfigure[fullpage-example][page=2]} for example.
+They are almost equivalent except that \XeTeX\ lacks some advanced features (some patterns). The only major difference is the choice of fonts. If you want to typeset Arabic labels or use system fonts, you will probably want to choose \LuaTeX\ or \XeTeX. If you are using many graphical elements (3D plots, images, \dots), you might want to go for \LuaTeX.
-\placefigure[force]{}{\externalfigure[fullpage-example][page=2]}
+You should get a {\sc pdf} document with two full-page plots that you can include into your document with \type{\externalfigure[examples/fullpage-example][page=2]} for example.
+\placefigure[force]{Second page from \type{fullpage-example}, included with \type+\externalfigure+}{\externalfigure[fullpage-example][page=2]}
+\page
\subsection{Calling gnuplot from \TeX}
-As you can see you will always get Latin Modern font at 12pt unless you explicitely change it with {\tt header "\textbackslash setupbodyfont[...]"}. An easier way to make sure that the same font is used and to avoid having to call gnuplot manually is to simply type the gnuplot code inside your \CONTEXT\ document:
+As you can see you will always get Latin Modern font at 12pt unless you explicitly change it with {\tt header "\textbackslash setupbodyfont[somefontname,10pt]"} or with {\tt font "somefontname,10pt"}. An easier way to make sure that the same font is used and to avoid having to call gnuplot manually is to simply type the gnuplot code inside your \CONTEXT\ document:
\startTEX
\usemodule
[gnuplot]
\setupGNUPLOTterminal
[context]
- [width=5in,height=2.5in,textscale=0.8]
+ [width=5in,height=2.5in,fontscale=0.9]
\setupGNUPLOTterminal
[tikz]
- [width=5in,height=2.5in]
+ [width=5in,height=2.5in,fontscale=0.9]
\starttext
-\startGNUPLOTscript[myfunction]
+\startGNUPLOTinclusions
set samples 400
set key left Left reverse
+\stopGNUPLOTinclusion
+
+\startGNUPLOTscript[myfunction]
+set zeroaxis
set format y "%.1f"
-plot sin(x) t '$\sin(x)$' lw 3
+plot [-4:2][0:2] 1 t '' lt 0, exp(x) t '$e^x$' lt 1 lw 3
plot cos(atan(x))*sin(x) t '$\cos(\arctan(x))\sin(x)$' lw 3 lc 3
\stopGNUPLOTscript
@@ -201,18 +233,31 @@ plot cos(atan(x))*sin(x) t '$\cos(\arctan(x))\sin(x)$' lw 3 lc 3
\stoptext
\stopTEX
+\page
+\bgroup
+\setuptype[option=TEX]
+With \type+\setupGNUPLOT[terminal=<termname>]+ you can select any supported gnuplot terminal before drawing a plot.
+
+With \type+\setupGNUPLOT[<termname>][<option>=<value>]+ you can set some terminal-specific options.
+
+Anything inside \type+\startGNUPLOTinclusions ... \stopGNUPLOTinclusion+ will be applied to every plot.
+
+The command \type+\startGNUPLOTscript[<name>]+ creates new plots that can be included with \type+\useGNUPLOTgraphic[<name>][<number>][<option>=<value>]+. Both the number of plot and additional parameters (like \type+width=.7\textwidth+ for example) are optional.
+\egroup
+
\bgroup
\setupGNUPLOTterminal
[context]
- [width=5in,height=2.5in,textscale=0.8]
+ [width=5in,height=2.5in,fontscale=0.9]
\setupGNUPLOTterminal
[tikz]
- [width=5in,height=2.5in]
+ [width=5in,height=2.5in,fontscale=0.9]
\startGNUPLOTscript[myfunction]
set samples 400
set key left Left reverse
+set zeroaxis
set format y "%.1f"
-plot sin(x) t '$\sin(x)$' lw 3
+plot [-4:2][0:2] 1 t '' lt 0, exp(x) t '$e^x$' lt 1 lw 3
plot cos(atan(x))*sin(x) t '$\cos(\arctan(x))\sin(x)$' lw 3 lc 3
\stopGNUPLOTscript
\placefigure[force]{Framed second plot using {\tt context} terminal}
@@ -225,46 +270,82 @@ plot cos(atan(x))*sin(x) t '$\cos(\arctan(x))\sin(x)$' lw 3 lc 3
\subsection{Including pre-generated plots}
-TODO
+\bgroup
+\setuptype[option=TEX]
+Instead of defining \type+\startGNUPLOTscript+ and letting \CONTEXT\ call \GNUPLOT\ on the fly, you can also run \GNUPLOT\ in advance and only include the resulting {\tt filename.tex}. This is something that you might want to do when running calculation-intensive \GNUPLOT\ scripts which take a long time.
+
+You can follow the same steps as in section \in[calling gnuplot directly], except that you should not specify the {\tt standalone} flag (and you should not compile the plot, only the main document).
-This is the syntax:
+The resulting file can be included\footnote{{\tt\textbackslash include filename.tex} won't work} with
\startTEX
-\processGNUPLOTfile[name][filename.tex]
-\useGNUPLOTgraphic[name]
+\processGNUPLOTfile[<name>][<filename.tex>]
\stopTEX
+and you can get the graphic with the same command as usual:
+\startTEX
+\useGNUPLOTgraphic[<name>]
+\stopTEX
+plus any optional parameters.
+
+\egroup
+\page
\section{Terminal options}
\subsection{\tt\bf context}
-TODO
-
-\starttyping
-set term context {default}
- {defaultsize | size <scale> |
- size <xsize> {in|cm}, <ysize> {in|cm}}
- {input | standalone}
- {noheader | header "<header>"}
- {color | colour | monochrome}
- {mitered | rounded | beveled}
- {butt | round | squared}
- {dashed | solid}
- {dashlength | dl <DL>}
- {linewidth | lw <LW>}
- {textscale <textscale>}
- {pointswithmetapost | pointswithmp | pointswithtex}
- {defaultfont | font {<fontsize>} |
- font "<fontname>{,<fontsize>}" {fontsize}}
-\stoptyping
-
+\startGP
+set term context { default }
+ { defaultsize | size <scale> |
+ size <xsize> {in|cm}, <ysize> {in|cm} }
+ { [[\bf input]] | standalone }
+ { [[\bf noheader]] | header "<header>" }
+ { [[\bf color]] | colour | monochrome }
+ { [[\bf rounded]] | mitered | beveled }
+ { [[\bf round]] | butt | squared }
+ { [[\bf dashed]] | solid }
+ { dashlength | dl <DL> }
+ { linewidth | lw <LW> }
+ { fontscale <fontscale> }
+ { [[\bf mppoints]] | texpoints }
+ { [[\bf inlineimages]] | externalimages }
+ { [[\bf defaultfont]] | font {<fontsize>} |
+ font "<fontname>{,<fontsize>}" {fontsize} }
+\stopGP
+
+\page
\subsection{\tt\bf tikz}
-TODO
-
-\section{High-level configuration from \ConTeXt}
-
-TODO
-
+\def\my#1{\color[blue]{\bf#1}}
+\startGP
+set term tikz { latex | tex | [[\my{context}]] }
+ { [[\my{size}]] <x>{unit},<y>{unit} }
+ { scale <x>,<y> }
+ { nofulldoc | nostandalone | fulldoc | standalone }
+ { [[\bf color]] | monochrome }
+ { [[\bf dashed]] | solid }
+ { nooriginreset | originreset }
+ { nogparrows | gparrows }
+ { nogppoints | gppoints }
+ { picenvironment | nopicenvironment }
+ { noclip | clip }
+ { notightboundingbox | tightboundingbox }
+ { background "<colorpec>" }
+ { plotsize <x>{unit},<y>{unit} }
+ { [[\my{charsize}]] <x>{unit},<y>{unit} }
+ { font "<fontdesc>" }
+ { fontscale <fontscale> }
+ { {preamble | header} "<preamble_string>" }
+ { tikzplot <ltn>,... }
+ { notikzarrows | tikzarrows }
+ { rgbimages | cmykimages }
+ { noexternalimages|externalimages }
+ { bitmap | nobitmap }
+ { providevars <var name>,... }
+ { [[\my{createstyle}]] }
+ { help }
+\stopGP
+
+\page
\section{Comparison of supported terminals}
The gnuplot module for \ConTeXt\ supports the following terminals:
@@ -280,5 +361,62 @@ The gnuplot module for \ConTeXt\ supports the following terminals:
\stopitemize
\stopitemize
+\startGNUPLOTscript[bitmap]
+# this should not be done
+set term pngcairo truecolor size 1000,1000 linewidth 4
+set palette defined ( 0 "#FFF8BF", 1 "#FFC20B", 2 "red", 3 "#501080", 4 "blue", 5 "#88BBEE")
+
+unset border
+set dummy u,v
+set format cb "%.1f"
+unset key
+set parametric
+set view 60, 30, 1.5, 0.9
+set isosamples 200, 200
+set size ratio -1
+set noxtics
+set noytics
+set noztics
+set urange [ -3.14159 : 3.14159 ] noreverse nowriteback
+set vrange [ -3.14159 : 3.14159 ] noreverse nowriteback
+set pm3d depthorder
+unset colorbox
+f(x,y) = sin(-sqrt((x+5)**2+(y-7)**2)*0.5)
+GPFUN_f = "f(x,y) = sin(-sqrt((x+5)**2+(y-7)**2)*0.5)"
+splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) with pm3d, \
+ 1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) with pm3d
+\stopGNUPLOTscript
+
+\setupGNUPLOT[terminal=pngcairo]
+\placefigure{An example of graphic generated with png terminal}{\hbox to \textwidth{\hss\framed{\useGNUPLOTgraphic[bitmap][scale=700]}\hss}}
+
+\page
+\section{Known bugs}
+
+\subsection{Buggy implementation in \ConTeXt\ module}
+
+\startitemize[packed]
+\item Point sizes of \TeX\ symbols for points have to be fine-tuned for proper size.
+\item Points don't scale properly. Line widths should not be scaled when bigger points are requested. Also, when thicker lines are used, points don't inherit that thickness. The reason is buggy implementation that stores all points as pictures in the beginning instead of drawing each point separately when that is requested.
+\item Patterns fills are a semi-hack. They are composed out of little tiles and drawn next to each other. This doesn't look properly when rendered. This also means that line widths don't scale properly.
+\item MetaPost could be highly optimized. In particular the transparency should be handled more efficiently.
+\stopitemize
+
+\subsection{Support in \ConTeXt\ core}
+
+\startitemize[packed]
+\item Switching to a different font for font labels doesn't work in {\sc mkiv} and uses an ugly hack in {\sc mkii}.
+\item External images don't work in {\sc mkiv} at the moment. Use {\tt images=inline} ({\tt inlineimages} in gnuplot). This is because the only acceptable {\sc mkii} syntax is {\tt externalfigure "name.png"}, while {\sc mkiv} requires {\tt draw externalfigure "name.png"}. This has to be fixed in \ConTeXt\ core.
+\item Transparent inline images are not yet supported.
+\item There might be still some memory leaks in MetaPost. The major ones were fixed.
+\stopitemize
+
+\subsection{Limitations}
+
+\startitemize[packed]
+\item Plots with many graphical elements don't work in {\sc mkii} since \TeX\ runs out of memory.
+\item Inline bitmap images are not (and might never be) supported in {\sc mkii}. If you want to use external bitmap images, use the option {\tt externalimages} in {\tt context} terminal ({\tt images=external} in \ConTeXt).
+\stopitemize
+
\stoptext