Annotation of OpenXM/src/asir-contrib/packages/doc/gnuplot.oxweave, Revision 1.5
1.5 ! takayama 1: /* $OpenXM: OpenXM/src/asir-contrib/packages/doc/gnuplot.oxweave,v 1.4 2004/03/05 15:56:40 ohara Exp $ */
1.1 takayama 2:
3:
1.4 ohara 4: /*&C
1.1 takayama 5: @c DO NOT EDIT THIS FILE oxgnuplot.texi
6: */
1.3 ohara 7: /*&ja
1.2 takayama 8: @node GNUPLOT Functions,,, Top
1.1 takayama 9: @chapter GNUPLOT $BH!?t(B
10:
11: $B$3$N@a$G$O(B GNUPLOT $B$N(B ox $B%5!<%P(B @code{ox_sm1_gnuplot}
12: $B$H$N%$%s%?%U%'!<%94X?t$r2r@b$9$k(B.
13: $B$3$l$i$N4X?t$O%U%!%$%k(B @file{gnuplot} $B$GDj5A$5$l$F$$$k(B.
14: @code{gnuplot} $B$O(B
15: @file{$(OpenXM_HOME)/lib/asir-contrib/} $B$K$"$k(B.
16: */
1.3 ohara 17: /*&en
1.1 takayama 18: @node GNUPLOT Functions,,, Top
19: @chapter GNUPLOT Functions
20:
21: This chapter describes interface functions for
22: GNUPLOT ox server @code{ox_sm1_gnuplot}.
23: These interface functions are defined in the file @code{gnuplot}.
24: The file @file{gnuplot} is at @*
25: @file{$(OpenXM_HOME)/lib/asir-contrib}.
26: */
1.4 ohara 27: /*&C
1.2 takayama 28:
29: @menu
30: * gnuplot.start::
31: * gnuplot::
32: * gnuplot.plot_dots::
33: * gnuplot.heat::
34: * gnuplot.plot_function::
35: * gnuplot.output::
1.5 ! takayama 36: * gnuplot.setenv::
! 37: * gnuplot.stop::
1.2 takayama 38: @end menu
39:
40: */
1.4 ohara 41: /*&C
1.1 takayama 42: @example
43: @include opening.texi
44: [255] gnuplot.start();
45: 0
46: [257] gnuplot.gnuplot("plot sin(x**2);");
47: 0
48: @end example
49: */
1.3 ohara 50: /*&en
1.1 takayama 51: The function
52: @code{gnuplot.heat}(@var{dt},@var{step}) demonstrates our gnuplot interface.
53: It numerically solves the heat equation
54: @tex
55: $$ {{\partial u}\over{\partial t}} = {{\partial^2 u}\over{\partial x^2}},
56: \quad u(t,0) = u(t,1) =1
57: $$
58: with the initial condition
59: $$ u(0,x) = x, \ (0 \leq x \leq 0.5), \quad
60: u(1,x) = 1-x, \ (0.5 \leq x \leq 1)
61: $$
62: by the explicit scheme for $0 \leq t \leq \hbox{\it dt}*\hbox{\it step}$.
63: @end tex
64: The segment [0,1] is devided into @code{Heat_N} segments.
65: The static variable @code{Heat_N} can be set by the function
66: @code{gnuplot.heat_set_N}.
67: If the celebrated Courant-Friedrichs-Levi number
68: @var{dt}*@code{Heat_N}*@code{Heat_N} is less than or equal to 0.5,
69: then the explicit scheme is numerically stable.
70: One can observe the instability by changing CFL number.
71: @example
72: gnuplot.heat_set_N(20); gnuplot.heat(0.001,30); (CFL number is 0.4)
73: gnuplot.heat_set_N(20); gnuplot.heat(0.003,30); (CFL > 0.5 unstable)
74: @end example
75: */
1.3 ohara 76: /*&ja
1.1 takayama 77: $B4X?t(B
78: @code{gnuplot.heat}(@var{dt},@var{step}) $B$O$o$l$o$l$N(B GNUPLOT $B%$%s%?%U%'!<%94X?t$N%G%b(B
79: $B$G$"$k(B.
80: $B$3$N4X?t$OG.EAF3J}Dx<0(B
81: @tex
82: $$ {{\partial u}\over{\partial t}} = {{\partial^2 u}\over{\partial x^2}},
83: \quad u(t,0) = u(t,1) =1
84: $$
85: $B$r=i4|>r7o(B
86: $$ u(0,x) = x, \ (0 \leq x \leq 0.5), \quad
87: u(1,x) = 1-x, \ (0.5 \leq x \leq 1)
88: $$
89: $B$GM[E*:9J,K!$rMQ$$$F(B
90: $B;~4V$,(B $0 \leq t \leq \hbox{\it dt}*\hbox{\it step}$ $B$NHO0O$G2r$/(B.
91: @end tex
92: $B6h4V(B [0,1] $B$O(B @code{Heat_N} $B8D$KJ,3d$5$l$k(B.
93: static $BJQ?t(B @code{Heat_N} $B$O(B
94: $B4X?t(B @code{gnuplot.set_heat_N} $B$G@_Dj$9$k(B.
95: $BM-L>$J(B Courant-Friedrichs-Levi $B?t(B
96: @var{dt}*@code{Heat_N}*@code{Heat_N} $B$,(B 0.5 $B0J2<$G$"$l$P(B,
97: $BM[E*:9J,%9%-!<%`$O0BDj$G$"$k(B.
98: CFL $B$rJQ$($k$3$H$K$h$j(B, $BIT0BDj@-$,@8$8$k$N$r4Q;!$G$-$k(B.
99: @example
100: gnuplot.set_heat_N(20); gnuplot.heat(0.001,30); (CFL number is 0.4)
101: gnuplot.set_heat_N(20); gnuplot.heat(0.003,30); (CFL > 0.5 unstable)
102: @end example
103: */
1.4 ohara 104: /*&C
1.1 takayama 105: Author of @code{GNUPLOT}: Thomas Williams, Colin Kelley
106: */
107:
1.3 ohara 108: /*&ja
1.1 takayama 109: @section $BH!?t0lMw(B
110: */
1.3 ohara 111: /*&en
1.1 takayama 112: @section Functions
113: */
1.3 ohara 114: /*&ja
1.2 takayama 115: @node gnuplot.start,,, GNUPLOT Functions
1.1 takayama 116: @subsection @code{gnuplot.start}
117: @findex gnuplot.start
118: @table @t
119: @item gnuplot.start()
120: :: Localhost $B$G(B @code{ox_sm1_gnuplot} $B$r5/F0$9$k(B.
121: @end table
122:
123: @table @var
124: @item return
125: $B@0?t(B
126: @end table
127:
128: @itemize @bullet
129: @item Localhost $B$G(B @code{ox_sm1_gnuplot} $B$r5/F0$9$k(B.
130: $B5/F0$5$l$?(B @code{ox_sm1_gnuplot} $B$N<1JLHV9f$rLa$9(B.
131: @item @code{Xm_noX =1} $B$H$7$F$*$/$H(B, @code{ox_sm1_gnuplot} $BMQ$N(B debug window $B$,3+$+$J$$(B.
132: @item $B<1JLHV9f$O(B, @code{Gnuplot_proc} $B$K3JG<$5$l$k(B.
133: @end itemize
134: */
1.3 ohara 135: /*&en
1.1 takayama 136: @node gnuplot.start,,, GNUPLOT Functions
137: @subsection @code{gnuplot.start}
138: @findex gnuplot.start
139: @table @t
140: @item gnuplot.start()
141: :: Start @code{ox_sm1_gnuplot} on the localhost.
142: @end table
143:
144: @table @var
145: @item return
146: Integer
147: @end table
148:
149: @itemize @bullet
150: @item Start @code{ox_sm1_gnuplot} on the localhost.
151: It returns the descriptor of @code{ox_sm1_gnuplot}.
152: @item Set @code{Xm_noX = 1} to start @code{ox_sm1_gnuplot} without a debug window.
153: @item The descriptor is stored in @code{Gnuplot_proc}.
154: @end itemize
155: */
1.4 ohara 156: /*&C
1.1 takayama 157: @example
158: P = gnuplot.start();
159: @end example
160: */
1.3 ohara 161: /*&ja
1.1 takayama 162: @table @t
163: @item $B;2>H(B
164: @code{ox_launch}, @code{gnuplot}
165: @end table
166: */
1.3 ohara 167: /*&en
1.1 takayama 168: @table @t
169: @item Reference
170: @code{ox_launch}, @code{gnuplot}
171: @end table
172: */
173:
174:
1.3 ohara 175: /*&en
1.1 takayama 176: @node gnuplot,,, GNUPLOT Functions
177: @subsection @code{gnuplot}
178: @findex gnuplot
179: @table @t
180: @item gnuplot.gnuplot(@var{s}|proc=@var{p})
181: :: Ask GNUPLOT to execute the command string @var{s}.
182: @end table
183:
184: @table @var
185: @item return
186: Void
187: @item p
188: Number
189: @item s
190: String
191: @end table
192:
193: @itemize @bullet
194: @item
195: The server executes the gnuplot command @var{s}.
196: When an error occurs,
197: the gnuplot itself terminates and ox_sm1_gnuplot server automatically
198: restarts gnuplot.
199: @item
200: gnuplot does not accept a long polynomial.
201: @item
202: gnuplot does not accept @code{^}. Use @code{**} instead.
203: @end itemize
204: */
1.3 ohara 205: /*&ja
1.2 takayama 206: @node gnuplot,,, GNUPLOT Functions
1.1 takayama 207: @subsection @code{gnuplot}
208: @findex gnuplot
209: @table @t
210: @item gnuplot.gnuplot(@var{s}|proc=@var{p})
211: :: GNUPLOT $B$K%3%^%s%I(B @var{s} $B$r<B9T$7$F$b$i$&(B.
212: @end table
213:
214: @table @var
215: @item return
216: $B$J$7(B
217: @item p
218: $B?t(B
219: @item s
220: $BJ8;zNs(B
221: @end table
222:
223: @itemize @bullet
224: @item
225: $B%5!<%P$O(B GNUPLOT $B$N%3%^%s%I(B @var{s} $B$r<B9T$9$k(B.
226: $B%(%i!<$,$*$-$?>l9g(B GNUPLOT $BK\BN$O=*N;$7$F$7$^$&$,(B,
227: @code{ox_sm1_gnuplot} $B$O<+F0E*$K(B GNUPLOT $BK\BN$r%j%9%?!<%H$9$k(B.
228: @item
229: GNUPLOT $B$OD9$$B?9`<0$r$?$@$7$/$&$1$D$1$J$$(B.
230: @item
231: GNUPLOT $B$O(B @code{^} $B$r$&$1$D$1$J$$(B. $B$+$o$j$K(B, @code{**} $B$r;H$&(B.
232: @end itemize
233: */
1.4 ohara 234: /*&C
1.1 takayama 235: @example
236: [232] P = gnuplot.start();
237: 0
238: *Plot 3 dimensional graph.
239: [233] gnuplot.gnuplot("splot x**2-y**2;"|proc=P);
240: 0
241: *Plot 2 dimensional graph.
242: [234] gnuplot.gnuplot("plot [-pi:pi] [-2:2] cos(x);");
243: 0
244: *Output a graph as a postscript figure.
245: [235] gnuplot.output(|file="hoge.eps");
246: 0
247: [236] gnuplot.gnuplot("plot sin(x)*cos(x);");
248: 0
249: [237] gnuplot.gnuplot(|file="x11");
250: 0
251:
252: *Plot 3 dimensional graph hiding unvisible lines.
253: [236] gnuplot.gnuplot("set hidden3d");
254: 0
255: [237] gnuplot.gnuplot("splot (x**2+y**2)*sin(x**2+y**2)");
256: 0
257: [238] gnuplot.gnuplot("set isosamples 50");
258: 0
259: [239] gnuplot.gnuplot("splot (x**2+y**2)*sin(x**2+y**2)");
260:
261: @end example
262: */
1.3 ohara 263: /*&en
1.1 takayama 264: @table @t
265: @item Reference
266: @code{ox_launch}, @code{gnuplot.start}, @code{rtostr},
267: @code{gnuplot.plot_dots}
268: @item Reference Book
269: Yabuki Michiro, Otake Tuyoshi; Tukai konasu GNUPLOT, Techno Press,
270: in Japansese, ISBN4-924998-11-7
271: @end table
272: */
1.3 ohara 273: /*&ja
1.1 takayama 274: @table @t
275: @item $B;2>H(B
276: @code{ox_launch}, @code{gnuplot.start}, @code{rtostr},
277: @code{gnuplot.plot_dots}
278: @item $B;29M=q(B
279: $BLp?aF;O:(B, $BBgC]$D$h$7(B; $B;H$$$3$J$9(B GNUPLOT, $B%F%/%N%W%l%9(B,
280: ISBN4-924998-11-7
281: @end table
282: */
283:
284:
285:
1.3 ohara 286: /*&en
1.1 takayama 287: @node gnuplot.plot_dots,,, GNUPLOT Functions
288: @subsection @code{gnuplot.plot_dots}
289: @findex gnuplot.plot_dots
290: @table @t
291: @item gnuplot.plot_dots(@var{d},@var{s}|proc=@var{p})
292: :: Plot the dots @var{d} with the style @var{s}.
293: @end table
294:
295: @table @var
296: @item return
297: Void
298: @item p
299: Number
300: @item d
301: List
302: @item s
303: String or 0
304: @end table
305:
306: @itemize @bullet
307: @item
308: Plot the dots @var{d} with the style @var{s}.
309: @var{s} is a string of the form
310: "style color point".
311: Here,
312: style can be lines, points, linespoints, impulses, dots, steps,
313: errorbars, boxes, boxerrorbars.
314: color can be 1 (red), 2 (green), 3 (blue), 4, ... , 8.
315: point can be a number from 1 to 8.
316: The color and point field can be omitted.
317: @item
318: When @var{d} == @code{[ ]}, the screen will be cleared.
319: @end itemize
320: */
1.3 ohara 321: /*&ja
1.2 takayama 322: @node gnuplot.plot_dots,,, GNUPLOT Functions
1.1 takayama 323: @subsection @code{gnuplot.plot_dots}
324: @findex gnuplot.plot_dots
325: @table @t
326: @item gnuplot.plot_dots(@var{d},@var{s}|proc=@var{p})
327: :: $BE@$N=89g(B @var{d} $B$r%9%?%$%k(B @var{s} $B$G%W%m%C%H$9$k(B.
328: @end table
329:
330: @table @var
331: @item return
332: $B$J$7(B
333: @item p
334: $B?t(B
335: @item d
336: $B%j%9%H(B
337: @item s
338: $BJ8;zNs(B $B$^$?$O(B 0
339: @end table
340:
341: @itemize @bullet
342: @item
343: $BE@=89g(B @var{d} $B$r%9%?%$%k(B @var{s} $B$G%W%m%C%H$9$k(B.
344: @var{s} $B$O<!$N$h$&$JJ8;zNs(B:
345: "style color point".
346: $B$3$3$G(B
347: style $B$K$O(B lines, points, linespoints, impulses, dots, steps,
348: errorbars, boxes, boxerrorbars
349: $B$rA*$Y$k(B.
350: color $B$K$O(B 1 (red), 2 (green), 3 (blue), 4, ... , 8
351: $B$rA*$Y$k(B.
352: point $B$O(B 1 $B$+$i(B 8 $B$N?t$rF~$l$k(B.
353: color, point $B$O>JN,$7$F$h$$(B.
354: @item
355: @var{d} == @code{[ ]} $B$N$H$-$O%9%/%j!<%s$,$^$:>C5n$5$l$k(B.
356: @end itemize
357: */
1.4 ohara 358: /*&C
1.1 takayama 359: @example
360: [239] P = gnuplot.start();
361: 0
362: [240] gnuplot.plot_dots([ ],0);
363: 0
364: [241] for (I=0; I<10; I++) gnuplot.plot_dots([[I,I^2]]," lines ");
365: [242] A = [ ];
366: []
367: [243] for (I=0; I<10; I++) A = append(A,[ [I,I^2]]);
368: [244] A;
369: [[0,0],[1,1],[2,4],[3,9],[4,16],[5,25],[6,36],[7,49],[8,64],[9,81]]
370: [245] gnuplot.plot_dots(A," lines ");
371: 0
372: @end example
373: */
1.3 ohara 374: /*&ja
1.1 takayama 375: @table @t
376: @item $B;2>H(B
377: @code{gnuplot.start}, @code{plot "fileName" with options}(GNUPLOT command),
378: @code{gnuplot.clean}, @code{gnuplot}
379: @end table
380: */
1.3 ohara 381: /*&en
1.1 takayama 382: @table @t
383: @item Reference
384: @code{gnuplot.start}, @code{plot "fileName" with options}(GNUPLOT command),
385: @code{gnuplot.clean}, @code{gnuplot}
386: @end table
387: */
388:
389:
390:
391: /** heat equation **/
392:
1.3 ohara 393: /*&en
1.1 takayama 394: @node gnuplot.heat,,, GNUPLOT Functions
395: @subsection @code{gnuplot.heat}
396: @findex gnuplot.heat
397: @table @t
398: @item gnuplot.heat(@var{dt},@var{step})
399: :: It solves the heat equation numerical and plots solutions
400: @end table
401:
402: @table @var
403: @item return
404: Void
405: @item dt
406: floating point number
407: @item step
408: Integer
409: @end table
410:
411: @itemize @bullet
412: @item It solves the heat equation
413: du/dt = d^2 u/dx^2, u(t,0) = u(t,1) = 0
414: with the initial condition
415: u(0,x) = x (0 <= x <= 0.5), u(0,x) = 1-x ( 0.5 <= x <= 1.0).
416: @item Heat_N is the number of the meshes in the space.
417: @item This function will be called @code{pde_heat_demo} in a future.
418: @end itemize
419:
420: @noindent
421: Algorithm: NOT Written. (Difference scheme. Courant-Levi-Friedrichs conditions.)
422: */
1.3 ohara 423: /*&ja
1.2 takayama 424: @node gnuplot.heat,,, GNUPLOT Functions
1.1 takayama 425: @subsection @code{gnuplot.heat}
426: @findex gnuplot.heat
427: @table @t
428: @item gnuplot.heat(@var{dt},@var{step})
429: :: $BG.EAF3J}Dx<0$r?tCME*$K2r$/(B.
430: @end table
431:
432: @table @var
433: @item return
434: $B$J$7(B
435: @item dt
436: $BIbF0>.?tE@?t(B
437: @item step
438: $B@0?t(B
439: @end table
440:
441: @itemize @bullet
442: @item $BG.EAF3J}Dx<0(B
443: du/dt = d^2 u/dx^2, u(t,0) = u(t,1) = 0
444: $B$r=i4|>r7o(B
445: u(0,x) = x (0 <= x <= 0.5), u(0,x) = 1-x ( 0.5 <= x <= 1.0)
446: $B$G2r$/(B.
447: @item Heat_N $B$O6u4VJ}8~$G$N%a%C%7%e$N?t(B.
448: @item $B$3$N4X?t$O>-Mh(B @code{pde_heat_demo} $B$H8F$P$l$kM=Dj(B.
449: @end itemize
450: */
1.4 ohara 451: /*&C
1.1 takayama 452: @example
453: [232] Heat_N = 20$
454: [233] gnuplot.heat(0.001,30)$
455: @end example
456:
457: */
458:
459:
460:
1.3 ohara 461: /*&en
1.1 takayama 462: @node gnuplot.output,,, GNUPLOT Functions
463: @subsection @code{gnuplot.output}
464: @findex gnuplot.output
465: @table @t
466: @item gnuplot.output(|@var{file=s})
467: :: ask @code{GNUPLOT} to output graphic to the file @var{s} in the Postscript format.
468: @end table
469:
470: @table @var
471: @item return
472: Void
473: @item s
474: String
475: @end table
476:
477: @itemize @bullet
478: @item ask @code{GNUPLOT} to output graphic to the file @var{s} in the Postscript format.
479: @item When @code{s} is "x11" or this function is called without the argument,
480: the output will be written to X11 display.
481: @end itemize
482: */
1.3 ohara 483: /*&ja
1.2 takayama 484: @node gnuplot.output,,, GNUPLOT Functions
1.1 takayama 485: @subsection @code{gnuplot.output}
486: @findex gnuplot.output
487: @table @t
488: @item gnuplot.output(|@var{file=s})
489: :: @code{GNUPLOT} $B$K%U%!%$%k(B @var{s} $B$X%]%9%H%9%/%j%W%H$G=PNO$9$k$h$&$KMj$`(B.
490: @end table
491:
492: @table @var
493: @item return
494: Void
495: @item s
496: String
497: @end table
498:
499: @itemize @bullet
500: @item @code{GNUPLOT} $B$K%U%!%$%k(B @var{s} $B$X%]%9%H%9%/%j%W%H$G=PNO$9$k$h$&$KMj$`(B.
501: @item @code{s} $B$,(B "x11" $B$^$?$O(B, $B$3$N4X?t$r0z?tL5$7$G$h$V$H(B,
502: $B0J8e(B, X11 $B$N(B display $B$K(B graphics $B$,=PNO$5$l$k(B.
503: @end itemize
504: */
505:
1.4 ohara 506: /*&C
1.1 takayama 507: @example
508: [273] gnuplot.output(|file="hoge.eps");
509: Graphic output of GNUPLOT will be written to hoge.eps as a Poscript file.
510: 0
511: [274] gnuplot.gnuplot("plot tan(x)+sin(x);");
512: 0
513: [275] gnuplot.output();
514: Usage of gnuplot.output: gnuplot.output(|file="string")
515: gnuplot.output(|file="x11")
516: Output device is set to X11
517: @end example
518: */
519:
1.3 ohara 520: /*&en
1.1 takayama 521: @table @t
522: @item Reference
523: @code{gnuplot}
524: @end table
525: */
1.3 ohara 526: /*&ja
1.1 takayama 527: @table @t
528: @item $B;2>H(B
529: @code{gnuplot}
530: @end table
531: */
532:
533:
1.3 ohara 534: /*&en
1.1 takayama 535: @node gnuplot.plot_function,,, GNUPLOT Functions
536: @subsection @code{gnuplot.plot_function}
537: @findex gnuplot.plot_function
538: @table @t
539: @item gnuplot.gnuplot(@var{f}|proc=@var{p})
540: :: ask the @code{gnuplot} server to draw a graph of @var{f}
541: @end table
542:
543: @table @var
544: @item return
545: Void
546: @item p
547: Number
548: @item f
549: Polynomial or a list of polynomials
550: @end table
551:
552: @itemize @bullet
553: @item ask the @code{gnuplot} server to draw a graph of @var{f}
554: @end itemize
555: */
556:
1.3 ohara 557: /*&ja
1.2 takayama 558: @node gnuplot.plot_function,,, GNUPLOT Functions
1.1 takayama 559: @subsection @code{gnuplot.plot_function}
560: @findex gnuplot.plot_function
561: @table @t
1.2 takayama 562: @item gnuplot.plot_function(@var{f}|proc=@var{p})
1.1 takayama 563: :: @code{gnuplot} $B%5!<%P$K(B @var{f} $B$N%0%i%U$r=q$/$h$&$KMj$`(B.
564: @end table
565:
566: @table @var
567: @item $BLa$jCM(B
568: $B$J$7(B
569: @item p
570: $B?t(B
571: @item f
572: $BB?9`<0$^$?$OB?9`<0$N%j%9%H(B
573: @end table
574:
575: @itemize @bullet
576: @item @code{gnuplot} $B%5!<%P$K(B @var{f} $B$N%0%i%U$r=q$/$h$&$KMj$`(B.
577: @end itemize
578: */
1.4 ohara 579: /*&C
1.1 takayama 580:
581: @example
582: [290] gnuplot.plot_function((x+sin(x))^2);
583: 0
584: [291] gnuplot.plot_function([x,x^2,x^3]);
585: 0
586: @end example
587:
588: */
589:
1.3 ohara 590: /*&en
1.1 takayama 591: @table @t
592: @item Reference
593: @code{gnuplot.to_gnuplot_format}
594: @end table
595: */
1.3 ohara 596: /*&ja
1.1 takayama 597: @table @t
598: @item $B;2>H(B
599: @code{gnuplot.to_gnuplot_format}
600: @end table
601: */
602:
1.5 ! takayama 603: /*&en
! 604:
! 605: @node gnuplot.stop,,, GNUPLOT Functions
! 606: @subsection @code{gnuplot.stop}
! 607: @findex gnuplot.stop
! 608: @table @t
! 609: @item gnuplot.stop()
! 610: :: Stop the gnuplot and remove the temporary fifo file.
! 611: @end table
! 612:
! 613: @table @var
! 614: @item return
! 615: Void
! 616: @item s
! 617: String
! 618: @end table
! 619:
! 620: @itemize @bullet
! 621: @item Stop the @code{GNUPLOT} and remove the temporary fifo file generated
! 622: by the mkfifo system call under the temporary directory.
! 623: @end itemize
! 624: */
! 625: /*&ja
! 626:
! 627: @node gnuplot.stop,,, GNUPLOT Functions
! 628: @subsection @code{gnuplot.stop}
! 629: @findex gnuplot.stop
! 630: @table @t
! 631: @item gnuplot.stop()
! 632: :: @code{GNUPLOT} $B$rDd;_$7(B, $BDL?.MQ$N(B fifo $B%U%!%$%k$r>C$9(B.
! 633: @end table
! 634:
! 635: @table @var
! 636: @item return
! 637: Void
! 638: @item s
! 639: String
! 640: @end table
! 641:
! 642: @itemize @bullet
! 643: @item @code{GNUPLOT} $B$rDd;_$7(B, $B0l;~%G%#%l%/%H%j$N2<$K:n@.$5$l$?DL?.MQ$N(B fifo $B%U%!%$%k$r>C$9(B.
! 644: @item $BDL?.MQ$N(B fifo $B%U%!%$%kL>$O(B gnuplot $B$G;O$^$k(B.
! 645: @end itemize
! 646: */
! 647:
! 648: /*&C
! 649: @example
! 650: [273] gnuplot.stop()
! 651: @end example
! 652: */
! 653:
! 654: /*&en
! 655: @table @t
! 656: @item Reference
! 657: @code{gnuplot.start}
! 658: @end table
! 659: */
! 660: /*&ja
! 661: @table @t
! 662: @item $B;2>H(B
! 663: @code{gnuplot.start}
! 664: @end table
! 665: */
! 666:
! 667: /*&en
! 668: @node gnuplot.setenv,,, GNUPLOT Functions
! 669: @subsection @code{gnuplot.setenv}
! 670: @findex gnuplot.setenv
! 671: @table @t
! 672: @item gnuplot.setenv(@var{key},@var{value})
! 673: ::
! 674: @end table
! 675:
! 676: @table @var
! 677: @item return
! 678: Void
! 679: @item key
! 680: String
! 681: @item value
! 682: Object
! 683: @end table
! 684:
! 685: @itemize @bullet
! 686: @item The @var{key} takes the value either in
! 687: "gnuplot.callingMethod" or "plot.gnuplotexec".
! 688: @end itemize
! 689: */
! 690: /*&ja
! 691: @node gnuplot.setenv,,, GNUPLOT Functions
! 692: @subsection @code{gnuplot.setenv}
! 693: @findex gnuplot.setenv
! 694: @table @t
! 695: @item gnuplot.setenv(@var{key},@var{value})
! 696: ::
! 697: @end table
! 698:
! 699: @table @var
! 700: @item return
! 701: Void
! 702: @item key
! 703: String
! 704: @item value
! 705: Object
! 706: @end table
! 707:
! 708: @itemize @bullet
! 709: @item @code{key} $B$O(B "gnuplot.callingMethod" $B$^$?$O(B "plot.gnuplotexec".
! 710: @end itemize
! 711: */
! 712:
! 713: /*&C
! 714: @example
! 715: Use the old method to communicate with gnuplot (version 3).
! 716: This method does not use mkfifo, but we need a patched version of gnuplot.
! 717: [273] gnuplot.setenv("gnuplot.callingMethod",0);
! 718: [274] gnuplot.setenv("plot.gnuplotexec",getenv("OpenXM_HOME")+"/bin/gnuplot4ox");
! 719:
! 720: Calling your own gnuplot binary.
! 721: [274] gnuplot.setenv("plot.gnuplotexec","/cygdrive/c/program files/gnuplot/pgnuplot.exe");
! 722: @end example
! 723: */
! 724:
! 725: /*&en
! 726: @table @t
! 727: @item Reference
! 728: @code{gnuplot.start}
! 729: @end table
! 730: */
! 731: /*&ja
! 732: @table @t
! 733: @item $B;2>H(B
! 734: @code{gnuplot.start}
! 735: @end table
! 736: */
1.1 takayama 737:
738: end$
739:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>