gnuplot 5.1




An Interactive Plotting Program




Thomas Williams & Colin Kelley




Version 5.1 organized by: Ethan A Merritt and many others




Major contributors (alphabetic order):

Christoph Bersch, Hans-Bernhard Bröker,
John Campbell, Robert Cunningham,
David Denholm, Gershon Elber,
Roger Fearick, Carsten Grammes,
Lucas Hart, Lars Hecking, Péter Juhász,
Thomas Koenig, David Kotz,
Ed Kubaitis, Russell Lang, Timothée Lecomte,
Alexander Lehmann, Jérôme Lodewyck,
Alexander Mai, Bastian Märkisch,
Ethan A Merritt, Petr Mikulík,
Daniel Sebald, Carsten Steger, Shigeharu Takeno,
Tom Tkacik, Jos Van der Woude,
James R. Van Zandt, Alex Woo, Johannes Zellner
Copyright © 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley
Copyright © 2004 - 2016 various authors




Mailing list for comments: gnuplot-info@lists.sourceforge.net
Mailing list for bug reports: gnuplot-bugs@lists.sourceforge.net
Web access (preferred): http://sourceforge.net/projects/gnuplot

This manual was originally prepared by Dick Crawford.




Version 5.1 (development snapshot November 2016)


ܼ


1 Gnuplot

1  (Copyright)


   Copyright (C) 1986 - 1993, 1998, 2004, 2007  Thomas Williams, Colin Kelley

Permission to use, copy, and distribute this software and its documentation for any purpose with or without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.

Permission to modify the software is granted, but not the right to distribute the complete modified source code. Modifications are to be distributed as patches to the released version. Permission to distribute binaries produced by compiling modified sources is granted, provided you

 1. distribute the corresponding source modifications from the
  released version in the form of a patch file along with the binaries,
 2. add special version identification to distinguish your version
  in addition to the base release version number,
 3. provide your name and address as the primary contact for the
  support of your modified version, and
 4. retain our contact information in regard to use of the base software.

Permission to distribute the released version of the source code along with corresponding source modifications in the form of a patch file is granted with same provisions 2 through 4 for binary distributions.

This software is provided "as is" without express or implied warranty to the extent permitted by applicable law.


     AUTHORS
             Original Software:
                Thomas Williams,  Colin Kelley.
             Gnuplot 2.0 additions:
                Russell Lang, Dave Kotz, John Campbell.
             Gnuplot 3.0 additions:
                Gershon Elber and many others.
             Gnuplot 4.0 and 5.0 additions:
                See list of contributors at head of this document.

(ʲޤ; ʤΤޤΤǾܤϾ嵭θʸäƤԤǤޤ)


   Copyright (C) 1986 - 1993, 1998, 2004, 2007  Thomas Williams, Colin Kelley

ΥեȥȤ°ʸλѡʣۤεĤϡ嵭(copyright) ɽƤʣʪ˽񤫤Ƥ뤳ȡɽ εʸξλٱʸ˽񤫤Ƥ뤳ȤȤǡ ʸˤݾڤޤ

ΥեȥνǧƤޤޤ ɤۤθǧޤ󡣽ϥ꡼ǤФѥåη ۤʤФʤޤ󡣽줿򥳥ѥ뤷ƺ줿Х ʥۤϡʲξθǧޤ:

 1. ꡼ǤΥνʬ򡢥ѥåηǥХʥȶ
    ۤ뤳
 2. ١Ȥʤ꡼Ǥȶ̤뤿ˡΥСֹ
    ʥСҤղä뤳
 3. νǤΥݡѤˡʤ̾ȥǽʥɥ쥹
    󶡤뤳
 4. ١Ȥʤ륽եȥλѤ˴ؤƤϡ桹Ϣݻ
    ³뤳

꡼ǤΥɤ򡢥ѥåηǤΥνȰۤ ȤϡХʥۤ˴ؤ 2 4 ޤǤξθǵޤ

Υեȥ "뤬ޤ" 󶡤졢ŬѲǽˡΧǵ Ϥݾڤɽ뤤ϰżƤϤޤ


     
             ꥸʥ륽եȥ:
                Thomas Williams,  Colin Kelley.
             Gnuplot 2.0 ɲ:
                Russell Lang, Dave Kotz, John Campbell.
             Gnuplot 3.0 ɲ:
                Gershon Elber Ȥ¾ο͡
             Gnuplot 4.0, 5.0 ɲ:
                ʸƬδͿ (contributors) ΰȡ

2 Ϥ (Introduction)

gnuplot ϡݡ֥ʥޥΥե桼ƥƥǡ Linux, OS/2, MS Windows, OSX, VMS, ¾¿Υץåȥۡư ޤɤˤޤ̵ۤƤޤ ( ʤвʧɬפϤޤ)ϡʳؼԤ ؿǡʤɤŪɽǤ褦줿ΤǤߤޤǤˡ 㤨 Web ץȤʤɡ¿÷Ѥ⥵ݡȤ褦 ĹƤޤϡ㤨 Octave Τ褦˥ɥѡƥΥץꥱ 襨󥸥ȤƤȤƤޤgnuplot ϡ1986 ꥵ ȤȳȯʳȯԤƤޤ

gnuplot ϡ2 ޤ 3 Ρ¿μΥդ򥵥ݡȤ ޤ: աաա٥ȥ衢̡ Ƥ˴Ϣ뤵ޤޤʸƤˤĤ̤ 跿⥵ݡȤƤޤ

gnuplot ¿ΰۤʤϤ򥵥ݡȤƤޤ: ÷꡼Ϸ (ޥۥåȥϤǽ)ڥץå丽ߤΥץ󥿤ؤľ ܽϡޤ¿Υեؤν (eps, emf, fig, jpeg, LaTeX, pdf, png, postscript, ...)gnuplot ϡưפ˿Ϸɲä 褦ĥ뤳ȤǤޤǶɲä줿÷Ϸˤϡ wxWidgets (ʣΥץåȥۡѲǽ), Qt 򸵤ˤΤ svg HTML5 canvas ϷѤСդ Web ڡ ޥѲǽʷϤ뤳ȤǤޤ

gnuplot Υޥɸʸʸ̤ޤʤʸ 񤫤줿ޥɤؿ̾ϡʸǽ񤤤ΤȤƱǤϤ ޤ󡣤Υޥɤ⡢ޤ̵¤ˤƾά뤳Ȥ Ǥޤ1 ˤϥߥ (;) ǶڤäʣΥޥɤ񤯤 Ǥޤʸñ䡢뤤ŰΤɤ餫ǽ񤭻Ϥ ޤξԤˤ̯ʰ㤤ޤ (ܺ٤ϡʲ: syntax (29)):


     set title "My First Plot";  plot 'data';  print "all done!"

ޥɤϡʣԤˤޤ뤳ȤǤޤξϡǽ԰ʳƤιԤι˥Хåå ( \ ) ɬפޤХå åɬƹ *Ǹ* ʸǤʤƤϤʤޤ󡣤η̤ȤƥХ åȡ³ʸ¸ߤʤäΤ褦˰ޤ Ĥޤꡢʸڡ򤹤뤳Ȥ⤢ޤ󤷡Ԥˤäƥ Ȥλ뤳Ȥ⤢ޤ󡣤ǤʣԤˤޤԤƬ ȥȤȡΥޥΤȥȤ뤳Ȥˤʤ (ʲ: comments (11))ʤդޤ⤷ʣԤΥޥɤ ɤǥ顼ȤѡϤξΤˤϻؼ뤳Ȥ ޤ󤷡ޤԤ˻ؼɬפʤǤ礦

ΥɥȤˤơ ({}) ϾάǽʰɽΤȤ (| ) ϡߤ¾ŪʰڤΤȤޤgnuplot Υ ɤ help ˤ̾ϡհ ()ޤϲǽʾˤ boldface () ɽޤѳ (< > ) ϡбΤ֤ ٤Τɽޤ¿ξ硢ץΰˤϡ줬 άȥǥեȤͤѤޤξ硢ɬ ѳ̤̤ǰϤޤƽ񤫤Ƥ櫓ǤϤޤ

ܤˤĤƤΥإפɬפʤȤˤϡhelp ³Ƥι̾ ϤƲޤñ help ? ǤإפιܤΥ˥塼 ޤ

̤Υեץ뤬ʲ Web ڡˤޤ

http://www.gnuplot.info/demo/

ޥɥ饤󤫤鵯ưȤϡʲν񼰤Ȥޤ

     gnuplot {OPTIONS} file1 file2 ...

file1, file2 ϡlocal ޥɤǼΤƱϥե (ץȥե) Ǥ X11 ١ΥƥǤϡʲν񼰤Ȥޤ
     gnuplot {X11OPTIONS} {OPTIONS} file1 file2 ...

ܺ٤ϡX11 ΥɥȡӰʲ: x11 (106.66)

gnuplot Ϳ륪ץϡޥɹԤΤɤ֤Ƥ⹽ޤ󡣥 ϻꤷ˼¹Ԥ졢Ʊͤ -e ץǤդΥޥɤͿ 뤳ȤǤޤ:

     gnuplot   file1.in   -e "reset"   file2.in

̤ʥե̾ "-" ϡɸϤɤޤΤ˻Ȥޤgnuplot ϺǸΥեȽλޤɤ߹ޤե ꤷʤϡgnuplot ɸϤϤޤܺ ϡʲ: batch/interactive (8)gnuplot ѤΥץˤĤƤϡ ʲΤ褦ˤư򸫤뤳ȤǤޤ:

     gnuplot --help

ܺ٤ϰʲ: command line options (8)

÷襦ɥǤκϡ'h' ǤĤȥۥåȥ (hotkeys) ȥޥǽ (mousing) ˴ؤإפ򸫤뤳ȤǤޤ seeking-assistance ΥϡʤإסFAQ õ ݤͿƤǤ礦

3 õФ (Seeking-assistance)

gnuplot Web ڡϰʲˤޤ

http://www.gnuplot.info

ˡե FAQ.pdf ޤϾ Web Ȥ

FAQ (١ʹ; Frequently Asked Questions) ΰ

åƤ

gnuplot 桼ȤƤμɬפʤ顢ʲΥ˥塼롼פѤƤ

         comp.graphics.apps.gnuplot

gnuplot ᡼󥰥ꥹȤؤƤˡ˴ؤƤϡSouceForge ˤ gnuplot γȯ Web

http://sourceforge.net/projects/gnuplot

򻲾ȤƤ

gnuplot ᡼󥰥ꥹȤ˥᡼ˡǽˤΥ᡼󥰥ꥹ ˻äɬפ뤳ȤդƤϡѥ̤򸺤餹 Ȥݻ뤿ɬפǤ

᡼󥰥ꥹȥСؤΥ᡼륢ɥ쥹:

         gnuplot-info@lists.sourceforge.net

Хݡȡβϰʲ trackers upload Ƥ:

         http://sourceforge.net/projects/gnuplot/support

ݡȤˡʤݡȤ褦ȤƤХ 꿷ǤǴ˽ƤʤåƤ

ȯǤ˴ؤ᡼󥰥ꥹ:

         gnuplot-beta@lists.sourceforge.net

ƤȤϡʤѤƤ gnuplot ΥС Ϸڥ졼ƥ󥰥ƥࡢȤäƤξޤ褦ˤ ־ץץȤФʤɤǤ ξ硢ǡեΥץåȤؿΥץåȤɤ

4 С 5 Ǥοǽ (New features in version 5)

4.1 С 5.1

ϡߤγȯǤǤƳ뿷ǽϡ̤ˤϡС 5.2 ޤǤǤ˸뤳ȤϤޤ󤬡ͳ ХС 5.0 ˤƳǽϤޤ

* ޥ set jitter ǥӡ॰դޤ (ʲ:beeswarm (65))

* ޥ break, continue Ǥʣʥ롼פޤ

* 3 դǻ볦žǤ褦 (ʲ: set view azimuth (95.94.1))

* 3 襹 with zerrorfill

* ѿΥݡ (ʲ: arrays (16.6))

* Υݡ (ʲ: set nonlinear (95.57))

* դɽΥޥ (ʲ plot title, set key,multiple keys)

4.2 С 5.0

* /ѥϡߤ¾°Ω˻Ǥޤʲ: dashtype (21.2), set dashtype (95.17), set linetype (95.38)

* ʸνϡդդեȥ¾ͭäΤ˲ä (bold) ȼ (italic) ե⥵ݡ ƤޤΥ⡼ (ĥʸ) ϡߤϥǥեȤͭȤʤ Ƥޤʲ: enhanced text (14)

* ÷Ϸϡϥѡƥȥ٥򥵥ݡȤƤޤ ϥޥΥ٥ΥˤȤˤΤ߸ΤǤ

* ɸ (١ʬ)ʲ: set xtics geographic (95.108.2)

* θФΥǥեȽѤ "% h" (LaTeX ϽϷǤ "$%h$") ν񼰤 C ɸ񼰤 %g ˻Ƥޤؿʬˤϡ 줬դʸȤƽ񤫤뤳Ȥ㤤ޤ㤨С1.2E05 Ǥʤ 1.2 x 10^5 Ȥʤޤ

* ץǡ饤ǡ̾դΥǡ֥åȤ¸ ֤Ǥ褦ˡʲ: inline data (19)

* 32-bit Υե + RGB ɽ (#AARRGGBB) 򥵥ݡȡʲ:colorspec (21.1)

* hsv2rgb(H,S,V) ȤѴؿˤ HSV ֤򥵥ݡȡ

* 2 (x2, y2) ϡбؿˤꡢ 1 ˸ǤޤǤñ ʤΤϡˤ 1 2 μϰϤפ뤳ȤǤ ̤ˡˤʼǤ褦ˤʤޤޤǤϤ 褦ʤȤпǤޤǤʲ: set link (95.39)

* plot ޥɤγƴؿ˥ץȤϰϤֻǤޤ ϡplot ΤϰϤˤϱƶδؿΥǡ򥵥ץ󥰤 ϰϤǤޤ󡣰ʲ: plot (84), piecewise.dem ([*])

* 饤֥ libcerf ѲǽǤСʣǿشؿ cerf, cdawson, erfi, faddeeva, Voigt ץե VP(x,sigma,gamma) 󶡤Τ˻Ȥޤ

* ޥ import ϡ֥ͭ (ݡȤϥڥ졼ƥ ƥ¸) 󶡤ؿ˥桼ؿ̾ƤޤŬ ֥ͭȤ뤿Υƥץ졼ȥإåե롢ץ륽 makefile ʤɤ demo ˤޤ

* úȤľΥޥɤϡֹǺƼ¹ԤǤޤ㤨 history !5 ϡhistory ΰ 5 ֤ΥޥɤƼ¹Ԥޤ

* ӥåȥեȱ黻 > > < <

* 襹 with parallelaxeswith table ٥դ

* gnuplot ΥƤӽФ gnuplot ץȤ˥ѥ᡼Ϥޤ gnuplot -c scriptfile.gp ARG1 ARG2 ARG3 ...

* ޥ set minussign set microϡɽ κݤ˥ϥե (-) ǤʤʸȤƤΡ֥ޥʥ() Ȥ 褦ӲʳŪñɽκݤ "u" ˡ֥ޥ() Ȥ褦gprintf() 롼˻ؼޤϡιߥ٥ȡ Ū gprintf() Ȥäƺ줿ʸˤΤ߱ƶͿޤ ɽΤ˽ϤХϡߤ encoding ˰¸ޤ set minus ϡversion 5.0 ѥå٥ 5 Ǻǽ˸졢ޤ ŪʤΤǤ (٤ѹβǽ)

4.3 ޥ (New commands)

5 С 4 Ȥΰ㤤 (Differences from version 4)

С 5 Ƴ줿ĤѹϡǤ gnuplot ѤΥ ץȤεưѤǽޤ

* NaN 䡢ʤǡޤ¾ͽʤΤޤϥǡ νβɡ () ˤĤƤϡʲ: missing (95.19.3)

* ֺɸϡɸŪ Unix ݥå (1970 ǯ 1 1 ) ÿ ¸ޤǤ gnuplot Ǥϡ̤Υݥå (2000 ǯ1 1 ) ǻѤƤޤѹϡgnuplot γǺ ñ̤Υǡˤä̷⤬⤿餵褷ޤ󥹥ȡ 뤵Ƥġ gnuplot ɤΥݥåѤƤ뤫ˤĤ ϡޥ print strftime("%F",0) Τ뤳ȤǤޤߤϡ ֤ϾʤȤߥä٤¸ޤ

* ؿ timecolumn(N,"timeformat") ϡߤ 2 Ĥΰޤ 2 ܤΰϤɤΥǡȤϢƤ餺äƤˤ ؿ timecolumn x y ˻ꤹΤȤϰ㤦ǡ ɤ߹ߤ˻Ȥ褦ˤʤޤεǽϡΥޥ˼äѤ ޤ: set xdata time; set timefmt "timeformat"ϡʣΥե 뤫ۤʤ񼰤ǡɤǡȤ߹碌 1 ĤΥ դˤ뤳Ȥǽˤޤ

* ޥ set [axis]range Υ reverse ϡư̼ (autoscaling) ˤΤ߱ƶset xrange [0:1] Τ褦ʥޥɤΰ̣ դˤ¾ѹԤäϤޤ󡣤Τ褦ʾ x ոˤС set xrange [1:0] ȤƤ

* ޥ call ϡѿ ARGC, ARG0, ..., ARG9 󶡤褦 ƤޤARG0 ϡ¹Ԥ륹ץ̾ؤޤARG1 ARG9 ʸѿˤʤΤǡľܻȤ뤫ޤ㤨 @ARG1 Τ褦˥ ŸΤ򻲾Ȥ뤳ȤǤޤcall θŤѥ᡼ $0 ... $9 ϸߤ侩Ǥ

* ץ smooth kdensity Ρbandwidth ɲûǤϡǡ Ǥʤ 1 ĤΥɤȤͤޤʲ:smooth kdensity (84.3.5.13)

* unset xrange (¾μϰϤ) ϡΥǥեȤϰϤ ޤ

* unset terminal ϡgnuplot ϻνϷޤ

6 侩ʽ (Deprecated syntax)

ǤǻȤƤĤν񼰤 gnuplot 4 侩Ȥʤޤߴ뤿ΥѥΥץѰդƤޤŤ񼰤ΥݡȤϸߤϺƤޤ

gnuplot 4 Ǥ侩ǡС 5 ǤϺ:

     set title "Old" 0,-1
     set data linespoints
     plot 1 2 4               # y=1 Ǥοʿ

ߤƱεǽ:
     TITLE = "New"
     set title TITLE offset char 0, char -1
     set style data linespoints
     plot 1 linetype 2 pointtype 4

С 5 Ǥ -enable-backwards-compatibility ǹۤ줿 侩 (ޤȤ):
     if (defined(VARNAME)) ...
     set style increment user
     plot 'file' thru f(x)
     call 'script' 1.23 ABC
        (in script:  print $0, "$1", "number of args = $#")

ߤƱεǽ:
     if (exists("VARNAME")) ...
     set linetype
     plot 'file' using 1:(f(column(2)))
     call 'script' 1.23 "ABC"
        (in script:  print ARG1, ARG2, "number of args = ", ARGC

7 ǥ⡢ͥåȾΥץ (Demos and Online Examples)

gnuplot ʪ demo ǥ쥯ȥˤϡ¿Υץ뤬 ƤޤΥץ png, svg, canvas ϷˤϤ ʲΥͥåȾǸ뤳ȤǤޤ:

http://gnuplot.info/demos

Ǥϡƥǥ륳ޥɤդ٤ɽޤ gnuplot ץȤɤ뤳ȤǤޤΤǡ¸Ʊ ͤΥդ뤳ȤǤޤ

8 Хå/÷ (Batch/Interactive)

gnuplot ¿ΥƥǡХå뤤÷Τɤ ηǤ¹ԤǤȤ߹碌뤳ȤǽǤ

ޥɥ饤ϡץؤΥץ (ʸ - ǻϤޤ) gnuplot ޥɤޤե̾ǤȲᤵޤ -e "command" ηΥץϡgnuplot ޥɤŪ˼¹Ԥ ƥեȤΥޥʸϡꤵ줿˼¹Ԥޤ̤ʥ ̾ "-" ϡޥɤɸϤɤ߹ळȤ̣ޤǸ Υե¹Ԥ gnuplot Ͻλޤɤ߹ޤե롢 ӥޥʸꤷʤäϡgnuplot ɸϤ ÷Ϥդޤ

exit quit Ϥɤ⸽ߤΥޥɥեλޤƤ ե뤬äƤʤСΥե load Τ˻Ȥޤ

:

ä򳫻Ϥ:

     gnuplot

2 ĤΥޥɥե "input1", "input2" ȤäƥХåԤʤ:

     gnuplot input1 input2

ե "header" θ塢÷⡼ɤưθ̤Υޥ ե "tailer" ¹Ԥ:

     gnuplot header - trailer

ޥɥ饤󤫤 gnuplot ޥɤľͿλ˥꡼ ˥դĤ褦˥ץ "-persist" Ȥ:

      gnuplot -persist -e "set title 'Sine curve'; plot sin(x)"

եΥޥɤ¹Ԥˡ桼ѿ a s 򥻥åȤ:

     gnuplot -e "a=2; s='file.png'" input.gpl

9 Х (Canvas size)

gnuplot ΰǤǤϡset size ͤ򡢽Ϥΰ (Х) Υ椹ΤˤȤäƤϷ⤢ޤ٤Ƥ Ϸä櫓ǤϤޤǤŪΤ set size Ѥ뤳ȤϥС 4.2 侩ȤʤꡢߤϤۤȤ ɤνϷʲΥ롼˽ޤ:

set term < terminal_type> size < XX> , < YY> ϡϥեΥ ޤ "Х" Υ椷ޤǥեȤǤϡդϤ ХΤ褵ޤ

set size < XX> , < YY> ϡ輫Τ򥭥ХΥФŪ ̤ޤ1 꾮ͤꤹȡդϥХΤ ᤺1 礭ͤꤹȡդΰʬΤߤХ Τ˹礦褦褵ޤ1 礭ͤꤹȡ Ǥ꤬뤫⤷ʤȤդƤ

Υ롼˱ʤ㳰 PostScript ɥ饤ФǡǥեȤǤϰǤΤƱ񤤤򤷤ޤ PostScript ɥ饤ФƱͤ˥ǥեȤο񤤤ѹ뤳ȤˤʤǤ礦

:


     set size 0.5, 0.5
     set term png size 600, 400
     set output "figure.png"
     plot "data" with lines

Υޥɤϡ 600 ԥ롢⤵ 400 ԥνϥե "figure.png" ޤդϥХκ֤ޤ ϡmultiplot ⡼ɤ˹ԤäƤˡ̷⤷ޤ

10 ޥɥ饤Խ (Command-line-editing)

ޥɥ饤ǤԽǽȥޥɥҥȥεǽϡ GNU readline 饤֥꤫ BSD libedit 饤֥ꡢޤȤ߹ޤ ƱΤΤΤ줫ȤäƥݡȤƤޤϡ gnuplot Υѥ configure ΥץǹԤޤ

Ȥ߹ߤ readline ǤξԽޥɤϰʲ̤ǤDEL ˴ؤưϥƥ˰¸뤳ȤդƤGNU readline 饤֥ BSD libedit 饤֥˴ؤƤϡ켫ȤΥɥ 򻲾ȤƤ

ޥɹԽޥ
ʸ ǽ
  Խ
^B 1 ʸ᤹
^F 1 ʸؿʤ
^A ԤƬذư
^E ԤκǸذư
^H ľʸ
DEL ߤʸ
^D ֤߰ʸԤʤ EOF
^K ֤߰ޤǺ
^L 줿ɽιԤɽ
^U Τκ
^W ľñ
^V μΥԽޥɤȸʤʤ
TAB ե̾䴰ư
 
^P ذư
^N ذư
^R 򳫻

11 (Comments)

ȵ # ϡޥɹΤۤȤɤɤˤǤ񤯤ȤǤ ΤȤ gnuplot ϡιԤλĤʬ̵뤷ޤ # ϰǤϤθ̤ޤ󡣥ȹԤ ' \ ' ǽä 硢ιԤ⥳ȤΰȤư뤳ȤդƤ

ǡեФ륳ʸλˤĤƤϡʲ:set datafile commentschars (95.19.5)

12 ɸ (Coordinates)

ޥ set arrow, set key, set label, set object ϥվ Ǥդΰ֤Ǥޤΰ֤ϰʲν񼰤ǻꤷޤ:


     {<system>} <x>, {<system>} <y> {,{<system>} <z>}

ƺɸϻ < system> ˤϡfirst, second, graph, screen, character Τ줫ޤ

first ϺȲμ x,y (3D ξ z ) κɸϤ ޤsecond x2, y2 (ȱμ) Ѥޤgraph ϥ ΰŪ֤ꤷ 0,0 夬 1,1 (splot ϥΰκ 0,0,0 ǡΰ֤ z ͤ ޤʲ: set xyplane (95.109)) Ȥʤޤscreen ɽϰ ( ΤǤꡢset size 򤵤ʬǤϤޤ) ꤷ 0,0 夬 1,1 Ȥʤޤcharacter ϡΰκ (screen 0,0) Ρʸʸι⤵Ǥΰ֤Ϳޤäơ character ɸϡ򤵤줿եȤΥ˰¸ޤ

x κɸϤꤵƤʤ first Ȥޤy κɸϤ ꤵƤʤ x ФɸϤѤޤ

ͿɸŪʰ֤ǤϤʤŪͤǤ⤢ޤ (㤨 set arrow ... rto 2 ܤο)ΤۤȤɤͿ줿 ͤǽΰ֤Ф뺹ȤƻȤޤͿ줿ɸпˤ ϡŪͤΨȤƲᤵޤ㤨


     set logscale x
     set arrow 100,5 rto 10,2

ϡx п y μʤΤǡ100,5 ΰ֤ 1000,7 ΰ ֤ؤ񤯤Ȥˤʤޤ

(뤤Ϥʾ) μּǤ硢timefmt νʸ˽äơǰϤޤ줿ʸŬڤʺɸꤹɬפޤʲ: set xdata (95.103), set timefmt (95.87)ޤgnuplot ɽ ǧƤơξ礽 1970 ǯ 1 1 ÿȲᤵ

13 ʸǡ (Datastrings)

ǡեˤϡۥ磻ȥڡ (䥿) ޤޤʤǤդΰ ǽʸ󡢤뤤 2 ŰǰϤޤ줿Ǥդʸ (ۥ磻ȥ ޤޤƤɤ)Τ줫ηʤʸǡ뤳 ȤǽǤǡե˼Τ褦ʹԤޤޤƤ硢 4 Ĥޤߡ3 ܤƥʬǤȸʤޤ:


 1.000 2.000 "Third column is all of this text" 4.00

ƥʬ 2 3 㤨аʲΤ褦˻Ѥޤ:


 plot 'datafile' using 1:2:4 with labels
 splot 'datafile' using 1:2:3:4 with labels

ƥʬǡ 1 ġޤʣ輴Υ٥Ȥ ƻѤǤޤϡϥǡ 3 ܤ 4 ܤ (X,Y) ɸ ƼФʬ褷ޤξ gnuplot ϡx ˱äɸŪ˴֤ζ٥ΤĤ ĤΤǤϤʤϥǡե 1 ܤ X ɸΰ֤ˡ ߤʸ x ˱äƤĤƹԤޤ


 set xtics
 plot 'datafile' using 3:4:xticlabels(1) with linespoints

ϥǡκǽΥȥ (ʤθФ) ƥʬȲ ᤹⤦ĤΥץ󤬤ꡢϥƥʬ򡢤褷 Υǡ (key) ΥȥʬȤƻѤޤϡƬ Ԥ 2 ܤʬܥåΥȥΤ˻Ѥ 2,4 ܤ׵ᤵ줿褹Τ˽ޤ:


 plot 'datafile' using 1:(f($2)/$4) with lines title columnhead(2)

̤:


 plot for [i=2:6] 'datafile' using i title "Results for ".columnhead(i)

ƬѤˡϡset key autotitle columnhead Ǽư Ǥޤ ʲ: labels (47), using xticlabels (84.3.8.3), plot title (84.11),using (84.3.8), key autotitle (95.36.3)

14 ĥʸ⡼ (Enhanced text mode)

¿νϷĥʸ⡼ (enhanced text mode) 򥵥ݡ Ƥޤϡʸɲäν񼰾ᤳߤޤ㤨 "x^2" x μ̾桹դ 2 Ĥǽ񤭽Фޤ ⡼ɤϡϷ˥ǥեȤȤ򤵤ޤθ "set termoption [no]enhanced" ȤäƤεǽͭ/̵ˤǤޤ "set label 'x_2' noenhanced" Τ褦˸ġʸŬѤ뤳Ȥ Ǥޤ

ĥʸ浭
^ a^x ax դʸ
_ a_x ax դʸ
@ a@^b_{cd} abcd ܥå (ʤ)
& d&{space}b d b ꤷĹΥڡ
~ ~a{.8-} $ \tilde{{a}}$ 'a' ξ '-' 򡢸ߤΥեȥ
   .8 ܻ夲֤˽Ťͽ
{/Times abc} abc Times եȡΥ abc
{/Times*2 abc} abc Times եȡܤΥ abc
{/Times:Italic abc} abc Times եȡåΤ abc
{/Arial:Bold=20 abc} abc Arial եȡ 20 abc

ʸϡ³ 1 ʸޤ楫åǰϤޤ줿ΤŬ ޤ楫åˤϡ㤨 2^{10} Τ褦ɲäνʸΤʤʸ󤫡ޤϥեȤ°ѹɲʸ뤳ȤǤޤʲϤ楫åҤ򼨤ƤơܡΤ A ˥åΤβդź i ĤΤ⸽ߤΥեȤޤ :Normal ȡդźϥܡΤǤ åΤˤʤޤ

    {/:Bold A_{/:Normal{/:Italic i}}}

եȻϡ楫å '{' ľ³ '/' Τ˽񤫤ʤ С֤ޤס

ܥå (phantom box) a@^b_c ξդʸȲդʸ· ͭѤǤʸ˥ȵŤͤˤϤޤƯޤ ԤŪΤˤϡʥȤ䤽¾Υƥ Τ¿ʸĥ󥳡 (㤨 iso_8859_1 utf8) ѤǤ礦ʲ: set encoding (95.23)Υܥåϥڡ 󥰤ԤʤʤΤǡܥå (Ĥޤ @ θ) ξդʸ դʸûϤΤŬƤޤ

ʸƱĹΥڡʸ '&' ȤȤ뤳ȤǤ ޤʤ

       'abc&{def}ghi'

ϰʲޤ (abc ghi δ֤ 3 ʸʬζ):
       'abc   ghi'

ʸ '~ ' ϡʸޤϥåǰϤޤ줿ʸˡ³ʸ ޤϥåǰϤޤ줿ʸŤͽ񤭤ޤ2 ܤʸϺǽʸ ˤ碌ƿʿ˥󥿥󥰤ޤä '~ a/' 'a' Ӥ ʥå夬ޤ2 ܤʸϡ˿֤Ȥǿ ľ˰ư뤳ȤǤޤοϸߤΥեȥФ ̣˽äʸ夬ä겼äꤷޤξ ʸ 1 ʸĹʤΤǥåǰϤɬפޤŤ 񤭤ʸ󤬿ϤޤäƤϡľˤ餹ͤʸ δ֤˥ڡƤ ('~ {abc}{.5 000}')ʳϥڡפǤ ('~ {abc}{.5 -- }')뤤ξΥեȤѹ뤳 ȤǤޤ ('~ a{.5 /*.2 o}'; 'a' 1/5 礭 'o'ξ ȥåδ֤ΥڡɬפǤ) ʸ󤬻Ϥޤä 뤳ȤϤǤޤ󡣤줾ʸǡ¾üʽ񼰤Ȥ Ǥޤ󡣤'~ a{ \ ^}' Τ褦üʸ򥨥פ뤳 () ϲǽǤ

ü쵭ϡ8 ʸɤͿ뤳ȤǿǻǤޤ㤨С {/Symbol \ 245} ϡAdobe Symbol եȤ̵εǤ ϡ UTF-8 Τ褦ʥޥХȥ󥳡ǥ󥰤ǤϤޤޤ UTF-8 ĶǤϡǤǤʤФʤ˾ʸ֤褦 ˡǡޥХŪϤǤ褦ˤ٤Ǥ

ʸϡ \ \ \ { ʤɤΤ褦 \ ȤäƥפǤޤ

ŰʸñʸȤϰۤʤäƲᤵ뤳Ȥ դƤʰ㤤ϡŰʸǤϥХåå 2 ĽŤͤɬפ뤳ȤǤ

gnuplot ʪ /docs/psdoc ֥ǥ쥯ȥˤե "ps_guide.ps" ˡĥ줿񼰤˴ؤ㤬ܤäƤޤƱͤΤΤ ǥ

enhanced_utf8.dem

ˤ⤢ޤ

15 Ķѿ (Environment)

gnuplot ¿ΥĶѿǧޤɬܤΤΤϤޤ󤬡 Ȥˤʤ뤫Τޤ

GNUTERM ϡ줬ƤСưΥǥեȽϷȤƻ ޤϡ~ /.gnuplot (ޤϤ) ե (ʲ: startup (26)) ˤ䡢󤽤θŪ set term ޥɤˤѹǤޤ

GNUHELP ˥إץե (gnuplot.gih) Υѥ̾ƤȤ ޤ

VMS Ǥϡ̾ GNUPLOT$HELP gnuplot Υإץ饤֥̾ ޤgnuplot ΥإפǤդ VMS ƥΥإץ饤 뤳ȤǤޤ

Unix ˤƤϡȥǥ쥯ȥ .gnuplot Ȥե뤬ʤ ˤϡHOME 줿ǥ쥯ȥõޤMS-DOS, Windows, OS/2 Ǥ GNUPLOT ˻ȤޤWindows ǤϡNT Ѥѿ USERPROFILE ⻲ȤޤVMS Ǥ SYS$LOGIN Ǥhelp startup ǤäƤߤƤ

Unix ˤƤϡPAGER إץåνѤΥե륿ȤƻȤ ޤ

Unix ǤϡSHELL shell ޥɤκݤ˻ȤޤMS-DOS, OS/2 COMSPEC shell ޥɤκݤ˻Ȥޤ

FIT_SCRIPT ϡƤϤ (fit) Ǥ줿Ȥ˼¹Ԥ gnuplot ޥɤλ˻Ȥޤʲ: fit (75)FIT_LOG ƤϤˤ եΥǥեȤΥե̾λ˻Ȥޤ

GNUPLOT_LIB ϡǡ䥳ޥɥեθǥ쥯ȥɲ Τ˻ȤޤѿϡĤΥǥ쥯ȥ̾ޤʣΥǥ ȥ̾񤯤ȤǤޤǥ쥯ȥζڤϥץåȥۡ ˰㤤ޤ㤨 Unix Ǥ ':' ǡMS-DOS, Windows, OS/2 Ǥ ';' GNUPLOT_LIB ͤѿ loadpath ɲäޤ save save set ޥɤǤ¸ޤ

ϥɥ饤Фˤ gd 饤֥ͳ TrueType եȤ򰷤 ⤤ĤޤΥɥ饤ФΥեȸѥϡĶѿ GDFONTPATH ǤޤˡΥɥ饤ФǤΥǥեȤΥ ȤϴĶѿ GNUPLOT_DEFAULT_GDFONT Ǥޤ

postscript ϥɥ饤ФϼʬǻäƤեȸѥȤޤ ϴĶѿ GNUPLOT_FONTPATH Ǥޤ񼰤 GNUPLOT_LIB ƱǤGNUPLOT_FONTPATH ͤѿ fontpath ɲäޤ save save set ޥɤǤ¸ޤ

PostScript ɥ饤Фϡ (Ȥ߹ޤƤʤ) եõ ˴Ķѿ GNUPLOT_PS_DIR Ѥޤ󥹥ȡκȤˤꡢ gnuplot ˤϤΥեΥԡȤ߹ޤƤ뤫ޤϥǥե ȤΥѥޤƤޤѿϡpostscript Ϸǥǥ ȤΥե˥ޥ prologue եѤ ΤѤǤޤʲ: postscript prologue (106.47.3)

16 (Expressions)

Ūˤ C, FORTRAN, Pascal, BASIC ˤѲǽʿɽ Ǥޤ 黻Ҥ̤ͥ C λͤ˽ޤζʸ ȥʸ̵뤵ޤ

ʣǿ {< real> ,< imag> } ɽޤ < real> < imag> () ϿǤɬפޤ㤨 {3,2} 3 + 2i 路{0,1} 'i' ȤɽޤˤŪ楫å ɬפޤ

ϡC strtoll() 饤֥롼ȤäƲᤷޤ ϡ"0" ǻϤޤ 8 ʿȡޤ "0x" "0X" ǻϤޤ 16 ʿȤߤʤȤ̣ޤ

¿ (ư) ϡC atof() 饤֥롼ȤäƲᤷ

gnuplot "¿" "" 黻 FORTRAN C Τ褦˰Ȥ դƤ"1", "-10" ʤɤȸʤ졢"1.0", "-10.0", "1e1", 3.5e-1 ʤɤϼ¿ȸʤޤ 2 ĤΤäȤפʰ ϳ任Ǥγ任ڤΤƤޤ: 5/2 = 2¿ϤǤϤ ޤ: 5.0/2.0 = 2.5餬ߤξ硢׻ϼ "ĥ" ޤ: 5/2e0 = 2.5dz硢 ͤϥѥˤäѤޤ"print -5/2" ȤơʤΥ ब -2 -3 ΤɤȤ뤫ǧƤ

"1/0" "̤ (undefined)" ե饰ˤꤽ ̵뤷ޤ뤤ϡ餫Ƥ NaN ȤäƤƱ ȤˤʤޤˤĤƤϡʲ: using (84.3.8)

ʣǿɽμ¿ʬʬϡɤʷϤƤ˼¿Ǥ: {3,2} "3" "2" ϼ¿ǤꡢǤϤޤ

gnuplot ʸФñʱ黻ʸѿѤǤޤ м ("A" . "B" eq "AB") Ͽɾޤʸη Ҥʸ黻Ҥ̣Ƥޤ

ȤƤͤޤʸϡ줬Ѥ줿ϡб ¿Ѵޤäơ("3" + "4" == 7) (6.78 == "6.78") ɤ⿿ˤʤޤϡ줬ʸ黻ҤǻȤ줿ʸ Ѵޤ¿ʣǿϥǤŵŪϡե̾ ¾ʸȤǤ礦: 㤨 ("file" . 4 eq "file4") ϿǤ

ֻꤹϰϵһ [beg:end] ˤäơʬʸꤹ뤳Ȥ Ǥޤ㤨С"ABCDEF"[3:4] == "CD" ǡ"ABCDEF"[4:*] == "DEF" "string"[beg:end] ϡʸͤȤ߹ߴؿ substr("strings",beg,end) Ƥ֤ȤȤۤƱǤؿƤӽФǤ beg, end Ͼά뤳ȤϤǤޤ

16.1 ؿ (Functions)

äդʤСgnuplot οشؿΰ¿ʣǿ 뤳ȤǤޤѤͤȤؿ (㤨 sin(x)) ϡ ͤ饸Ȥưޤϥޥ set angles ˤä ٤ѹǤޤ

إ饤֥ؿ
ؿ
     
abs(x) Ǥ x , | x| ; Ʊ
abs(x) ʣǿ x Ĺ, $ \sqrt{{{\mbox{real}(x)^{2} +
\mbox{imag}(x)^{2}}}}$
acos(x) Ǥ cos-1x ()
acosh(x) Ǥ 饸Ǥ cosh-1x (ж;)
airy(x) Ǥ ꡼ؿ Ai(x)
arg(x) ʣǿ x г
asin(x) Ǥ sin-1x ()
asinh(x) Ǥ 饸Ǥ sinh-1x (ж)
atan(x) Ǥ tan-1x (󥸥)
atan2(y,x) ޤϼ¿ tan-1(y/x) (󥸥)
atanh(x) Ǥ 饸Ǥ tanh-1x (ж)
EllipticK(k) ¿ k $ \in$ (-1:1) K(k) 1 ﴰʱʬ
EllipticE(k) ¿ k $ \in$ [-1:1] E(k) 2 ﴰʱʬ
EllipticPi(n,k) ¿ n< 1, ¿ k $ \in$ (-1:1) $ \Pi$(n, k) 3 ﴰʱʬ
besj0(x) ޤϼ¿ J0 ٥åؿ (0 ٥åؿ)
besj1(x) ޤϼ¿ J1 ٥åؿ (1 ٥åؿ)
besy0(x) ޤϼ¿ Y0 ٥åؿ (0 Υޥؿ)
besy1(x) ޤϼ¿ Y1 ٥åؿ (1 Υޥؿ)
ceil(x) Ǥ $ \lceil$x$ \rceil$ , x (μ) ʾκǾ
cos(x) Ǥ x Υ cos x
cosh(x) Ǥ cosh x , x Υϥѥܥå
erf(x) Ǥ erf(real(x)) , x θؿ
erfc(x) Ǥ erfc(real(x)) , 1.0 - (x μθؿ)
exp(x) Ǥ ex , x λؿؿ
expint(n,x) n$ \ge$ 0 , ¿ x$ \ge$ 0 En(x) = $ \int_{1}^{\infty}$t-ne-xt dt , x λؿʬ
floor(x) Ǥ $ \lfloor$x$ \rfloor$ , x (μ) ʲκ
gamma(x) Ǥ gamma(real(x)) , x μΥ޴ؿ
ibeta(p,q,x) Ǥ ibeta(real(p, q, x)) , p ,q ,x μԴ١ؿ
inverf(x) Ǥ x μεոؿ
igamma(a,x) Ǥ igamma(real(a, x)) , a ,x μԴ޴ؿ
imag(x) ʣǿ x εʬ (¿)
invnorm(x) Ǥ x μεʬ۴ؿ
int(x) ¿ x ʬ (0 ˸äƴݤ)
lambertw(x) ¿ Lambert W ؿ
lgamma(x) Ǥ lgamma(real(x)) , x μΥпؿ
log(x) Ǥ logex , x μп ( e )
log10(x) Ǥ log10x , x п ( 10 )
norm(x) Ǥ x μʬ (ʬ) ؿ
rand(x) [0:1] ε
real(x) Ǥ x μ
sgn(x) Ǥ x > 0 ʤ 1, x < 0 ʤ -1, x = 0 ʤ 0. x ε̵
sin(x) Ǥ sin x , x Υ
sinh(x) Ǥ sinh x , x Υϥѥܥå
sqrt(x) Ǥ $ \sqrt{{x}}$ , x ʿ
tan(x) Ǥ tan x , x Υ󥸥
tanh(x) Ǥ tanh x , x Υϥѥܥå󥸥
voigt(x,y) ¿ Voigt/Faddeeva ؿ $ {\frac{{y}}{{\pi}}}$$ \int$$ {\frac{{exp(-t^2)}}{{(x-t)^2+y^2}}}$dt
    : voigt(x, y) = real ( faddeeva(x + iy))
     

libcerf (ѲǽʾΤ) ˤüؿ
ؿ
     
cerf(z) ʣǿ ʣǸؿ
cdawson(z) ʣǿ Dawson ʬ D(z) = $ {\frac{{\sqrt{\pi}}}{{2}}}$e-z2erfi(z) ʣdzĥ
faddeeva(z) ʣǿ ƥ벽ʣǸؿ w(z) = e-z2 erfc(- iz)
erfi(x) ¿ ؿ erf (x) = - i*erf (ix)
VP(x,$ \sigma$ ,$ \gamma$ ) ¿ Voigt ץե VP(x,$ \sigma$,$ \gamma$) = $ \int^{{\infty}}_{{-\infty}}$G(x$\scriptstyle \prime$;$ \sigma$)L(x-x$\scriptstyle \prime$;$ \gamma$)dx$\scriptstyle \prime$
     

ʸؿ
ؿ ֤
gprintf("format",x,...) Ǥ gnuplot ν񼰲ϴŬѤ̤ʸ
sprintf("format",x,...) ʣ C sprintf ֤ʸ
strlen("string") ʸ Хñ̤ǤʸĹ ()
strstrt("string","key") ʸ ʬʸ "key" Ƭ
substr("string",beg,end) ʣ ʸ "string"[beg:end]
strftime("timeformat",t) Ǥ gnuplot ˤϷ̤ʸ
strptime("timeformat",s) ʸ ʸ s Ѵ 1970 ǯÿ
system("command") ʸ 륳ޥɤνϤʸ
word("string",n) ʸ, ʸ "string" n ܤñ
words("string") ʸ ʸ "string" ñ

¾ gnuplot δؿ
ؿ ֤
column(x) ʸ ǡե x
columnhead(x) ǡեκǽ x ʸ
exists("X") ʸ ѿ̾ X Ƥ 1, Ǥʤ 0
hsv2rgb(h,s,v) h,s,v $ \in$ [0:1] 24 ӥå RGB
stringcolumn(x) ʸ ʸȤƤ x ܤ
timecolumn(N,"timeformat") , ʸ ǡ N ܤǡ
tm_hour(x)
tm_mday(x)
tm_min(x) ʬ
tm_mon(x)
tm_sec(x)
tm_wday(x) νβ
tm_yday(x) ǯβ
tm_year(x)
time(x) Ǥ ߤΥƥ
valid(x) ǡ column(x)
value("name") ʸ ̾ name ѿθߤ

16.1.1 ʱʬ (elliptic integrals)

ؿ EllipticK(k) ϡ 1 ﴰʱʬʤؿ (1-(k*sin(p))**2)**(-0.5) 0 /2 ޤǤϰϤιʬͤ ޤk -1 1 Ǥ (ξüϴޤޤʤ)

ؿ EllipticE(k) ϡ 2 ﴰʱʬʤؿ (1-(k*sin(p))**2)**0.5 0 /2 ޤǤϰϤιʬ֤ͤ ޤk -1 1 Ǥ (ξüޤ)

ؿ EllipticPi(n,k) ϡ 3 ﴰʱʬʤؿ (1-(k*sin(p))**2)**(-0.5)/(1-n*sin(p)**2) 0 /2 ޤǤϰϤ ʬ֤ͤޤѥ᡼ n 1 꾮k -1 1 δ (ξüϴޤޤʤ) ǤʤФޤꡢ٤Ƥ k Ф EllipticPi(0,k) == EllipticK(k) Ǥ뤳ȤդƤ

16.1.2 (random)

ؿ rand() 0 1 δ֤εޤϰʲΥ르ꥺѤƤޤ: P. L'Ecuyer and S. Cote, "Implementing arandom number package with splitting facilities", ACM Transactions onMathematical Software, 17:98-111 (1991).


     rand(0)     ˻ 2 Ĥ 32bit μ (seed) θߤͤ
                  [0:1] ε֤ͤ
     rand(-1)    2 Ĥμͤɸ᤹ͤ
     rand(x)     0 < x < 2^31-1 ʤξ x ꤹ
     rand({x,y}) 0 < x,y < 2^31-1 ʤ seed1  x  seed2  y
                 ꤹ

16.1.3 Value

A 桼ѿ̾ǤСB = value("A") ϻ¾ B = A ƱǤϡѿ̾Ȥʸѿ˼Ƥͭ ѤǤʲ: user-defined variables (16.5)ϡѿ̾ǡե 뤫ɤ߼뤳ȤǽˤޤǤ硢value() Ϥ ο֤ͤޤʸǡƤѿб ʤ硢value() NaN ֤ޤ

16.1.4 ñμФñ (word, words)

word("string",n) ϡʸ (string) n ܤñ֤ޤ㤨 word("one two three",2) ʸ "two" ֤ޤ

words("string") ϡʸ (string) ñ֤ޤ㤨С words(" a b c d") 4 ֤ޤ

ؿ word words ϡñ䡢ŰǰϤޤ줿ʸ⡢ ŪǤݡȤƤޤ:

     print words("\"double quotes\" or 'single quotes'")   # 3

ϰϡڡޤʸƬǤʤФޤ ϡñ⡢뤤ñ콪ˤĤݥȥե (') ϡ ñǤǤȸʤ뤳Ȥ̣ޤ:
     print words("Alexis' phone doesn't work") # 4

ʸΥפϥݡȤƤޤΤǡݻ ϡ줾̤μΰǰϤޤʤФޤ:
     s = "Keep \"'single quotes'\" or '\"double quotes\"'"
     print word(s, 2) # 'single quotes'
     print word(s, 4) # "double quotes"

ǸǤϡΥפʸΤߤɬפǤ뤳Ȥ դƤ

16.2 黻 (Operators)

gnuplot α黻ҤϡC α黻ҤȤۤƱǤäդʤ Ƥα黻Ҥ¿ʣǿΰ뤳ȤǤޤޤ FORTRAN ǻȤ ** (߾) 黻Ҥ⥵ݡȤƤޤ

黻ɾνѹˤϤäȤޤ

16.2.1 ñ黻 (Unary)

ʲϡñ黻ҤȤλˡΰǤ:

ñ黻
- -a ޥʥ
+ +a ץ饹 (⤷ʤ)
~ ~a * 1 (ӥåȿž)
! !a * Ū
! a! *
$ $3 * `using` Ǥΰ/
| |A| A ǿ

(*) ΤĤ黻ҤΰǤʤФʤޤ

黻Ҥ̤ͥ Fortran C ƱǤθƱ͡黻ɾ Ѥ뤿ˤäȤޤä -2**2 = -4 ǡ (-2)**2 = 4 Ǥ

黻Ҥϡ礭֤ͤ褦˼¿֤ޤ

16.2.2 黻 (Binary)

ʲϡ黻ҤȤλˡΰǤ:

** a**b ߾
* a*b
/ a/b
% a%b * ;
+ a+b
- a-b
== a==b
!= a!=b ʤ
< a<b
<= a<=b ʲ
> a>b
>= a>=b ʾ
<< 0xff<<1 ʤե
>> 0xff>>1 ʤե
& a&b * ӥå (AND)
^ a^b * ӥå¾Ū (XOR)
| a|b * ӥå (OR)
&& a&&b * Ū AND
|| a||b * Ū OR
= a = b
, (a,b) ߼ɾ
. A.B ʸϢ
eq A eq B ʸ
ne A ne B ʸʤ

(*) ΤĤ黻ҤΰǤʤФʤޤ ʸ A,B ϱ黻Ҥʸ׵᤹뤳Ȥ̣ޤ

黻Ҥ AND (&&) OR (| | ) C Ʊͤɬ׺Ǿ¤ɾ ޤ󡣤ʤ&& 2 ϡ 1 ʤɾޤ 󤷡| | 2 ϡ 1 ʤɾޤ

߼ɾ (,) ϡåǤΤɾ졢鱦ؽ˼¹Ԥ뤳 ݾڤ졢Ǥⱦμ֤ͤޤ

16.2.3 黻 (Ternary)

Ĥ黻Ҥޤ:

?: a?b:c

黻Ҥ C ΤΤƱƯ򤷤ޤǽΰ (a) Ǥʤ Фޤ󡣤ͤɾ졢줬 (Ǥʤ) ʤ 2 ܤ (b) ɾ줽֤ͤ졢Ǥʤ 3 ܤΰ (c) ɾ졢֤ͤޤ

黻ҤϡʬŪ줿ؿ䡢郎줿ˤΤ 褹롢ȤäȤԤʤͭѤǤ

:

0 < = x < 1 Ǥ sin(x) ˡ1 < = x < 2 Ǥ 1/x ơʳx Ǥʤؿ:

     f(x) = 0<=x && x<1 ? sin(x) : 1<=x && x<2 ? 1/x : 1/0
     plot f(x)

gnuplot ̤ͤФƤϲɽˤ̵뤹ΤǡǸξ δؿ (1/0) 򲿤ϤʤȤդƤޤ ؿ襹뤬 lines () ξ硢Ϣ³ (x=1) ν Ϣ³ؿȤФƤޤȤˤդƤϢ ³ˤʤ褦ˤˤϡؿ 2 Ĥʬ줾ʬƤ ( Τ褦ʾ硢޲ѿؿȤΤǤ)

ե 'file' Υǡǡ4 ܤΥǡǤʤȤ1 ܤ ǡ˴ؤ 2 ܤ 3 ܤΥǡʿͤ:


     plot 'file' using 1:( $4<0 ? 1/0 : ($2+$3)/2 )

using ν񼰤˴ؤƤϡʲ: plot datafile using (84.3.8)

16.3 (Summation)

¤μϡʲηɽޤ:
     sum [<var> = <start> : <end>] <expression>

< var> ϡ< start> < end> ޤǤͤ˼ѿȤ ưޤγͤФơ < expression> ͤͤɲä졢 ǽŪʹͤ¤μͤȤʤޤ :
     print sum [i=1:10] i
         55.
     # ʲ plot 'data' using 1:($2+$3+$4+$5+$6+...) Ʊ
     plot 'data' using 1 : (sum [col=2:MAXCOL] column(col))

< expression> ϡɬѿ < var> ޤɬפϤޤ< start> < end> ѿͤǻǤޤͤưŪѹ뤳 ϤǤޤ󡣤ǤʤѤޤ< end> < start> ϡ¤ͤ 0 Ȥʤޤ

16.4 Ѥѿ (Gnuplot-defined variables)

gnuplot ϡץθߤ֤ľȿǤ褦ɤ ФѤѿ򤤤ĤäƤޤѿ̾ϡ㤨 GPVAL_TERM, GPVAL_X_MIN, GPVAL_X_MAX, GPVAL_Y_MIN Τ褦 "GPVAL_" Ϥޤޤ餹٤ƤΰȤͤ򸫤ˤϡshow variables all ϤƤΥѥ᡼˴Ϣ (ϰϡп 뤫) ϡ set ΤǤϤʤǸ褵줿Τ ޤ

: [X,Y] Υ꡼Ǥκɸ׻ˡ

    GRAPH_X = (X - GPVAL_X_MIN) / (GPVAL_X_MAX - GPVAL_X_MIN)
    GRAPH_Y = (Y - GPVAL_Y_MIN) / (GPVAL_Y_MAX - GPVAL_Y_MIN)
    SCREEN_X = GPVAL_TERM_XMIN + GRAPH_X * (GPVAL_TERM_XMAX - GPVAL_TERM_XMIN)
    SCREEN_Y = GPVAL_TERM_YMIN + GRAPH_Y * (GPVAL_TERM_YMAX - GPVAL_TERM_YMIN)
    FRAC_X = SCREEN_X * GPVAL_TERM_SCALE / GPVAL_TERM_XSIZE
    FRAC_Y = SCREEN_Y * GPVAL_TERM_SCALE / GPVAL_TERM_YSIZE

ɤ߽Фѿ GPVAL_ERRNO ϡǤդ gnuplot ޥɤ륨顼 ᤯äƤޤä 0 Ǥʤͤ˥åȤ졢ľΥ顼 åʸѿ GPVAL_ERRMSG ¸ޤGPVAL_ERRNO GPVAL_ERRMSG ϡޥ reset errors ȤäƥꥢǤޤ

mouse ǽȤ÷Ϸϡ"MOUSE_" ǻϤޤɤ߽Ф ѿ򤤤ĤäƤޤܺ٤ϡʲ: mouse variables (23.2)

fit ǽϡ"FIT_" ǻϤޤ뤤ĤѿѤޤΤǡΤ褦 ̾ȤΤ򤱤٤Ǥ礦set fit errorvariables Ѥ ȡƤϤѿΥ顼ϡΥѥ᡼̾ "_err" ɲä ¸ޤܺ٤ϡʲ: fit (75)

ʲ⻲: user-defined variables (16.5), reset errors (93),mouse variables (23.2), fit (75)

16.5 桼ѿȴؿ (User-defined)

ʥ桼ѿ 1 Ĥ 12 ĤޤǤΰĥ桼ؿ ǤդξȤäꤹ뤳ȤǤޤ plot ޥ ɾǤǽǤ

桼ؿ:

     <func-name>( <dummy1> {,<dummy2>} ... {,<dummy12>} ) = <expression>

< expression> ϲѿ < dummy1> < dummy12> ɽǤ

桼ѿ:

     <variable-name> = <constant-expression>

:

     w = 2
     q = floor(tan(pi/2 - 0.1))
     f(x) = sin(w*x)
     sinc(x) = sin(pi*x)/(pi*x)
     delta(t) = (t == 0)
     ramp(t) = (t > 0) ? t : 0
     min(a,b) = (a < b) ? a : b
     comb(n,k) = n!/(k!*(n-k)!)
     len3d(x,y,z) = sqrt(x*x+y*y+z*z)
     plot f(x) = sin(x*a), a = 0.2, f(x), a = 0.4, f(x)


     file = "mydata.inp"
     file(n) = sprintf("run_%d.dat",n)

Ǹ 2 Ԥϡ桼ʸѿȡ桼ʸؿ̣ Ƥޤ

ѿ pi (3.14159...) NaN (IEEE ("Not a Number")) Ϥ餫 Ƥޤ餬ɬפʤС¾ΤΤ˺뤳Ȥ ǽǤʲΤ褦ˤƸͤ뤳ȤǤޤ:


     NaN = GPVAL_NaN
     pi  = GPVAL_pi

¾ˤ⤤Ĥѿ㤨÷ϷǤΥޥƤϤ (fit) ʤɤ gnuplot ư֤˱ޤܺ٤ ʲ: gnuplot-defined variables (16.4)

ѿ V Ƥ뤫ɤϡ exists("V") ǥå ޤ:

     a = 10
     if (exists("a")) print "a is defined"
     if (!exists("b")) print "b is not defined"

ѿ̾ؿ̾̿̾§ϡΥץߥ󥰸ƱǡƬϥ ե٥åȤǡθʸϥե٥åȡ"_" Ȥޤ

ƴؿϡ'GPFUN_' ȤƬ̤ʸѿȤ ѤǤޤ

:

     set label GPFUN_sinc at graph .05,.95

ʲ: show functions (95.29), functions (84.6), gnuplot-defined variables (16.4),macros (28.2), value (16.1.3)

16.6 (Arrays)

ϡ桼ѿźդꥹȤȤƼƤޤĤ ǤϡĤѿˤϸꤵƤޤϡȤŪ ˺ƤʤФޤǡΥѹ 뤳ȤϤǤޤ󡣤٤ƤǤϡǽ̤ (undefined) Ǥ Ȥɤξ̤ǡ̾դ桼ѿǤѤǤޤ A ǿϡ | A| ǼǤޤ

:

    array A[6]
    A[1] = 1
    A[2] = 2.0
    A[3] = {3.0, 3.0}
    A[4] = "four"
    A[6] = A[2]**3
    array B[6] = [ 1, 2.0, A[3], "four", , B[2]**3 ]


    do for [i=1:6] { print A[i], B[i] }
        1 1
        2.0 2.0
        {3.0, 3.0} {3.0, 3.0}
        four four
        <undefined> <undefined>
        8.0 8.0

: ѿϡƱ֤̾ͭޤ㤨С餫 FOO Ȥ̾󤬤硢FOO Ȥ̾ʸѿȤȡ ˲ޤ

̾ plot, splot, fit, stats ޥɤͿ뤳Ȥ ޤξ硢źե 1 ܤͤ (1 size ) A[i] ե 2 ܤǤ褦ʥǡեͿ ȤƱˤʤޤ

:

    array A[200]
    do for [i=1:200] { A[i] = sin(i * pi/100.) }
    plot A title "sin(x) in centiradians"

17 ե

gnuplot 켫ȤˤϤɤʥեȤޤޤƤϤ餺եȽ äƤǡκᤷȤ˽Ϸ˰ۤʤޤ ǤϡʣνϷŬѤեȵˤĤޤ 夲ΰʳνϷǤΥեȤλѤ˴ؤƤϡνϷΥɥȤ򻲾ȤƤ

Ūˡ㤨 Adobe Symbol եȤΤ褦̤ʥեȤڤؤ 뤳Ȥǥե٥åȤǤϤʤ뤳ȤǽǤߤϡ UTF-8 󥳡ǥ󥰤Ѥơɬפʵؤ Unicode ȥ ꤹȤˡޤʲ: encoding (95.23), locale (95.42)

17.1 Cairo (pdfcairo, pngcairo, epscairo, wxt Ϸ)

νϷϡեȤθȥ˳ fontconfig ġ Ѥޤ

fontconfig 桼ޥ˥奢

򻲾ȤƤϡgnuplot ǰŪ̾䥵ǥեȤ ׵᤹뤳Ȥǽˤɬפʤ fontconfig ƱΥեȤѤ 뤳ȤǤΤǡ̾ϤǽʬǤ礦ʲϡ¿ʬⵡǽޤ:

    set term pdfcairo font "sans,12"
    set term pdfcairo font "Times,12"
    set term pdfcairo font "Times-New-Roman,12"

17.2 Gd (png, gif, jpeg terminals)

png, gif, jpeg ϷΥեȽϡ饤֥ libgd ˤä Ԥޤlibgd ϡ 5 δܥեȤľ󶡤Ƥޤ: tiny (5x8 ԥ), small (6x12 ԥ), medium, (7x13 Bold), large (8x16), giant (9x15 ԥ)ΥեȤ礭 žꤹ뤳ȤϤǤޤ󡣻Ѥݤϡfont  ɤ˾Υɤꤷޤ:
    set term png tiny

¿Υƥǡlibgd Adobe Type 1 ե (*.pfa) TrueType եȤؤΥ󶡤ޤξեȼȤ̾ǤϤʤ եȥե̾"< face> {,< pointsize> }" ηͿޤ ǡ< face> ϥեȥեΥեѥ̾ޤϴĶѿ GDFONTPATH ǻؼǥ쥯ȥΰĤΥե̾Ƭʬ Τ줫Ǥäơ'set term png font "Face"' ϡ < ǥ쥯ȥ> /Face.ttf < ǥ쥯ȥ> /Face.pfa Ȥե ̾ΥեȤõȤޤ㤨СGDFONTPATH /usr/local/fonts/ttf:/usr/local/fonts/pfa ޤޤƤϡʲΥޥɤ 2 ĤĤϤƱȤˤʤޤ:

    set term png font "arial"
    set term png font "/usr/local/fonts/ttf/arial.ttf"
    set term png font "Helvetica"
    set term png font "/usr/local/fonts/pfa/Helvetica.pfa"

ǥեȤΥեȥƱ˻ꤹˤ:
    set term png font "arial,11"

TrueType Adobe Type 1 եȤϡ礭ѹžǽ "set term" ޥɤǥեȤꤷʤä硢gnuplot ̤ ǥեȥեȤ꤬뤫ɤĴ٤뤿˴Ķѿ GNUPLOT_DEFAULT_GDFONT 򻲾Ȥޤ

17.3 Postscript (ץ벽 postscript *.eps )

PostScript եȽϡץ󥿤ɽեȤԤޤ⤷ Υԥ塼˥եȤڤʤƤ⡢gnuplot PostScript ե롢ޤϥץ벽 PostScript (*.eps) եǤޤ gnuplot ñ˽ϥե˥եȤ̾Ȥǡץ ɽեȤ̾եȤ򸫤Ĥ뤫뤳Ȥꤷ ޤ

PostScript ץ󥿤ɽեȤϤ٤ơɸŪ Adobe եȥå Times-Roman, Helvetica, Courier, Symbol ΤäƤϤǤ ¿ʬ¾ˤ¿ΥեȤȤ褦ˤʤäƤȻפޤ ΥեȥåȤϤʤΥƥץ󥿤˰¸ޤ gnuplot ϡΤޤ󤷵ˤ⤷ޤgnuplot *.ps *.eps Ϥϡʤ׵ᤷե̾ñ˻äƤǤ

äơ

    set term postscript eps font "Times-Roman,12"

ϡ٤ƤΥץ󥿤ɽեȤŬڤʽϤޤ


    set term postscript eps font "Garamond-Premier-Pro-Italic"

ϡ PostScript ޤϥեޤüʥ Ȥ򻲾ȤޤΤǡΥץ󥿤ɽեȤ׵ᤷ ΥեȤɽǤʤǤ礦ξ̤ʥեȤѤ ޤ

ꤷեȤϥեǡɤʥץ󥿤 ⤽Ȥ褦ˤ뤳ȤǽǤˤϡʤΥƥŬ ʥեȵҥե뤬뤳ȤɬפȤʤޤˡǥեȤ 硢Υ饤󥹤ɬפȤʤեȥե⤢뤳Ȥ դƤܺ٤ˤĤƤϡʲ:postscript fontfile (106.47.2)

18 إפѸ (Glossary)

ΥɥΤϤäơѸ˴ؤΰݻͤƤ λߤϴˤƤޤ󡣤 gnuplot 򤫤ƿʲƤ褦ˡޥɤ䥭ɤ̾⤽Τ褦ʴ ӽ뤫Τ褦˺ѤƤ뤫ǤΥǤϡ ΥɤΤĤɤΤ褦˻ȤƤ뤫ޤ

"ڡ (page)""ɽ (screen)""Х (canvas)" ϡ gnuplot ǽΰΤؤޤǥȥåפǤϤϥ ɥΤؤץåǤϡλΡsvga ⡼ɤǤϡ ꡼Τؤޤ

ɽ̤ϡġޤϤʾ " (plot)" ޤߤޤ ϰĤβɸȰĤνĺɸޤ; (margin) ˽񤫤ʸ (text) Ʊ͡ϼºݤˤξɽƤ ɬפϤޤ

ϰĤ "" ޤߤޤդϰĤβɸȰĤν ɸޤϼºݤˤξɽƤɬפϤ

դϰĤޤϤʾ " (line)" ޤߤޤϰĤδ ޤϥǡǤѸ "line" 襹ȤƤȤޤ ˤѸ "ʸΰ (a line of text)" Τ褦˻Ȥ뤳 ⤢ޤ¿ʬʸ̮餽϶̤ǤǤ礦

ĤΥվʣζϤ줾̾ޤ̾ϡζ ɽ˻Ȥ襹ΥץȤȤ " (key)" ˰ ɽޤϡˤ "ɽ (legend)" ȤƤФޤ

Ѹ "ȥ (title)" gnuplot Ǥʣΰ̣ǻȤޤ ɥȤǤϤ̤뤿ˡƻȤ " (plot)" " (line)"" (key)" ƬˤĤ⤷ޤ 2 Υդ 4 ĤޤǤθФդ뼴ĤȤǤޤ 4 Ĥμ̾Ϥ줾졢βζ˱褦Ǥ "x" ζ˱褦 "y"ζ˱褦 "x2"ζ˱褦 "y2" ʤäƤޤʲ: axes (84.1)

3 Υդ 3 ĤޤǤθФդ뼴 (axes) "x","y","z" ĤȤǤޤɤμ˴ؤƤ⤽줬վǤɤ˽񤫤 뤫Ҥ٤뤳ȤϤǤޤ󡣤ϡset view ǥդ򸫤 ѹǤ뤫Ǥ

ǡե˴ؤǤϡѸ " (record)" 褷ե ΰԤʸ󡢤ʤʸʸƱΤδ֤ʸ󡢤ؤ Τ˻Ȥޤ" (point)" ϹԤФĤΥǡǤ"ǡ ֥å (datablock)" ϡԤǶڤ줿Ϣ³ʣιԤʤ νǤǡեε "line" Ȥϡ ϥǡ֥åʬؤޤ"ǡ֥å (datablock)" դϡ̾դ饤ǡ֥åǤȤƤޤʲ: datablocks (19)

(: ܸǤϤ˽񤫤Ƥ褦ѸϹθ ƤϤ餺äƺǽޤ̩ˤϸʸ Ȥ٤Ǥ礦)

19 饤ǡȥǡ֥å (inline data and datablocks)

gnuplot ΥޥϤ˥ǡȤߤ 2 Ѱդ ޤޤüե̾ '-' plot ޥͿȡ plot ޥɰʲ³Ԥ饤ǡȲᤵޤʲ:special-filenames (84.3.6)ˡ󶡤ǡϡ plot ޥ ǰ٤ѤǤޤ

⤦ĤϡҥɥȤȤ̾դΥǡ֥å ˡǤ̾դΥǡϻĤΤǡʣ plot ޥɤǻȤǤ ޤ:

    $Mydata << EOD
    11 22 33 first line of data
    44 55 66 second line of data
    # ǡեƱͥȤⵡǽ
    77 88 99
    EOD
    stats $Mydata using 1:3
    plot $Mydata using 1:3 with points, $Mydata using 1:2 with impulses

ǡ֥å̾ϡ¾ѿȶ̤뤿ˡǽʸ $ ˤɬ פޤǡνζڤ (Ǥ EOD) ϡǤդΥ ٥åȡʤʸǹޤ

ޥ undefine ȤС¸̾դǡ֥åǤ ޤundefine $* ϡ٤Ƥ̾դǡ֥å٤˺

20 ֤ (iteration)

Image figure_newsyntax
gnuplot С 4.6 ˤϡ֤ (iteration) ޥɤ֥å ¤򰷤 if/else/while/do ƳƤޤʲ: if (78),while (105), do (72)ñʷ֤ϡޥ plot, set ѤǤ ʲ: plot for (84.10)ʣΥޥɤޤŪʷ֤ϡ ǾҲ𤹤֥å¤Ѥ뤳ȤǹԤޤϢ뿷ǽ ΰʲ⻲: summation (16.3)ʲϡοʸǽ򤤤ĤѤǤ:
     set multiplot layout 2,2
     fourier(k, x) = sin(3./2*k)/k * 2./3*cos(k*x)
     do for [power = 0:3] {
         TERMS = 10**power
         set title sprintf("%g term Fourier series",TERMS)
         plot 0.5 + sum [k=1:TERMS] fourier(k,x) notitle
     }
     unset multiplot

21  (linetypes)

ŤǤ gnuplot ǤϡƽϷ " (linetype)" 򤢤Ѱդ ƤơϿ/Υѥ󡢤ޤϿ/ 礻ǰ㤤ɽƤޤο/Υѥϡ ۤƱΤˤʤȤݾڤϲ⤢ޤǤ¿Ʊ ////忧/ѤƤޤθŤưϡ set colorsequence classic Ǥޤgnuplot С 5 ΥǥեȤϡϷ̵ط˶̤ 8 Ѥޤ

(linetype) °¤ӤϡŪեΤ줫ˤ Ƥ˥ޥǽǤʲ: set linetype (95.38)ۥѥå ˽եΥץ뤬ĤѰդƤޤ

νϷФ°θߤξ֤ϡνϷꤷ Ȥ test ޥɤ¹Ԥ뤳ȤdzǧǤޤ

Ĥ襳ޥǤδؿǡեϢ³¤Ӥˤϡߤ ǥեȤ󤫤郎֤˳Ƥޤġδؿǡ ե롢ޤϤ¾ǤФϡ襳ޥɾ Ū°ꤹ뤳ȤǾ񤭤Ǥޤ

:


    plot "foo", "bar"                 #  1, 2  2 ե
    plot sin(x) linetype 4            # ￧ 4 

̤ˡλϡ̾RGB (֡С) ʬHSV (ꡢ ١) ʬߤ pm3d ѥåȤ˱äɸǹԤޤ

:


    plot sin(x) lt rgb "violet"       # gnuplot λĿ̾ΰ
    plot sin(x) lt rgb "#FF00FF"      # Ū 16  RGB 3 
    plot sin(x) lt palette cb -45     # ߤΥѥåȤ cbrange 
                                      # -45 б뿧
    plot sin(x) lt palette frac 0.3   # ѥåȤб뾮

ʲ: colorspec (21.1), show colornames (95.15), hsv (16.1), set palette (95.66),cbrange (95.138)ʲ⻲: monochrome (95.49)

(linetype) ˤϡ/ΥѥӤĤƤޤ ٤ƤνϷǤ줬Ȥ櫓ǤϤޤgnuplot С 5 ǤϡȤΩ/ѥǤޤʲ:dashtype (21.2)

21.1 (colorspec)

¿ΥޥɤǡŪʿλȤʤäꤹ뤳ȤǤ ޤ

:


     ... {linecolor | lc} {"colorname" | <colorspec> | <n>}
     ... {textcolor | tc} {<colorspec> | {linetype | lt} <n>}

< colorspec> ϰʲηΤ줫Ǥ:


     rgbcolor "colorname"    # : "blue"
     rgbcolor "0xRRGGBB"     # 16 ʿͤʸ
     rgbcolor "0xAARRGGBB"   # 16 ʿͤʸ
     rgbcolor "#RRGGBB"      # x11  16 ʿʸ
     rgbcolor "#AARRGGBB"    # x11  16 ʿʸ
     rgbcolor <integer val>  # AARRGGBB ɽ
     rgbcolor variable       # ϥե뤫ͤɤ߹
     palette frac <val>      # <val>  0  1 
     palette cb <value>      # <val>  cbrange ϰϤ
     palette z
     variable                # ϥե뤫鿧ֹɤ߹
     bgnd                    # طʿ
     black

< n> ϡ (linetype) ֹ椬Ȥ̣ޤʲ:test (100)

"colorname" gnuplot ˻äƤ뿧̾ΤΰĤꤷ ޤͭ̾ΰ˴ؤƤϡʲ: show colornames (95.15)

16 ϡդ "#RRGGBB" "0xRRGGBB" ηͿ뤳Ȥ ޤRRGGBB ϡ֡СĤʬ̣줾 00 FF ޤǤϰǤʤФޤ㤨Сޥ () ϡǤ뤤 + Ǥ뤤ġʤΤ "0xFF00FF" ɽ졢 16 ʿ (255 < < 16) + (0 < < 8) + (255) ̣Ƥޤ

"#AARRGGBB" ϡRGB ξ̥ӥåȤ˥ե (Ʃ) ĤƤ뤳 Ȥ̣ޤե 0 ϴƩǤ뤳Ȥ̣ "#00RRGGBB" "#RRGGBB" Ʊˤʤޤեͤ 255 (FF) ƩǤ뤳Ȥ̣ޤ: λˡΥեͤΰ ϡǤ gnuplot β⡼ "with rgbalpha" ˤξȿФˤʤäƤޤ

顼ѥåȤȤϡʸۤǡñοͤο˳餫 ŤޤˤΤ褦 2 ĤбդϤޤ palette frac 0 1 ޤǤξͤ򡢥顼ѥåȤϰϤ դΤǡpalette cb ϡϰϤƱ顼ѥåȤس ƤΤǤʲ: set cbrange (95.138), set colorbox (95.14)б դΤɤ餫ȤäơߤΥѥåȤӽФȤǤ

"palette z" ϡʬǤ z ͤ򡢥ѥåȤбŤ Ƥ cbrange ϰϤбŤޤˤꡢ3 ζ ˱äƿ餫Ѳ뤳ȤǤޤϡ2 ǡ åͤɲäǡɤ߹ޤƿդΤˤȤޤ ( Ƥ 2 襹뤬ɲǧ櫓ǤϤޤ) üʿ꤬ 2 Ĥޤطʿ bgnd ȡblack Ǥ

21.1.1 Background color

¿νϷǥդطʿŪǤޤ̤ (linetype) bgnd Ϥο褷ޤ bgnd ϿȤƤǧ ޤ :
    # ʲϥХΰʬطʿǾ񤭤뤳ȤǾõޤ
    set term wxt background rgb "gray75"
    set object 1 rectangle from x0,y0 to x1,y1 fillstyle solid fillcolor bgnd
    # ʲ x ˱äָʤޤ
    plot 0 lt bgnd

21.1.2 Linecolor variable

lc variable ϡϥǡΰĤ󤫤ɤͤ (linetype) ֹȤƻȤ°뿧Ȥ褦ץ˻ؼޤ äƤϡusing ҤбλɲäɬפȤޤʸ οƱͤˡtc variable ǻǤޤ

:

     # ǡ 3 ܤ򡢸ġ˿ƤΤ˻
     plot 'data' using 1:2:3 with points lc variable


     # ĤΥǡեˤʣΥǡ뤳Ȥǽǡ
     #  2 ԤζԤʬΥƤޤġΥǡˤ
     # index ͤƤƤ (ʲ: `index`)using 
     # column(-2) ǼǤޤʲ: `pseudocolumns`ʲ
     #  -2  column ͤȤäơġΥǡۤʤ
     # ޤ
     plot 'data' using 1:2:(column(-2)) with lines lc variable

21.1.3 Rgbcolor variable

դγƥǡʬޤϳƥ٥ˤ줾ۤʤ뿧 뤳ȤǤޤlc rgbcolor variable ϡǡեγƹԤ RGB ξɤ߹褦ץ˻ؼޤäƤϡ using ҤˤбλɲäɬפȤ 24-bit RGB 3 ȤǤȤߤʤޤͤǡե뤫ľ ͿϡϺǤñʷ 16 ͤͿޤ (ʲ:rgbcolor (21.1))ǡʲΤ褦 24-bit RGB Ȥɾ褦ʿ using Ҥ뤳ȤǤޤʸοƱͤˡ tc rgbcolor variable ǻǤޤ

:

     # 3 ǡ x,y,z ɸб֡СĤʬĿ
     # ΤĤ
     rgb(r,g,b) = 65536 * int(r) + 256 * int(g) + int(b)
     splot "data" using 1:2:3:(rgb($1,$2,$3)) with points lc rgb variable

21.2 / (dashtype)

gnuplot С 5 ǡlinecolor linewidth Ʊͤˡ/ ѥ (dashtype) ƶ°ȤΩޤΤ褦 ʡνϷ񤯤̤ʥ⡼ɤȤƻꤹɬפ ޤ󡣤ʤset term < termname> {solid| dashed} Τ褦ʥ ޥɤϸߤ̵뤵ޤС 4 Ѥ˽񤤤ŤץȤؤ ߴɬפʾϡʲΤ褦ʽѤǤޤ:


    if (GPVAL_VERSION >= 5.0) set for [i=1:9] linetype i dashtype i
    if (GPVAL_VERSION < 5.0) set termoption dashed

٤Ƥϡۤ˻ꤷʤСdashtype solid Ȥ° ޤΥǥեͤ򥳥ޥ set linetype ѹ θΥޥɤǻȤ褦ˤǤޤޤϡplot ¾Υޥ ΰʬȤƻѤ/ηǤޤ

:

     dashtype N          # Ѥ/ֹǸƤӽФ
     dashtype "pattern"  #  (.)  (-)  (_) ȶȤ߹
                         # ʸˤ
     dashtype (s1,e1,s2,e2,s3,e3,s4,e4)  # 1~4 Ĥ <Ĺ>,<Ĺ>
                         # Ȥˤ/ѥ

:

     # 2 Ĥδؿ 1 Ȥ dashtype Ƕ
     plot f1(x) with lines lt 1 dt solid, f2(x) with lines lt 1 dt 3

ĤνϷϡ줬󶡤Ѥ/ѥˡ桼 ѥɲä뤳Ȥ򥵥ݡȤƤޤ

:

    plot f(x) dt 3            # Ϸλĥѥ 3 
    plot f(x) dt ".. "        # Ūʥѥ
    plot f(x) dt (2,5,2,15)   # Ʊѥͤɽ
    set dashtype 11 (2,4,4,7) # ѥֹǸƤӽФ褦
    plot f(x) dt 11           # ѥȤä

/ѥʸǻꤷ硢gnuplot Ϥ < Ĺ> , < Ĺ> ȤѴޤɥå "." (2,5) ˡå "-" (10,10) ˡ "_" (20,10) ˡޤ " " ľ < Ĺ> ͤ 10 ɲäޤξ硢ޥ show dashtype ϡʸ Ѵοͤξɽޤ

21.3 Linestyles linetypes

linestyle ϡ° linecolor, linewidth, dashtype, pointtype ΰ ŪȤ߹碌ǡϥޥ set style line ޤ linestyle ȡ1 plot ޥɾǤȤäơ1 ġ Ϥ¿ǤθܤǤޤС linetype ³ΡȸȤǤǤ礦 linetypes ϱ³Ū (ŪˤޤǤݻ) Ǥ linestyles ϡΥեåξ֤ꥻåȤޤǤδ֤ ݻޤ

:


    # 饤󥹥򡢽Ϸ˰¸ʤ cyan 3
    #  6 (ݤ) 
    set style line 5 lt rgb "cyan" lw 3 pt 6
    plot sin(x) with linespoints ls 5          #  5 

22 쥤䡼 (layers)

gnuplot ΥդϡǤꤵ줿֤夲ƤȤǹ Ƥޤν֤ϡ behind, back, front äǤγؤƤ뤳ȤѹǤޤ㤨Сΰ طʿѹˤϡΤĤĹ° behind Ф 櫓Ǥ
    set object 1 rectangle from graph 0,0 to graph 1,1 fc rgb "gray" behind

ν֤ϰʲ̤Ǥ:
    behind
    back
    ռ
    դɽ (`key`)
    front

ƳǤϡǤϰʲν֤Ǥ:
    ֹΥ֥ (rectangle, circle, ellipse, polygon)
    ֹΥ٥ (label)
    ֹ (arrow)

1 ڡʣΥդ (multiplot ⡼)νϡʣ դΤȤŬѤΤǤϤʤǤ̡ŬѤޤ

23 ޥ (mouse input)

¿νϷǡߤ˥ޥȤäƺѤ򤹤뤳Ȥǽˤʤ ƤޤΤĤϥۥåȥ⥵ݡȤƤơޥ 뤬ͭ襦ɥˤȤˡ륭򲡤ȤǤ餫 ؿ¹Ԥ뤳ȤǤޤޥϤ batch ɥץȤȤ߹碌뤳Ȥǽǡ㤨 pause mouse Ȥơ θ˥ޥåˤäƥѥ᡼Ȥ֤äޥѿ θΥץưȿǤ뤳ȤǤޤʲ: bind (23.1),mouse variables (23.2)ޤʲ⻲: set mouse (95.50)

23.1 Bind

:
     bind {allwindows} [<key-sequence>] ["<gnuplot commands>"]
     bind <key-sequence> ""
     reset bind

bind ϡۥåȥ˻ѤޤۥåȥȤϡ 뤬ɥ饤ФΥɥˤȤˡ륭ޤʣΥ 򲡤Ȥǡgnuplot Υޥ¹Ԥ뵡ǽΤȤޤ bind ϡgnuplot mouse 򥵥ݡȤ褦˥ѥ뤵Ƥ ĥޥͭʽϷǻȤƤˤΤͭǤ뤳Ȥ Ƥ桼Υ (binding) ϡȤ߹ (builtin) ֤ޤ< space> 'q' ̾ϺϤǤޤ󡣤 ͣ㳰ˤĤƤϡʲ: bind space (23.1.1)

ޥܥϡܥ 1 Τߡ2 ѤˤΤǽǤ

ۥåȥΰˤ show bind, ޤ bind ȥפ뤫 եɥǥۥåȥ 'h' ϤƤ

ϡreset bind ǥǥեȤξ֤Ǥޤ

ޤʣΥϰǰϤɬפ뤳ȤդƤ

ɸǤϥۥåȥϸߤ襦ɥϥ뤬Τ ǧޤbind allwindows < key> ... (bind all < key> ... Ⱦά ) ϡ< key> γ򡢤줬ߤͭʤΤݤ˴ؤ餺٤ gnuplot 襦ɥDzǽˤޤξ硢gnuplot ѿ MOUSE_KEY_WINDOW ˤ줬Ԥʤ줿ɥ ID ¸ΤǤ 򥭡˳ƤޥɤǻѤ뤳ȤǤޤ

:

- :


   bind a "replot"
   bind "ctrl-a" "plot x*x"
   bind "ctrl-alt-a" 'print "great"'
   bind Home "set view 60,30; replot"
   bind all Home 'print "This is window ",MOUSE_KEY_WINDOW'

- ɽ:

   bind "ctrl-a"          # ctrl-a Ф륭ɽ
   bind                   # ƤΥɽ
   show bind              # ƤΥɽ

- :

   bind "ctrl-alt-a" ""   # ctrl-alt-a Υ
                            (Ȥ߹ߥϺޤ)
   reset bind             # ǥե (Ȥ߹) ΥƳ

- ȥ륹å˥:

 v=0
 bind "ctrl-r" "v=v+1;if(v%2)set term x11 noraise; else set term x11 raise"

(ctrl / alt) ʸʸζ̤Ϥޤ󤬡Ϥ Ϥޤ:

   ctrl-alt-a == CtRl-alT-a
   ctrl-alt-a != ctrl-alt-A

(alt == meta) ΰ:

   ctrl, alt

ݡȤƤü쥭ΰ:


  "BackSpace", "Tab", "Linefeed", "Clear", "Return", "Pause", "Scroll_Lock",
  "Sys_Req", "Escape", "Delete", "Home", "Left", "Up", "Right", "Down",
  "PageUp", "PageDown", "End", "Begin",


  "KP_Space", "KP_Tab", "KP_Enter", "KP_F1", "KP_F2", "KP_F3", "KP_F4",
  "KP_Home", "KP_Left", "KP_Up", "KP_Right", "KP_Down", "KP_PageUp",
  "KP_PageDown", "KP_End", "KP_Begin", "KP_Insert", "KP_Delete", "KP_Equal",
  "KP_Multiply", "KP_Add", "KP_Separator", "KP_Subtract", "KP_Decimal",
  "KP_Divide",


  "KP_1" - "KP_9", "F1" - "F12"

ʲϡºݤΥǤϤʤɥ˴ؤ륤٥ȤǤ:


  "Button1" "Close"

ʲ⻲: mouse (95.50)

23.1.1 Bind space

gnuplot configure ˥ץ -enable-rase-console Ĥƥ 󥹥ȡ뤵줿ϡ襦ɥ < space> 򥿥פ gnuplot Υޥɥɥ̤˽ФޤΥۥåȥϡ 'gnuplot -ctrlq' Τ褦ˤ gnuplot ư뤫ޤ X ꥽ 'gnuplot*ctrlq' ꤹ뤳Ȥ ctrl-space ѹǤޤ ʲ: x11 command-line-options (106.66.2)

23.2 ޥѤѿ (Mouse variables)

mousing (ޥǽ) ͭʾ硢ߤΥɥǤΥޥ åˤä gnuplot Υޥɥ饤ǻȤȤǤ뿧ʥ桼 ѿꤵޤåΥޥκɸѿ MOUSE_X, MOUSE_Y, MOUSE_X2, MOUSE_Y2 ޤå줿ܥ䡢ΤȤ ᥿ξ֤ MOUSE_BUTTON, MOUSE_SHIFT, MOUSE_ALT, MOUSE_CTRL ޤѿǤդγϻˤ̤ǡͭ襦 ɥǤΥޥå٥Ȥˤäƽޤͭ 襦ɥǥޥ˥å줿ɤ򥹥ץȤĴ ٤ˤϡѿΤΤɤ줫ĤƤ뤫ɤ åнʬǤ


     plot 'something'
     pause mouse
     if (exists("MOUSE_BUTTON")) call 'something_else'; \
     else print "No mouse click."

襦ɥǤΰϢΥϤפ뤳Ȥ⡢ޥɤȤ ȤDzǽȤʤޤ


     plot 'something'
     pause mouse keypress
     print "Keystroke ", MOUSE_KEY, " at ", MOUSE_X, " ", MOUSE_Y

pause mouse keypress Ϥǽλ MOUSE_KEY ˤϲ 줿 ASCII ɤ¸ޤMOUSE_CHAR ˤϤʸȤʸ ͤȤ¸ޤpause ޥɤ (㤨 ctrl-C 襦 ɥĤʤɤ) ۾ェλ MOUSE_KEY -1 ˤʤޤ

ޥˤθοϰϤϡGPVAL_X_MIN, GPVAL_X_MAX, GPVAL_Y_MIN, GPVAL_Y_MAX ǻȤǤ뤳ȤդƤ ʲ: gnuplot-defined variables (16.4)

24 α (Persist)

gnuplot ¿νϷ (aqua, pm, qt, x11, windows, wxt, ...) ꡼˥դ򤽤ɽѤΥɥ̤˳ޤ ץ persist ϡ礿ץबλȤˤ⡢Υ ɥĤ褦 gnuplot ˻ؼޤ ϡ÷ϷϤǤϲ⤷ޤ 㤨СʲΥޥɤ¹Ԥ


    gnuplot -persist -e 'plot [-5:5] sinh(x)'

gnuplot ϡɽɥ򳫤˥դƽλ ɽɥϥդ򤽤˻äޤޥ꡼˻ĤޤϷ ˤäƤϡλĤäɥǤ¿Υޥǽʾ ޤդκ׵᤹륺 (Ȥε) Τ褦 ϡ˥ץबλƤΤǰŪˤ̵Ǥ

ϷꤹȤˤ persist nopersist Ǥ :


    set term qt persist size 700,500

25 (Plotting)

gnuplot ˤϥդ褹 4 ĤΥޥ plot, splot, replot, refresh ޤ¾ΥޥɤϡǽŪ˥վ Ǥ䡢쥤ȡԤޤ plot 2 դޤsplot 3 ( ºݤˤϤ 2 ̤ؤμͱ) ޤreplot ϡľ plot splot ޥɤƼ¹Ԥޤrefresh ϡreplot ȻƤޤ ϥǡեϥȥ꡼फɤ߹ߤˡ ¸ǡƻѤޤ

4 ĤΥޥɤΤΰĤ¹ԤϡƤ ٥롢ȥ롢Ӹ plot ޥɤǻꤵ줿ޤޤʴ ǡΤ٤ƤޤϤΥ꡼褹뤫ϥڡ ޤ⤷ĤΥڡʣΥդ٤礦褦¤٤ Ϥ硢㤨ʣοޤΥѥͥꡢ礭ʥդ ʥդꤷϡޥ set multiplot 襳ޥɤǿڡΤƤ

˴ؤŪʾȾϡplot ˴ؤǸĤޤ3 ˸ͭξ splot ιˤޤ

plot xy ľɸϤȶ˺ɸϤȤޤʲ: set polar (95.69) splot xyz ľɸȤޤ3 ˺ɸɸǡ ϤǤޤʲ: set mapping (95.45) plot Ǥϡ4 Ĥζ x (), x2 (), y (), y2 () 򤽤줾 ΩʼȤưȤǤޤץ axes ǡͿ줿ؿ ǡɤμΥڥɽ뤫٤ޤޤƼν̼ܤ丫 ФŤ椹뤿˽ʬ亴Ȥʤ set ޥɷ¸ ޤĤΥޥɤϡset xlabel Τ褦˼̾򤽤 äƤޤʳΤΤ set logscale xy Τ褦ˡ1 ġޤʣμ̾򥪥ץȤƤȤޤz 椹륪ץ 䥳ޥɤ 2 դˤϸϤޤ

splot ϡ˲äƶ̤񤯤ȤǤޤ3 δ γʻ˴ؤˤĤƤϡʲ: set isosamples (95.34)3 ǡΥեɬפʷ֤ˤĤƤϡʲ: splot datafile (97.1) ˴ؤˤĤƤϡʲ: set contour (95.16), set cntrlabel (95.12),set cntrparam (95.13)

splot Ǥν̼ܤ丫Фդϡz ˤͭǤ뤳ȡ x2 y2 Υ٥դ set view map Ȥäƺ뵿Ū 2 ˤΤ߲ǽǤ뤳Ȥ plot ƱǤ

26 (Startup (initialization))

ưˡgnuplot ϤޤƥѤνե gnuplotrc õ ޤΥե֤ gnuplot Υ󥹥ȡ˷ꤵ졢 show loadpath Τ뤳ȤǤޤ˥桼Υۡǥ쥯ȥ ˸ĿѤեõޤΥե Unix ϤΥƥǤ .gnuplot Ǥꡢ¾νϤǤ GNUPLOT.INI ȤʤäƤޤ (OS/2 ǤϡĶѿ GNUPLOT ꤵƤ̾Υǥ쥯ȥ õޤ; Windows ǤϡAPPDATA Ѥޤ): 󥹥 gnuplot ǽ˥ȥǥ쥯ȥõ褦Ǥ ƥʤΤǤϿ侩ޤ

27 ʸʸѿ (Strings)

ʸ˲äơۤȤɤ gnuplot ޥɤʸѿʸ ޤʸ֤ؿդޤ㤨Сʲ 4 Ĥ plot ΤϷ̤ȤƱ西ȥޤ:


     four = "4"
     graph4 = "Title for plot #4"
     graph(n) = sprintf("Title for plot #%d",n)


     plot 'data.4' title "Title for plot #4"
     plot 'data.4' title graph4
     plot 'data.4' title "Title for plot #".four
     plot 'data.4' title graph(4)

ϡ줬ʸ黻ҤˤäƺѤ줿ϡʸѴ ޤΤǡʲƱͤưޤ:


     N = 4
     plot 'data.'.N title "Title for plot #".N

̤ˡޥɥ饤γǤϡ餬ɸŪ gnuplot ؤ̿ʸ ˡΰʬǧΰʳϡͭʸѿȤƤɾΤߤԤʤޤäơʲΥޥϡ餯Ϻʤ褦򤱤٤ǤʸˡŪˤϴְäƤϤޤ:


     plot = "my_datafile.dat"
     title = "My Title"
     plot plot title title

3 Ĥ黻Ҥʸ˺Ѥޤ: ʸη黻 ".", ʸ 黻 "eq", ʸ黻 "ne" ǤʲǤ TRUE ɽޤ


    if ("A"."B" eq "AB") print "TRUE"

ʲ⻲: 2 Ĥʸ񼰴ؿ gprintf (95.27.1), sprintf (16.1)

ǤդʸʸѿʸʹؿˡϰϻҤĤ뤳Ȥˤ ʬʸǤޤϰϻҤ [begin:end] ηǡbegin ʬʸƬ֡end ϺǸΰ֤Ǥֻϡǽʸ 1 ܤȸޤƬΰ֡Ǹΰ֤϶뤤 '*' Ǥ⹽ޤ ξ硢ϸʸΤƬ뤤ϺṆ̀ޤ㤨С str[:] str[*:*] Ϥɤ str ʸΤ̣ޤ

28 ִȥޥɥ饤ޥ (Substitution)

gnuplot ؤ̿ʸ󤬺ǽɤ߹ޤ줿ʤޤ줬 졢⤷ϼ¹Ԥʳǡ2 Ĥηñִ¹Ԥ ϵհ () (ASCII ֹ 96) ǰϤޤƤ뤫ޤ @ (ASCII ֹ 64) ƬˤĤʸФƹԤʤޤ

28.1 հˤ륷ƥॳޥɤִ (Substitution backquotes)

륳ޥɤհ () ǰϤळȤˤäƥޥִԤ ǤޤΥޥɤϻҥץǼ¹Ԥ졢νϷ̤ǥޥ 饤εհǰϤޤ줿ޥɤ֤ޤϤˤäƤϥѥ פݡȤƤ⤢ޤʲ:plot datafile special-filenames (84.3.6)

ޥִϡñʸʳϡgnuplot Υޥɥ饤桢ɤǤǤѲǽǤ

:

ʲϡleastsq Ȥץ¹ԤνϷ̤ǡleastsq (ޤΰ䤳ߤ) ֤ޤ:

     f(x) = `leastsq`

VMS Ǥϡ

     f(x) = `run leastsq`

ʲϸߤդȥ桼̾Υ٥ޤ:

     set label "generated on `date +%Y-%m-%d` by `whoami`" at 1,1
     set timestamp "generated on %Y-%m-%d by `whoami`"

28.2 ʸѿΥޥִ (Substitution macros)

ʸ @ ϡޥɥ饤ǤʸѿͤؤִԤʤΤ˻ ޤʸѿͤȤƤʸϡʣñ줫ʤ뤳ȤǽǤ ˤʸѿ򥳥ޥɥ饤ޥȤƻȤȤǽˤʤ εǽˤŸǤΤʸΤߤǡʸͤ˼ ȤȤϤǤޤ :


     style1 = "lines lt 4 lw 2"
     style2 = "points lt 3 pt 5 ps 2"
     range1 = "using 1:3"
     range2 = "using 1:5"
     plot "foo" @range1 with @style1, "bar" @range2 with @style2

@ ޤԤϡϻŸ졢줬ºݤ˼¹Ԥ ˤϼΤ褦ǤƱȤˤʤޤ


     plot "foo" using 1:3 with lines lt 4 lw 2, \
          "bar" using 1:5 with points lt 3 pt 5 ps 2

ؿ exists() ϥޥɾ˴ؤͭѤǤ礦ʲϡC ˥桼ѿ̾ŸǤ뤫ɤåޤ


     C = "pi"
     if (exists(C)) print C," = ", @C

ޥŸϡñ⡢ޤŰǤϹԤʤޤ󤬡 հ () ǤϥޥŸޤ

ޥŸϡgnuplot ޥɹԤ򸫤Ȥᤤʳ gnuplot Ƥ٤Ԥޤäơ


    A = "c=1"
    @A

Τ褦ʥɤ¹ԤޤʲΤ褦ʹԤϤǤϡ ޥƱԤˤ뤿Ÿ˴֤˹ʤǤ


    A = "c=1"; @A   # will not expand to c=1

ޥɤƼ¹Ԥˤϡޥ evaluate ͭѤǤ礦

28.3 ʸѿޥޥɥ饤ִ (mixing_macros_backquotes)

ʸѿհ () ˤִޥˤִߴطϾ 䤳Ǥհϥޥִ˸ʤΤǡ


     filename = "mydata.inp"
     lines = ` wc --lines @filename | sed "s/ .*//" `

ϡmydata.ipn ιԿѿ lines ¸뤳Ȥˤʤޤޤ Űϵհִ˸ʤΤǡ


     mycomputer = "`uname -n`"

ϡƥॳޥ uname -n ֤ʸʸѿ mycomputer ¸뤳Ȥˤʤޤ

ޥִŰǤϵǽʤΤǡƥॳޥɤ ޥȤƤޥȤѤĵհִԤʤ ȤϤǤǤޤ


      machine_id = "uname -n"
      mycomputer = "`@machine_id`"  # ޤʤ !

μԤϡŰ䤬 @machine_id ޥȤƲ᤹뤳Ȥ˸ Ƥ뤫ǤƥॳޥɤޥȤ¸θ夽¹ ˤϡհ伫Τޥ˴ޤɬפޤϰʲΤ褦˥ޥ뤳ȤǼ¸Ǥޤsprintf ν񼰤ˤ 3 ΰ ƤҤˤʤäƤ뤳ȤդƤ


     machine_id = sprintf('"`uname -n`"')
     mycomputer = @machine_id

29 ڤ䥫åλȤ (Syntax)

ꥹȤɸ (,) ڤǤΤФץ䤽ȼ ѥ᡼ϥڡ ( ) ڤǤϰϤϥ (:) ǶڤäƤ ä ([]) Ǥޤʸե̾ϰǤꡢ¾ˤ Ĥå (()) ǤΤޤ

ޤϰʲζڤǻѤޤset ޥɤ arrow, key, label κɸ; ƤϤ (fit) ѿΥꥹ (ޥ fit Υ  via ³ꥹ); ޥ set cntrparam ǻꤵ ӤȤӤͤ䤽Υ롼ץѥ᡼Υꥹ; set ޥɤ dgrid3d dummy, isosamples, offsets, origin, samples, size, time, view ΰ; ΰ֤䤽Υ롼ץѥ᡼Υ ; ȥ伴θФΰ; plot, replot, splot ޥɤ x,y,z ɸη׻˻Ȥ޲ѿؿΥꥹ; plot, replot, splot ޥɤʣ (ǡޤϴؿ) Τ줾ΰϢΥ ɤΥꥹȡ

() åϡθФ (롼ץѥ᡼ǤϤʤ) Ū˽ ͿζڤȤơޤ fit, plot, replot, splot ޥɤ using ե륿Ǥη׻ؼ뤿˻Ȥޤ

(å䥳ޤ̾δؿɽǤȤޤ)

äϡset, plot, splot ޥɤǤϰϤڤΤ˻Ȥ ޤ

range (ϰ) (set, plot, splot ޥɤǻȤ ) ξüͤڤΤˡޤ plot, replot, splot, fit ޥɤ using ե륿γƥȥڤΤ˻Ȥޤ

ߥ (;) ϡԤΥޥɹͿʣΥޥɤ Τ˻Ȥޤ

楫å ({}) ϡĥʸ⡼ (enhanced text mode) εҤ䡢 if/then/else ʸΥ֥åζڤȤƻȤޤޤʣǿ ҤΤˤȤޤ: {3,2} = 3 + 2i Ȥʤޤ

EEPIC, Imagen, Uniplex, LaTeX, TPIC γƽϷǤϡñ \ \ ޤŰ \ \ \ \ DzԤ򼨤ȤǽǤ

29.1 (Quotes)

gnuplot ϡʸڤΤˡŰ (ASCII 34 )ñ (ASCII 39 )ӵհ () (ASCII 96 ) 3 ΰȤޤ

ե̾ñ䡢뤤ŰǰϤߤޤΥޥ˥奢 Ǥϰ̤˥ޥɤ㼨Ǥϡ狼䤹뤿˥ե̾ñ Ǥꡢ¾ʸŰǤޤ

Ф (label)ȥ (title)ޤϤ¾ǤǻѤʸ ʣʸñ䡢뤤ŰǰϤߤޤ ǰϤޤ줿ʸΤʤη̤ϡɤΰ䵭֤ˤ äѤޤ

\ n () \ 345 (8 ɽʸ) Τ褦ʥХåå ( \ ) ˤüʸɽϡ2 ŰʸǤϸϤޤñ ǤϡХåå弫Τ̾ʸȸʤޤñ ʸñ伫 (ASCII 39 ) ȤˤϡŤ ƽɬפޤĤޤꡢʸ "d \ " s' b \ \ " ȡ'd" s'' b \ ' ϴ ƱΤȤʤޤ

1 Ĥʣʸ˴ؤ·ϳƹԤƱƯޤäơ ·줿ʸ

     "This is the first line of text.\nThis is the second line."

ϼΤ褦ɽޤ:
                      This is the first line of text.
                         This is the second line.


     'This is the first line of text.\nThis is the second line.'

ȼΤ褦ˤʤޤ
         This is the first line of text.\nThis is the second line.

ĥʸ (enhanced text processing) ŰФƤñ ФƤⵡǽޤΥ⡼ɤ򥵥ݡȤƤϷ ǤΤƯޤʲ: enhanced text (14)

հ,ޥɥ饤ִΤ˥ƥॳޥɤϤΤ˻ ޤʲ: substitution (28)

30 /եǡ (Time/Date)

gnuplot ϥǡȤƻ/վλѤ򥵥ݡȤƤޤ εǽ set xdata time, set ydata time ʤɤΥޥɤˤäͭ ˤʤޤ

ǤƤλ/դ 1970 ǯÿѴޤޥ set timefmt ƤϤФǥեȤν񼰤ޤǡ ե롢ϰϡθФ٥ΰ֤ȡǡͤ 뤹٤ƤΤΤؤϤν񼰤ǥեȤǤˤʤޤ ϰĤΥǥեϽ񼰤ΤߤͭǤäơե x y ξ/եǡǤϡǥեȤǤϤƱ񼰤Ȳ ᤵޤΥǥեȤϡusing Ǵؿ timecolumn ѤơбΥե󤫤ǡɤߤळȤˤ ꡢѤ뤳ȤǽǤ

ÿ (ÿ) ѴϹɸ (UT; ˥åɸ (GMT) Ʊ ) Ȥޤƹɸƻ֤ؤѴεǽϲ碌Ƥ ޤ󡣤⤷ǡ٤ƱɸӤ˽äƤʤ (Ƥ ƻ֤ǤʤΤɤ餫ˤΤ߽ʤ) ˴ؤƲ⿴ ۤ뤳ȤϤޤ󡣤ʤѤ륢ץꥱ Ūʻ̩˹ͻʤФʤϡʤȤ UT Ѵ ٤Ǥ礦

show xrange Τ褦ʥޥɤϡͤ timefmt ˽äƲ ľޤtimefmt ѹƤ⤦ show Ǥͤɽȡ Ͽ timefmt ˽äɽޤΤᡢ(set xdata ɤˤ) μФǡꥻåȤȡͤͤȤ ɽ뤳Ȥˤʤޤ

ޥ set format ޤ set tics format ϡꤵ줿Ф Ϥ/դǤʤ˴ؤ餺θФ˻Ȥ񼰤 ޤ

/վ󤬥ե뤫褵硢plot, splot ޥɤ using ץɬ׻Ȥɬפޤplot, splot ϳƹԤΥǡʬΥ˥ڡȤޤ/եǡϤ ˥ڡޤ뤫Ǥ⤷ֶڤѤƤΤʤ顢 ΥƥबɤΤ뤿˲٤ƥȤɬפ Ǥ礦

ؿ time ϡߤΥƥΤ˻Ȥޤͤϡ strftime ؿʸѴǤޤtimecolumn Ȥ߹碌 ŪդΤˤȤޤηϤ줬֤ ꤷޤξ time() ϸߤλ 1970 ǯ 1 1 Ȥ֤¿ (ޤʣǿ) ʤƱͤͤ¿ Ȥ֤ޤ (ðʲ) ʬ٤ϡڥ졼ƥ󥰥ƥ ˰¸ޤʸʤСʸǤȤߤʤ񼰲줿ʸ󶡤褦 strftime Ϥޤ

ϻ/եǡǤ

ե "data" ϰʲΤ褦ʹԤʤȤޤ:


     03/21/95 10:00  6.02e23

ΥեϰʲΤ褦ˤɽޤ:


     set xdata time
     set timefmt "%m/%d/%y"
     set xrange ["03/21/95":"03/22/95"]
     set format x "%m/%d"
     set timefmt "%m/%d/%y %H:%M"
     plot "data" using 1:3

ǡx θФ "03/21" Τ褦ɽޤ

ߤ gnuplot ϡߥ٤פΥեޥåȤ⤽ ȼäѹƤޤ : ߤλߥ٤ɽ

    print strftime("%H:%M:%.3S %d-%b-%Y",time(0.0))
    18:15:04.253 16-Apr-2011

ʲ: time_specifiers (95.27.3)


2 襹 (plotting styles)

gnuplot Ǥϡ襹뤬ѤǤޤ ϡե٥åȽ˰ʲ˾Ҳ𤵤Ƥޤ ޥ set style data set style function ϡʹߤplot splot ޥɤФƥǥեȤ襹ѹޤ

襹ϡޥ plot splot ΰʬȤơŪ˥ ץꤹ뤳ȤǤޤĤǡʣ襹 Ȥ߹碌ϡǤФ襹ꤹɬפ

:


    plot 'data' with boxes, sin(x) with lines

襹ϡ켫Τǡե뤫ΤĤΥǡ Ԥޤ㤨СǥեȤǤ lines ϡy ͤ 1 Υǡ (x ͤϰۤ˽֤˼)ޤϺǽ餬 x, y 2 ĤԤƤޤեβΥǡǡȲᤵ 뤦ޤˡ˴ؤˤĤƤϡʲ: using (84.3.8)

31 Boxerrorbars

boxerrorbars 2 ΥǡǤΤѲǽǤ ϡ3 󡢤ޤ 4 󡢤ޤ 5 ΥǡɬפǤɲ (4,5,6 ) ȡϳƥǡ variable color (ʲ: linecolor (21.1), rgbcolor variable (21.1.3)) ȤƻȤޤϡȢ ζƱ褵ޤ


    3 :  x  y  ydelta
    4 :  x  y  ydelta xdelta        # Ȣ != -2
    4 :  x  y  ylow  yhigh          # Ȣ == -2
    5 :  x  y  ylow  yhigh  xdelta

Image figure_boxerrorbars
y θ "ydelta" ηͿơȢβ餫 -2.0 ꤵ (set boxwidth -2.0) ʤСȢβ 4 ܤͤͿ ޤy θ "ylow yhigh" ηͿȢβ 5 ܤͤͿޤ̤ʾȤơ"ylow yhigh" θ 4 ΥǡФ boxwidth = -2.0 Ȥ꤬ޤξȢ βϡܤȢˤäĤ褦˼ưŪ˷׻ޤ3 Υǡ ξ⡢ϼưŪ˷׻ޤ

Ȣι⤵ϡyerrorbars Ʊͤ y θͤꤵޤ y-ydelta y+ydelta ޤǡ뤤 ylow yhigh ޤǡϲ ΥǡͿƤ뤫ˤäƷޤޤ

32 Boxes

boxes 2 ǤΤѲǽǤͿ줿 x ɸ濴Ȥx (դζ顢ǤϤޤ) Ϳ줿 y ɸޤǤȢ񤭤ޤϴŪˡ2 󡢤ޤ 3 Υǡ Ѥޤ;ʬϡvariable Ԥɤ٤ξ󶡤줿 ΤȤƻѤޤ (ʲ: rgbcolor variable (21.1.3))


    2 :  x  y
    3 :  x  y  x_width

Image figure_boxes
Ȣ 3 ĤΤĤˡǷꤵޤϥǡ 3 ܤΥǡ äƤϡ줬Ȣ˥åȤޤǤʤ set boxwidth ޥɤȢåȤƤϡ줬Ȥ ޤΤɤǤʤ硢ȢϡܤȢäĤ褦˼ư Ū˷׻ޤ

ȢȤϸߤɤĤ֤ (fillstyle) ˽äɤĤ֤ ܺ٤ϡʲ: set style fill (95.78.4)ɤĤ֤ plot ޥɾǻꤹ뤳ȤǤޤ ɤĤ֤뤬 empty ξϡȢɤĤ֤ޤ ɤĤ֤뤬 solid ξϡȢϸߤ迧ǥ٥ɤꤵ ޤfillstyle ѥ᡼ɲä뤳ȤɤĤ֤̩٤Ǥ 0 طʿ1 迧ΤΤˤʤޤ ɤĤ֤뤬 pattern ξϡȢϸߤ迧ǡѥ ɤĤ֤ޤ

:

ǡեɤĤ֤Ȣ褷ȢƱΤ򾯤ľ˥ڡ ():


     set boxwidth 0.9 relative
     set style fill solid 1.0
     plot 'file.dat' with boxes

ѥǤɤĤ֤Ȣ sin cos Υդ:


     set style fill pattern
     plot sin(x) with boxes, cos(x) with boxes

sin ϥѥ 0 ǡcos ϥѥ 1 褵ޤɲä ϥɥ饤ФݡȤѥ۴Ū˻Ѥޤ

줾ΥǡŪɤĤ֤:


    plot 'file1' with boxes fs solid 0.25, \
         'file2' with boxes fs solid 0.50, \
         'file3' with boxes fs solid 0.75, \
         'file4' with boxes fill pattern 1, \
         'file5' with boxes fill empty

33 Boxplot

Image figure_boxplot
boxplot ϡͤŪʬۤɽŪˡǤʬ̶ϡ 1/4 ʬ̶ʲͤĤ褦ˡ1/2 ʬ̶(᥸) ʲͤĤ褦ˡȷꤵޤʬ̤軰 ʬ̤δ֤ΰϤ褦Ȣ褷᥸ͤΤȤˤϿʿ ޤȢҤϡȢ桼³ޤDZĹޤθ³ ˤϡҤȤĤҤȤ褵ޤ

:


   # x ɸ 1.0y  5 ܤͤΤȤ boxplot 
   plot 'data' using (1.0):5


   # Ʊϰϳϱboxplot  0.3 ˤ
   set style boxplot nooutliers
   plot 'data' using (1.0):5:(0.3)

ǥեȤǤϡusing ˤ 2 ܤ y Τ٤ƤͤФ boxplot 1 Ĥޤɲä (4 ܤ) ꤹ ȡͤ򤢤ѿΥŪʥ٥ͤǤȸʤΥ ͤΥ٥ͤο boxplot 褷ޤ boxplot δֳ ϥǥեȤǤ 1.0 Ǥ set style boxplot separation ѹǤޤǥեȤǤϡѿͤϡ boxplot β (ޤ ) Υ٥ɽޤ


   # 'data'  2 ܤ "control"  "treatment" Τ줫ʸ
   # ʲϡΰ 2 Ĥ boxplot 
   plot 'data' using (1.0):5:(0):2

ȢΥǥեȤ set boxwidth < width> Ǥޤplot ޥɤ using ˤ 3 ܤΥץǤǤޤ1 3 ܤ (x ɸ) ̾ǡǤϤʤȤͿޤ

ǥեȤǤϡȢҤȢü顢y ͤʬϰϤ 1.5 ܤ ޤäƤƺǤΥƤ褦ޤDZĹޤǥեȤǤϡ ϳ (outlier) ϱ (pointtype 7) ޤȢҤü set bars ޤ set errorbars ȤäǤޤ

ΥǥեȤ set style boxplot ޥɤѹǤޤ ʲ: set style boxplot (95.78.2), bars (95.24), boxwidth (95.7), fillstyle (95.78.4),candlesticks (35)

34 Boxxyerror

Image figure_boxxyerror
boxxyerror 襹 2 ΥǡǤΤѲǽǤ ϡxyerrorbars 뤬ʬθ򺹤ɽȤĹɽ 뤳ȤСۤƱǤϡϥǡ 4 󡢤ޤ 6 Ѥޤ;ʬϡvariable Ԥɤ٤ξ󶡤줿 ΤȤƻѤޤ (ʲ: rgbcolor variable (21.1.3))


    4 :  x  y  xdelta  ydelta
    6 :  x  y  xlow  xhigh  ylow  yhigh

Ȣȹ⤵ xyerrorbars Ʊ x, y θꤵޤ Ĥޤꡢxlow xhigh ޤǤ ylow yhigh ޤǡޤ x-xdelta x+xdelta ޤǤ y-ydelta y+ydelta ޤǡϲΥǡ ͿƤ뤫ˤäƷޤޤ

6 ηΥޥɤϡǤդ x, y Ĺ񤯴ñˡ ޤ

ɲ (5,7 ) ȡϳƥǡ variable color (ʲ: linecolor (21.1), rgbcolor variable (21.1.3)) ǤȤƻȤ

ȢϸߤɤĤ֤ (fillstyle) ˽äɤޤ ٤ϡʲ: set style fill (95.78.4), boxes (32)plot ޥɾǿɤ Ĥ֤ꤹ뤳ȤǤޤ

35 Candlesticks

Image figure_candlesticks
candlesticks ϡͻǡ 2 Υǡ衢 ǡΤҤդդΤ˻Ȥޤ ϡʿˤ x 濴Ȥľˤϳ (open) Ƚ (close) 򶭳ȤĹȤޤơ x ɸΤȤ ĹΤƤäڤ󤫤ǹ (high) ޤǤȡĹ줫ǰ (low) ޤǤοľޤοľϺǹͤȺǰͤؤäƤ ѹޤ

Ū 5 ΥǡɬפǤ:


     ͻǡ:   date  open  low  high  close
     ȢҤ:   x  box_min  whisker_min  whisker_high  box_high

Ĺϥޥ set boxwidth Ǥޤ gnuplotؤθߴȤơboxwidth ѥ᡼ꤵƤʤset errorbars < width> 椵褦ˤʤäƤޤ

ˡȢҤ (box-and-whisker) Υ롼ײ˴ؤŪ λɲä 6 ܤΥǡǻǤޤϡx ɸƱ ñ̤ͿʤФޤ

ɲ (6 ܡޤ 6 ܤǡȤƻȤ 7 ) ȡϳƥǡ variable color (ʲ:linecolor (21.1), rgbcolor variable (21.1.3)) ȤƻȤޤ

ǥեȤǤϡľʬΤƤäڤˤϿľ˸ʿϰ 󡣤硢㤨ŵŪȢҤ (box-and-whisker plot) ǤλѤǤ襳ޥɤ˥ whiskerbars ɲä ƤǥեȤǤϡʿȢ (candlestick) οʿդ˰ ޤΤФꤹ뤳ȤѹǤޤ

ͻǡ̾δǤϡ() < () ξĹ϶ǡ () < () ξɤ٤ޤߤ fillstyle "empty" 򥻥åȤƤϡºݤˤʤޤʲ: fillstyle (95.78.4) fillstyle ɤ٤ޤϥѥ򥻥åȤƤϡ͡ ͤ˴طʤ٤ƤȢˤ줬Ȥޤʲ: set errorbars (95.24),financebars (40)ޤʲ⻲ȤƤ

candlestick

finance

Υǥ⡣

: ͤɽεʤɤɲä硢ʲΤ褦ˡҤդդ¾襳ޥɤɲäɬפޤ:


 # ǡ:  X 'Ǿ' '1/4 ̤' '' '3/4 ̤' ''
 set errorbars 4.0
 set style fill empty
 plot 'stat.dat' using 1:3:2:6:5 with candlesticks title 'Quartiles', \
      ''         using 1:4:4:4:4 with candlesticks lt -1 notitle


 # Ҥξ˿ʿȼǡʿ 50% ˤ
 plot 'stat.dat' using 1:3:2:6:5 with candlesticks whiskerbars 0.5

ʲ: set boxwidth (95.7), set errorbars (95.24), set style fill (95.78.4), boxplot (33)

36 Circles

Image figure_circles
circles ϡƥǡ줿Ⱦ¤αߤ褷ޤ3 ΥǡͿϡ x, y, Ⱦ¤ȲᤷޤȾ¤ϡ οʿ (x ޤ x2) ñ̤Dzᤵޤy ν̼ܤ ڥϡ̵뤵ޤ2 ΥǡͿʤȡȾ set style circle ޤξ硢Ⱦ¤ graph screen κɸϤͿ뤳ȤǤޤ

ǥեȤǤϴʱߤ褷ޤ4 ܡ5 ܤ˳ϳѡλѤ ꤹ뤳Ȥ褹뤳ȤǤޤ4 ܡ뤤 6 ܤ ǡɲäʬߤοꤹ뤳ȤǤޤγϳѡλ Ѥñ̤٤ǻꤹɬפޤʲ: set style circle (95.78.8),set style fill (95.78.4)

:


   # Ѥ 3 ܤͤ㤹褦ʱߤ
   set style fill transparent solid 0.2 noborder
   plot 'data' using 1:2:(sqrt($3)) with circles, \
        'data' using 1:2 with linespoints


   # ߤ˥ѥåޥ
   plot 'data' using 1:2:(10):(40):(320) with circles


   # ǡDZߥդ
   set xrange [-15:15]
   set style fill transparent solid 0.9 noborder
   plot '-' using 1:2:3:4:5:6 with circles lc var
   0    0    5    0    30    1
   0    0    5   30    70    2
   0    0    5   70   120    3
   0    0    5  120   230    4
   0    0    5  230   360    5
   e

ϡpointstyle 7 Υ variable Ȥ points ˤ ȻƤޤcircles x ϰϤǿ̤ۤʤޤʲ⻲: set object circle (95.58.3), fillstyle (95.78.4)

37 Ellipses

Image figure_ellipses
ellipses ϡƥǡʱ (ellipse) 褷ޤ ϡ2 ˤΤŬѤޤʱߤϡ濴缴ľ¡ ľ¡x ȼ缴Τʤѡɽޤ


    2 : x y
    3 : x y major_diam
    4 : x y major_diam minor_diam
    5 : x y major_diam minor_diam angle

2 ΥǡΤߤͿ줿ϡ濴κɸȤߤʤ졢ʱ ϥǥեȤ礭褵ޤ (ʲ: set style ellipse (95.78.10)) ߤθϡ缴 x ΤʤѤޤǥեȤ ellipse Υ뤫ޤ (ʲ: set style ellipse (95.78.10)) 3 ΥǡͿ줿ϡ3 ܤϼ硢ξľ () Ȥƻ ޤϥǥեȤ 0 ˤʤޤ 4 ΥǡͿ줿ϡ濴κɸ缴ľ () ľ¤ȤƻȤޤľ¤ǤꡢȾ¤ǤʤȤդ 5 ΥǡͿ줿ϡ5 ܤͤñ̤θγ٤λ ƻȤޤ ʱߤϡ3,4,5 ͤͤȤƻꤹ뤳ȤǡΥǥեȤ ͤѤʱߤ񤫤뤳ȤǤޤ

Τ٤Ƥξǡvariable color ǡǸ (3,4,5,6 ) ɲäǤޤܺ٤ϰʲ: colorspec (21.1)

ǥեȤǤϡ缴ľ¤Ͽʿ (x ޤ x2) ñ̡ľ¤Ͽľ (y ޤ y2) ñ̤ǤȤߤʤޤϡx y ν̼ ۤʤ硢缴ϲžˤϤʤʤȤȤ ̣Ƥޤεưϡ units ѹǤޤ

˴ؤƤϡ3 ʤޤ: units xy ˴ޤޤƤ硢μϾ˽Ҥ٤褦˽̼ ޤunits xx Ȥȡľ¤ξȤ x ñ̤Ƿ׻졢 units yy ξȤ y ñ̤Ƿ׻ޤ 2 ĤϡΥ ѹƤ⡢ʱߤڥޤ

units άϡǥեȤ꤬Ѥ졢units xy Ȥ ޤϡset style ellipse ǺǽǤ

(ʱߤͭŪ˻Ѥ):


   plot 'data' using 1:2:3:4:(0):0 with ellipses

ʲ⻲: set object ellipse (95.58.2), set style ellipse (95.78.10), fillstyle (95.78.4)

38 Dots

Image figure_dots
dots ϳ˾ʥɥåȤ褷ޤϤ ʤ뻶ۿޤǤ礦2 Ǥ 1 󡢤ޤ 2 ϥǡ3 Ǥ 3 ΥǡɬפǤ

ϷˤäƤ (post, pdf ʤ)ɥåȤ礭 linewidth ѹ 뤳ȤǤ뤳Ȥ⤢ޤ


    1 :  y         # x Ϲֹ
    2 :  x  y
    3 :  x  y  z   # 3D Τ (splot)

39 Filledcurves

Image figure_filledcurves
filledcurves 2 ǤΤѤޤ 3 ۤʤ꤬ǽǤǽ 2 1 Ĥδؿ衢뤤 (x,y) 2 ϥǡѤΤΤǡǾҲ𤹤褦˥ץǹʤ꤬ ޤ

:


   plot ... with filledcurves [option]

ǡץϰʲΤΤ줫Ǥ:


   [closed | {above | below}
   {x1 | x2 | y | r}[=<a>] | xy=<x>,<y>]

ǽΤΤ closed ǡ϶켫Ȥ¿ѷȸʤޤ ϥǡ 2 ξˤϤ줬ǥեȤǤ

2 ܤϻꤵ줿뤤ϿʿľͿ줿ʤɤȡ Ȥδ֤˺ΰɤĤ֤ޤ


   filledcurves closed   ... ĶǰϤޤΰ
   filledcurves x1       ... x1 
   filledcurves x2       ... x2  (y1, y2 Ʊ)
   filledcurves y=42     ... ľ y=42, ʤ x ʿ
   filledcurves xy=10,20 ... x1,y1 Ǥ 10,20 (𷿤Τ褦ʷ)
   filledcurves above r=1.5  ˺ɸǤư¼ 1.5 γ¦ΰ

3 ܤϡx ɸν礬ƱǤ 2 Ĥζδ֤ΰɤ٤ ϡ(x, y1, y2) 3 ϥǡɬפǤϥǡ 3 ʾξˤϤ줬ǥեȤǤ ˻ 3 襹 zerrorfill ⻲ȤƤ


    3 :  x  y1  y2

Ϥ줿 2 Ĥζδ֤ΰɤĤ֤:

֤ɤĤ֤ǥ⡣


   plot 'data' using 1:2:3 with filledcurves

above below ץ

   ... filledcurves above {x1|x2|y|r}=<val>


   ... using 1:2:3 with filledcurves below

ηΥޥɤŬѲǽǤɤξǤ⡢Υץ ɤĤ֤ΰ򡢶ޤ϶¦¤ޤ

: ⡼ɤƤνϷǥݡȤȤϸ¤ޤ

     3 ΥǡǤϡx=  y= Υɤ̵뤷ޤ

ǡե뤫줿ɤĤ֤礹ȡʤʤä ʤΰˤʤ뤳Ȥޤ gnuplot ΰǤϤ 򥯥åԥ󥰤Ƥ뤫Ǥ

< a> , < x> , < y> ΰγˤ硢ϥդζذư ޤäơץ xy=< x> ,< y> ꤷμºݤɤĤ֤ ϡxrange yrange ˰¸ޤ

39.1 ɤ٤° (fill properties)

with filledcurves Ǥϡfillstyle (solid/transparent/pattern) fillcolor ꤹ뤳ȤǤ˥ޥǤޤplot ޥ fillstyle (fs) ꤷʤСߤΥǥեȤ fill Ѥޤʲ: set style fill (95.78.4)plot ޥɤ fillcolor (fc) ꤷʤС̾ (linetype) ο˽ޤ

fillstyle ° {{no}border} ϡfilledcurves Υ⡼ɤǥե closed Ǥ˼դޤ :

    plot 'data' with filledcurves fc "cyan" fs solid 0.5 border lc "blue"

40 Financebars

financebars ϶ͻǡ 2 ΥǡǤΤѲǽ Ǥϡx ɸ 1 (̾) ȡ4 Ĥ y ɸ () ɬפ ޤ


    5 :   date  open  low  high  close

ɲ (6 ) ȡϳƹ variable color (ʲ: linecolor (21.1), rgbcolor variable (21.1.3)) ȤƻȤޤ

Image figure_financebars
ϡʿˤϤ x ɸ֤졢ľˤϺǹ (high) ǰ (low) üȤʬȤޤơʬ˿ʿ¦ ߤ (open) νˡʿ¦ιߤ (close) νˤĤ ޤιߤĹ set errorbars ѹǤޤϺǹͤ ǰͤؤäƤѤޤ󡣰ʲ: set errorbars (95.24),candlesticks (35)ʲ⻲ȤƤ

ͻǡǥ⡣

41 Fsteps

Image figure_fsteps
fsteps 2 ǤΤѲǽǤ 2 ܤʬ ٤礦Ĥʤޤ: 1 ܤ (x1,y1) (x1,y2) ޤǡ2 ܤ (x1,y2) (x2,y2) ޤǡξϡlines points Ф ΤƱǤfsteps steps ΰ㤤ϡfsteps ϡޤ y ˽񤤤Ƥ鼡 x ˽񤯤ΤФsteps x ˽񤤤Ƥ鼡 y ˽񤭤ޤ

ʲ⻲

steps ǥ⡣

42 Fillsteps

fillsteps ϡsteps ȤۤƱǤ y=0 Ȥδ֤ ΰ򸽺ߤ fillstyle ɤ٤ޤʲ: steps (52)

43 Histeps

Image figure_histeps
histeps 2 ǤΤѲǽǤϥҥȥ ǤѤտޤƤޤy ͤϡx ͤ濴֤ȹͤ x1 Ǥ ((x0+x1)/2,y1) ((x1+x2)/2,y1) ޤǤοʿȤɽ ޤüǤϡϤ x ɸ濴ˤʤ褦˱Ĺ ٤礦ƱΤοʿüϡξԤʿͤΤȤǤαľ ʤ ((x1+x2)/2,y1) ((x1+x2)/2,y2) ʬǷФޤ ξϡlines points ФΤƱǤ

autoscale ͭǤ硢x ϰϤϡαĹ줿ʿϰϤ ϤʤǡϰϤ򤵤ޤäơü˴ؤƤϤοʿ ȾʬʤȤˤʤޤ ʲ⻲

steps ǥ⡣

44 Histograms

histograms 2 ǤΤͭǤϡǡγ ¤ӤʿԤդޤplot ޥɤγǤϡ ˴ؤͤ (key) Υȥ뤬°뤫Τޤ󤬡 ñϥǡꤹɬפޤ (㤨ϥե 1 Ĥ )ߤϡ4 ΥҥȥΥ򥵥ݡȤƤޤ


     set style histogram clustered {gap <gapsize>}
     set style histogram errorbars {gap <gapsize>} {<linewidth>}
     set style histogram rowstacked
     set style histogram columnstacked
     set style histogram {title font "name,size" tc <colorspec>}

ǥեȤΥ set style histogram clustered gap 2 б ƤޤΥǤϡ˻ꤵ줿ǡͤνϡ 줿ǡΤΤ줾ν (ֹ) б x ɸξˡ ơȢΥ롼פȤƸǤ֤ޤäơ< n> ĤΥǡ ˻ꤷ硢ǽθǤޤ x=1 濴Ȥ < n> ĤȢθǤޤ ʤꡢγơι⤵ϡ < n> ǡơκǽ (1 ) ޤθ˾ (gap) 졢˳ƥǡμ (2 ) ͤбȢθǤޤ꤬ x=2 濴Ȥ֤ޤʲƱͤǤǥեȤζ (gap) 2 ϡȢθǤޤƱΤδ֤ζ򤬡Ȣ 2 ĤȤ̣ޤƱФȢƱޤƱ ѥͿޤ (ʲ: set style fill (95.78.4))

ȢθǤޤꤽ줾ϡǡե 1 ĤιԤޤΤ ϥեγƹԤκǽιܤФ (٥) Ǥ뤳Ȥɤ ȤǤˤ븫Ф (٥) ϡusing xticlabels Ĥ뤳ȤǡбȢθǤޤο x ˱ä ֤ȤǤޤ

errorbars ϡƥȥФɲäɬפȤʳ clustered ˤȤƤɤƤޤǽϡ clustered ξƱͤȢι⤵ (y ) Ȥݻ ޤ

    2 :       y yerr          #  y-yerr  y+err ؿӤ
    3 :       y ymin ymax     #  ymin  ymax ؿӤ

θܤϡߤ set errorbars ͤ < linewidth> ץ Ǥޤ

Ѥ߾夲Υҥȥ 2 ĤηݡȤƤޤ ޥ set style histogram {rowstacked| columnstacked} Ǥ Υˤơ򤵤줿ΥǡͤѤ߾夲줿 ȢȤƽޤͤϡy=0 Ѥ߾夲졢ͤ ظäѤ߾夲ޤͤͤäƤϡ ȲξѤ߾夲ޤǥեȤѤ߾夲⡼ɤ rowstacked Ǥ

rowstacked ϡޤǽ򤵤줿γƹԤͤ x Τ 줾ΰ֤֤ޤ: 1 ܤͤ x=1 Ȣ2 ܤΤ x=2ʲƱͤȤʤޤ2 ܰʹߤ򤵤줿бȢϡξѤ߽ŤͤƹԤޤƷ̤Ȥơx=1 ˤǤȢѤ߽Ťͤϡ κǽ (1 ܤ) ʤꡢx=2 ȢѤ߽Ťͤϳ 2 ͡ʤɤΤ褦ˤʤޤƱФȢƱޤƱѥ Ϳޤ (ʲ: set style fill (95.78.4))

columnstacked ƱͤǤϳȢѤ߾夲 (ƹ ΥǡǤϤʤ) Υǡʤޤǽ˻ꤵ줿γ ԤΥǡ x=1 ȢѤ߾夲2 ܤ˻ꤷγƹԤΥ x=2 ȢѤ߾夲ʤɤΤ褦ˤʤޤΥǤϡ Ȣοϡƥǡܤ (ֹǤϤʤ) ֹ椫ꤵޤ

Ȣϥޥ set boxwidth ѹǤޤ ȢɤĤ֤ϥޥ set style fill Ǥޤ

histograms x Ͼ x1 Ȥޤy ˴ؤƤ y1 y2 Ǥޤplot ̿᤬histograms ¾Υξ ޤ硢histogram Ǥʤϡx1 Ȥ x2 Ȥ ޤ

:

Image figure_histclust
ϥեϡ2, 4, 6, ... ˥ǡͤ3, 5, 7, ... ˸ɾĤȤޤʲϡ2 ܡ4 ܤͤȢθǤޤ귿(clustered; ǥեȥ) ΥҥȥȤ褷ޤ ϡplot ޥɤǷ֤ (iteration) ѤƤޤΤǡǤդθ ΥǡĤΥޥɤǽǤޤʲ: plot for (84.10)


     set boxwidth 0.9 relative
     set style data histograms
     set style histogram cluster
     set style fill solid 1.0 border lt -1
     plot for [COL=2:4:2] 'file.dat' using COL

ϡx γͤ濴Ȥ뤽줾 2 ĤȢ (ľ) Ǥޤˤޤϥեκǽ˥٥뤬ޤޤ ʤ餽򡢰ʲξѹޥɤ x ˱ä֤Ǥޤ


     plot for [COL=2:4:2] 'file.dat' using COL:xticlabels(1)

Image figure_histerrorbar
ե뤬ƥǡ¬ͤϰϤξξޤǤ硢 ɲä뤳ȤǤޤʲΥޥɤϸ (y-< error> ) (y+< error> ) ˰ƬȢƱοʿĤޤ ȸüϡ 2 褵ޤ


     set errorbars fullwidth
     set style fill solid 1 border lt -1
     set style histogram errorbars gap 2 lw 2
     plot for [COL=2:4:2] 'file.dat' using COL:COL+1

ʲϡƱǡѤ߾夲 (rowstacked) Υҥȥ ˡ򼨤ƤޤޤǤȤϰ㤤ʲǤϷ֤ȤΤǤʤŪ̡ꤷޤ


     set style histogram rowstacked
     plot 'file.dat' using 2, '' using 4:xtic(1)

Image figure_histrows
ϡİĤαľǡΰĤб ϡ2 ĤʬѤ߾夲ηǤꡢ줾ʬι⤵ ե 2 ܤ 4 ܤͤбޤ

Ǹ˰ʲΥޥ


     set style histogram columnstacked
     plot 'file.dat' using 2, '' using 4

Image figure_histcols
ϡİĤ줾ǡб롢2 ĤαľѤ߽Ťͤ ޤx=1 ˤϡǡե 2 ܤγƹԤͤб Ȣʤޤx=2 ˤϡǡե 4 ܤγƹԤͤ Ȣʤޤ

ϡgnuplot ̾Ϥνġβ촹뤳Ȥˤʤޤ ǡΥȥ x θФλѹɬפ ʲΥʬ򻲾ȤƤ


     set style histogram columnstacked
     plot '' u 5:key(1)            # 1 ܤ㥿ȥ˻
     plot '' u 5 title columnhead  #

2 ĤϡƱǡͤͿƤΤǤۤʤ񼰤Ǥ 뤳ȤդƤ

44.1 Newhistogram

:


    newhistogram {"<title>" {font "name,size"} {tc <colorspec>}}
                 {lt <linetype>} {fs <fillstyle>} {at <x-coord>}

2 İʾΥҥȥȤ뤳ȤǤޤξ ޥ newhistogram ȤȤǡŪʬΥޤ Υ٥ʬΥ뤳ȤǤޤ :


     set style histogram  cluster
     plot newhistogram "Set A", 'a' using 1, '' using 2, '' using 3, \
          newhistogram "Set B", 'b' using 1, '' using 2, '' using 3

٥ "Set A" "Set B" ϡ줾ΥҥȥȤβx ƤΥ٥βΰ֤˸ޤ

ޥ newhistogram ϡҥȥοդŪ˻ꤷ (linetype) ǻϤΤˤȤޤǥեȤǤϡֹϥҥȥ ζޤǤϢ³Ūä³ޤϡʣΥҥ ȥƱդܤޤ

     plot newhistogram "Set A" lt 4, 'a' using 1, '' using 2, '' using 3, \
          newhistogram "Set B" lt 4, 'b' using 1, '' using 2, '' using 3

ƱͤˡΥҥȥꤷ fillstyle ǻϤᤵ뤳Ȥǽ fillstyle pattern ˥åȤ硢ɤ٤˻Ѥ ѥֹϼưŪäƤޤ

Image figure_newhist
ץ at < x-coord> ϡθΥҥȥ x ɸΰ֤ < x-coord> ꤷޤ:


      set style histogram cluster
      set style data histogram
      set style fill solid 1.0 border -1
      set xtic 1 offset character 0,0.3
      plot newhistogram "Set A", \
           'file.dat' u 1 t 1, '' u 2 t 2, \
           newhistogram "Set B" at 8, \
           'file.dat' u 2 t 2, '' u 2 t 2

ξ硢2 ܤΥҥȥΰ֤ x=8 Ϥޤޤ

44.2 ʣϤ뼫ưŪʷ֤ (automated)

ĤΥǡեΤ󤫤顢ĤΥҥȥ 硢plot η֤ (iteration) ǽȤǤ礦ʲ:plot for (84.10)㤨С3 ܤ 8 ܤޤǤΥǡѤ߾夲Υҥ ȥ:


     set style histogram columnstacked
     plot for [i=3:8] "datafile" using i title columnhead

45 Image

image, rgbimage, rgbalpha ϡͤɸ äʻҾǡͤ2 ޤ 3 Τʿ̾˼ͱƤ ޤϥǡϡˤӥåޥåײե (PNG Τ褦ɸŪ ʥեޥåȤѴΤǤ褤) ñʿǤ

Image figure_heatmap
οޤϡ顼ͤ󤫤鲹ʬۤǤ (: ޤɽ Ƥ)ߤΥѥåȤ򡢳ƥ顼ͤбԥ ؤγƤ˻Ѥޤ
     plot '-' matrix with image
     5 4 3 1 0
     2 2 0 0 1
     0 0 0 1 0
     0 1 2 4 3
     e
     e

Image figure_rgb3D
2 γƥԥ (ǡ) ϡ襰ǤĹ ʿϻΤȤʤޤγƥǡκɸϡʿϻΤ濴 ꤷޤʤM x N ĤΥǡ M x N ԥβ ޤϡM x N ĤΥǡ礬 (M-1) x (N-1) Ǥ pm3d ι¤ȤϰۤʤޤХʥǡγʻҤϡɲ ɤǤǽǤʲ: binary keywords flipx (84.2.8.4),keywords center (84.2.8.6), keywords rotate (84.2.8.7)

Image figure_scaled_image
ƥԥ x y 礭򼨤Ȥǡǡ 2 ɸ Ĺ˼ޤ褦˿̤뤳ȤǤޤʲ:binary keywords dx (84.2.8.3), dy (84.2.8.3)βΤˤϡƱϲ 줾 dx, dy, origin ꤷʣ֤ޤ PNG ӥγ 50x128 ԥǤ⤤ӥϡdx=0.5 dy=1.5 dz Ƥ褷㤤ӥϡdx=0.5 dy=0.35 ȤƤޤ (: ޤɽ Ƥ)

image ϡ쥤 (Ĵ)ޤϥ顼ѥå ޤǤԥϤޤä 2 (plot ) Ǥ 3 Υǡ (x,y,value) 3 (splot ޥ) Ǥ 4 Υǡ (x,y,z,value) ɬפˤʤޤ

rgbimage ϡ֡СĤ 3 Ĥοʬ (RGB) ǵҤ줿 Ϥޤä plot Ǥ 5 ǡ (x,y,r,g,b) splot Ǥ 6 ǡ (x,y,z,r,g,b) ɬפˤʤޤ֡С Ĥγʬ [0:255] ϰˤȲꤵޤ

rgbalpha ϡ֡СĤ RGB ʬ˲äơե (Ʃ ѥ᡼) ξޤԥϤޤäơplot Ǥ 6 ǡ (x,y,r,g,b,a) splot Ǥ 7 ǡ (x,y,z,r,g,b,a) ɬפˤʤޤ֡Сġӥեγʬ [0:255] ϰˤȲꤵޤ

45.1 Ʃ (transparency)

rgbalpha ϡϥǡγƥԥ뤬 [0:255] ϰ ΥեͤäƤɬפޤalpha = 0 ΥԥϴƩ ǡβ () ǤѤޤalpha = 255 Υԥ ƩǤ٤ƤνϷϡ 2 Ĥξüͤ򥵥ݡ Ȥޤ0 < alpha < 255 ΥԥȾƩǡȾƩ򥵥ݡȤƤ ʤϷǤϡͤ 0 255 Τ줫˴ݤޤ

45.2 Image pixels

ϷˤäƤϡ2 ĹΰǤβǡΡǥХ 饤֥˰¸Ŭ롼ѤƤޤϡ㤨Х åԥ󥰤俭̤ޤʤäꡢ郎礱ʤɡ˾ޤʤϤ 뤳Ȥޤ pixels ϡΤ褦ʥ롼 ˡ 1 ԥ뤺褹褦ʰŪʥɤѤ gnuplot ˻ؼޤ⡼ɤǤϡ٤ȤƤ礭 ϥեޤɤνϷǤⶦŪʸܤƤ Ǥ礦 (ץ pixels ϡ gnuplot Ǥ failsafeȸƤФƤޤ) :
     plot 'data' with image pixels

46 Impulses

Image figure_impulses
impulses ϡ2 Ǥ y=0 y ͤؤΡ3 Ǥ z=0 z ͤؤΡľʬɽޤy z ͤͤǤ褤ȤդƤǡɲƿľʬ οѤǤޤΥ 3 ǻѤ硢 (linewidth > 1) ѤȤŪǤ礦 3 դ˻Τˤʤޤ


    1 :  y
    2 :  x  y     # [x,0]  [x,y] ؤ (2D)
    3 :  x  y  z  # [x,y,0]  [x,y,z] ؤ (3D)

47 Labels

Image figure_labels1
labels ϡǡե뤫ɸʸɤ߹ߡʸ 򤽤 2 ޤ 3 ɸ֤ޤϴŪ 3 ޤ 4 ϤɬפȤޤ;ʬϡʸβž ( rotate variable) ʸ (ʲ: textcolor variable (21.1.2)) Τ褦ʡư°ͤꤵ줿Ȥߤʤޤ


    3 :  x  y  string    # 2 
    4 :  x  y  z  string # 3 

եȡžѤ䤽¾ƥȤ°ɲåץȤ ǽǤ (ʲ: set label (95.37))ϡϥե 1 äԤ̾ʸ4, 5 ܤäϿ޺ɸ 褷ޤեȥϡ3 ܤͤ׻ƤơξϤ Ͽ͸̣Ƥޤ


 CityName(String,Size) = sprintf("{/=%d %s}", Scale(Size), String)
 plot 'cities.dat' using 5:4:(CityName(stringcolumn(1),$3)) with labels

եȥ򡢸ġλԤ̾Фưۤʤ륵˹碌ʤƤ ʤСޥɤϤäȴñǤ:


 plot 'cities.dat' using 5:4:1 with labels font "Times,8"

labels hypertext ĤƤ硢ʸϥޥб ξ褿Ȥˤޤʲ: hypertext (95.37.2)ξ ϥѡƥȤ֤ȤƵǽ뤿ˤΥ٥ point °ͭˤɬפޤ:


 plot 'cities.dat' using 5:4:1 with labels hypertext point pt 7

Image figure_labels2
points Ǥ餫Ƥε椬ŬڤǤʤ ϽʬǤʤ硢Ȥƥ labels ȤȤǤ ޤ㤨СʲñʸȤ򤵤Ȥ3 ܤΥǡͤб뤽ΰĤ򥰥դγ˳ƤǤ (: ʲΥץ < UTF-8 ʸ> ʬˤϡݤ䢢ܡȥ׵ʤɤ UTF-8 ʸ¤ǤޤܸȤξΩʤƤޤ):


 set encoding utf8
 symbol(z) = "<UTF-8 ʸ>"[int(z):int(z)]
 splot 'file' using 1:2:(symbol($3)) with labels

ʲϡ4 ܤͤͤβžѤȤ5 ܤͤʸ ("tc") Ȥ ٥λǤͤοϡ using κǸ 뤳ȤդƤ


 plot $Data using 1:2:3:4:5 with labels tc variable rotate variable

48 Lines

Image figure_lines
lines ܤľʬǷӤޤ ϡ2 Ǥ⡢3 ǤѤǤŪˤϡ1 2 3 󤫤ϥǡɬפȤޤ ;ʬϡοѹʤɤξ󶡤줿ΤȤƻѤ (ʲ: rgbcolor variable (21.1.3))

2 ("using" ʤ) ξ

    1 :  y       # ֹˤۤ x
    2 :  x  y

3 ("using" ʤ) ξ
    1 :  z       # x ϰۤιֹ桢y  index 
    3 :  x  y  z

ʲ⻲: linetype (95.38), linewidth (95.78.7), linestyle (95.78.7)

49 Linespoints

Image figure_linespoints
linespointslp) ϡܤ򿿤ľʬ ӡθǺǽäƳ˾ʵޤϡ set pointsize ǷޤǥեȤ礭ޤplot ޥ Υꤷꡢ뤤ϥǡɲǸ̤ ꤹ뤳ȤǤޤɲäϡ̤οʤɤξ ΤˤȤޤʲ: lines (48), points (51)

(linetype) °Ǥ pointintervalpi) ǡ Τ٤ƤͿˤ뤫ɤǤޤ㤨С with lp pi 3 ϡ٤ƤΥǡ֤ʬޤε 3 Ĥˤ񤭤ޤpointinterval ͤˤϡβ ʬʬäޤäʬΥ set pointintervalbox Ǥޤ

50 Parallelaxes

Image figure_parallel
ʿԺɸ (parallel axis plot, parallel coordinates plot ȤƤФ ) ϡ¿ǡؤвޤϡ̡Υ ļ˳Ƥޤ 1 Ԥɤ߹줾ͤϡ1 ܤμ 2 ܤμء2 ܤμ 3 ܤμؤʬǷФ ʤʿԺɸǤϡϤγƹԤ줾Ωޤˤ ޤʬषƿƤ뤳ȤϤ褯Ԥޤ ϡʬȼȤδ֤δطŪĴ뤳Ȥǽˤޤ ǥեȤǤϡgnuplot ϼưŪ˸ġμϰϡϥǡ ꤷޤ̾ set axis range ޥɤˤäƤ򥫥 ޥ뤳ȤǽǤʲ: set paxis (95.63)

ʿԼκĿϡgnuplot Υѥ˸ꤵ졢κͤϡ show version long ɽޤ

51 Points

Image figure_points
points ϳ˾ʵɽޤεΥǥե 礭ѹˤϥޥ set pointsize Ȥޤǥե ϡƱΤˤʤޤʲ: linetype (95.38)plot ޥ ɤ using ꤬ʤϡϥǡϲꤵ줿ˡDzᤵ ޤʲ: style lines (48)

ǽ 8 Ĥϡ٤ƤνϷǶ̤Ǥ¿ ̤˥ݡȤϷ⤢ޤߤνϷǤɤΤ褦 郎ѰդƤ뤫򸫤ˤϡޥ test ѤƤ Τ褦ˤơǤդΰǽʸֹ˻Ѥ ȤǤޤĹʸϡ襹 points ǤϤʤ labels ȤнϤǤޤ


    plot sin(x) with points pt "#"

ȤơǤդ UTF-8 ʸѤǤޤʲ: utf8 (95.23) plot ޥɾǥ pointtype, pointsize, linecolor ݡֹ˥ variable ɲä뤳ȤǤޤ ξ硢б°ͤϥǡɲ󤫤ޤ (variable) pointsize ͤϡ using Ϳǽɲ ꡢ color ͤϡ˺Ǹɲ󤫤ޤΤȤϡ linespoints ο̡˻ꤹ뤳ȤϤǤ 󡣳Ф 3 Ĥ°򤹤٤ƻꤹϡϥǡ ν֤ϰʲΤ褦ˤʤޤ


    plot DATA using x:y:pointsize:pointtype:color \
         with points lc variable pt variable ps variable

: ֥桼ѿפ variable ˴ؤˤĤƤϡʲ: variables (16.5)

52 Steps

Image figure_steps
steps 2 ǤΤѲǽǤ 2 ܤʬ 礦Ĥʤޤ: 1 ܤ (x1,y1) (x2,y1) ޤǡ2 ܤ (x2,y1) (x2,y2) ޤǡξϡlines points Ф ΤƱǤfsteps steps ΰ㤤ϡfsteps ϡޤ y ˽񤤤Ƥ鼡 x ˽񤯤ΤФsteps x ˽񤤤Ƥ鼡 y ˽񤭤ޤȥ١饤Ǥ y=0 Ȥ ֤ΰɤ٤ˤϡfillsteps ѤƤ ʲ⻲

steps ǥ⡣

53 Rgbalpha

ʲ: image (45)

54 Rgbimage

ʲ: image (45)

55 Vectors

2 vectors (x,y) (x+xdelta,y+ydelta) ޤǤΥ ȥ񤭤ޤ3 vectors ƱͤǤǡϴ Ū 6 ɬפǤƥ٥ȥüˤϾ񤫤ޤ


    4 :  x  y  xdelta  ydelta
    6 :  x  y  z  xdelta  ydelta  zdelta

ξξǡɲ (2D Ǥ 5 ܡ3D Ǥ 7 ) ȡ ϳƥǡ variable color (ʲ: linecolor (21.1),rgbcolor variable (21.1.3)) ȤƻȤޤ

vectors ȤäƤ splot set mapping cartesian Τߤǥ ȤƤޤ

"with vectors" ϡθˡ饤 arrow 䡢餫Ƥ arrow λȡ뤤󤫤 ƥ٥ȥФɬפ arrow Υǥåɤ褦ʻ ȼȤǤޤ: "arrowstyle variable" Ѥ硢б ٥ȥ뤬褵ݤˤϤ줬 arrow °ͤ٤ƤΤ plot ޥ¾° arrow 򤳤Υ Ⱥߤ뤳ȤϤǤޤ


    plot ... with vectors filled heads
    plot ... with vectors arrowstyle 3
    plot ... using 1:2:3:4:5 with vectors arrowstyle variable

:

     plot 'file.dat' using 1:2:3:4 with vectors head filled lt 2
     splot 'file.dat' using 1:2:3:(1):(1):(1) with vectors filled head lw 2

set clip one set clip two 2 Υ٥ȥ˱ƶͿ ޤʲ: set clip (95.11), arrowstyle (95.78.1)

56 Xerrorbars

Image figure_xerrorbars
xerrorbars 2 ΥǡΤߤѲǽǤ xerrorbars ϡʿθؼ (error bar) ɽʳpoints ƱǤ (x,y) ˤ (xlow,y) (xhigh,y) ޤǡ ޤ (x-xdelta,y) (x+xdelta,y) ޤǤʬޤ ϤĤΥǡͿ뤫ˤäѤޤؼüι ߤΰθܤϡset errorbars ǤޤΥϴŪ ˡ3 4 ΥǡɬפǤ:


    3 :  x  y  xdelta
    4 :  x  y  xlow  xhigh

ɲ (4,5 ) ȡ variable color Ȥ Ȥޤ

57 Xyerrorbars

Image figure_xyerrorbars
xyerrorbars 2 ΥǡΤߤѲǽǤ xyerrorbars ϡʿľθؼ (error bar) ɽʳ points ƱǤ (x,y) ˤ (x,y-ydelta) (x,y+ydelta) ޤǤ (x-xdelta,y) (x+xdelta,y) ޤǡޤ (x,ylow) (x,yhigh) ޤǤ (xlow,y) (xhigh,y) ޤǤʬ ޤϤĤΥǡͿ뤫ˤäѤޤ ؼüιߤΰθܤϡset errorbars Ǥޤ 4 󤫡6 ΥǡɬפǤ


    4 :  x  y  xdelta  ydelta
    6 :  x  y  xlow  xhigh  ylow  yhigh

ǡݡȤƤʤ緿ηͿ줿硢plot ޥɤ using ե륿ȤäŬڤʷľʤȤޤ㤨 Хǡ (x,y,xdelta,ylow,yhigh) ȤǤ硢ʲΤ褦ˤޤ:


     plot 'data' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars

ɲ (5,7 ) ȡϳƥǡ variable color ȤƻȤޤ

58 Yerrorbars

Image figure_yerrorbars
yerrorbarserrorbars) 2 ΥǡΤߤ ѲǽǤyerrorbars ϡľθؼ (error bar) ɽ ʳ points ˻Ƥޤ (x,y) ˤ (x,y-ydelta) (x,y+ydelta) ޤǡޤ (x,ylow) (x,yhigh) ޤǤʬ ϤĤΥǡͿ뤫ˤäѤޤ üιߤΰθܤϡset errorbars Ǥޤ


    2 :  [ۤ x]  y  ydelta
    3 :  x  y  ydelta
    4 :  x  y  ylow  yhigh

ɲ (4,5 ) ȡ variable color Ȥ Ȥޤ

ʲ⻲

errorbar ǥ⡣

59 Xerrorlines

Image figure_xerrorlines
xerrorlines 2 ΥǡΤߤѲǽǤ xerrorlines linespoints ˻Ƥޤʿθ Ȥ㤤ޤ (x,y) ǡǡθĿ˱ (xlow,y) (xhigh,y) ޤǡޤ (x-xdelta,y) (x+xdelta,y) ޤǤʬ ޤüιߤΰθܤϡset errorbars Ǥޤ Ūˤϡ3 4 ΥǡɬפǤ:


    3 :  x  y  xdelta
    4 :  x  y  xlow  xhigh

ɲ (4,5 ) ȡ variable color Ȥ Ȥޤ

60 Xyerrorlines

Image figure_xyerrorlines
xyerrorlines 2 ΥǡΤߤѲǽǤ xyerrorlines linespoints ˻Ƥޤʿȿľθ 뤳Ȥ㤤ޤ (x,y) ǡǡθĿ˱ơ (x,y-ydelta) (x,y+ydelta) ޤǤ (x-xdelta,y) (x+xdelta,y) ޤǡ뤤 (x,ylow) (x,yhigh) ޤǤ (xlow,y) (xhigh,y) ޤǤʬޤüιߤΰθܤϡset errorbars Ǥޤϡ4 6 ϥǡɬפǤ


    4 :  x  y  xdelta  ydelta
    6 :  x  y  xlow  xhigh  ylow  yhigh

ǡݡȤƤʤ緿ηͿ줿硢plot ޥɤ using ե륿ȤäŬڤʷľʤȤޤ㤨 Хǡ (x,y,xdelta,ylow,yhigh) ȤǤ硢ʲΤ褦ˤޤ:


     plot 'data' using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines

ɲ (5,7 ) ȡϳƥǡ variable color ȤƻȤޤ

61 Yerrorlines

Image figure_yerrorlines
yerrorlineserrorlines) 2 ΥǡΤ ѲǽǤyerrorlines linespoints ˻Ƥޤľ 뤳Ȥ㤤ޤ (x,y) ǡǡθĿ˱ (x,y-ydelta) (x,y+ydelta) ޤǡޤ (x,ylow) (x,yhigh) ޤǤʬޤüιߤΰθܤϡ set errorbars Ǥޤϡ3 4 ϤɬפǤ


    3 :  x  y  ydelta
    4 :  x  y  ylow  yhigh

ɲ (4,5 ) ȡ variable color Ȥ Ȥޤ

ʲ⻲ȡ

顼СΥǥ

62 Zerrorfill

:


    splot DATA using 1:2:3:4[:5] with zerrorfill {fc|fillcolor <colorspec>}
               {lt|linetype <n>} {<line properties>}

zerrorfill ϡ2 襹ΰĤѼΤ褦 ΤǤϡ2 Ĥδؿδ֡ޤƱ x Ф 2 Ĥ y ɸ Ϳǡޤδ֤ΰɤ٤ޤϡ4 5 ϤɬפǤ


    4 :  x  y  z  zdelta
    5 :  x  y  z  zlow  zhigh

zlow zhigh δ֤ΰɤ٤θ z ͤΤȤ ǥեȤǤϡɤ٤ˤƱȤޤο splot ޥɾѹǤޤɤ٤ϡŪ fill style αƶޤʲ set style fill

splot ޥɤʣζꤷϡΤ Ƥζ򱣤Ƥޤǽޤ¦μζΤߤ 褦Ŭڤʿ¤٤Ԥˤϡޥ set pm3d depthorder ѤƤǰʤ顢 z ͤб뤹٤Ƥޤ ˡ٤Ƥΰɤ٤Ԥޤäơޤ򸫤 褦ˤơΰɤ٤ο¤٤Ԥˤϡΰɤ ٤ʬŪƩ (transparent) 뤫٥ɤ (solid fill) ˥ѥɤ (pattern fill) ѤȤ⤷ޤ

ʲκǽ 2 Ĥɤ٤ΰϡƱΤˤʤޤ


    splot 'data' using 1:2:3:4 with zerrorfill fillcolor "grey" lt black
    splot 'data' using 1:2:3:($3-$4):($3+$4) with zerrorfill
    splot '+' using 1:(const):(func1($1)):(func2($1)) with zerrorfill
    splot for [k=1:5] datafile[k] with zerrorfill lt black fc lt (k+1)

襹ϡ (fence plot) Τ˻ȤȤǤ ޤʲ: fenceplots (66)

63 3 (3D plots)

3 դϡޥ plot ǤϤʤޥ splot Ȥä ޤ¿ 2 襹 (points, images, impulse, labels, vectors) ϡz ɸǡɲûꤹ 3 ǤȤޤ2 ͱƥդΤߤߤǤ⡢splot ޥɤȤäʤ ʤ跿 (pm3d coloring, surfaces, contours) ˤϤޤ

63.1 (Surface plots)

Image figure_surface+contours
splot with lines splot with surface Ϥ ʻޤ̤ɤ٤ϡ splot with pm3d ԤȤǤޤ̤̾줬 3 ζ̤ǤȤϤä 褦Ŭڤʻɽޤʲ: set view (95.94) ξ硢X, Y, Z Ϥ٤ɽޤ3 ŪʺФϡ 䡢Ǥοˤꡢޤʲ:hidden3d (95.31), set pm3d (95.65) ΥץǤ depthorder (95.65.4) ޥ splot ϡ Z ͤФ׻褹뤳Ȥ ޤϡ̤켫Τξ˽񤯤ȤǤޤXY ʿ̤ؼͱƤ뤳ȤǤޤʲ: set contour (95.16)
Image figure_mapcontours

63.2 2 ͱ (set view map)

ޥ splot ̤ʾȤơ Z μͱƤˤ롢Z ɸ 2 ̤ؤϿ޺ (map) ޤʲ: set view map (95.94) ⡼ɤϡ䲹ʬۤΤѤǤޤ οޤ襹 lines ١labels 褷򼨤 Ƥޤ (: ޤɽƤ)

64 ˺ɸ (Polar plots)

Image figure_polar
˺ɸ (polar) ϡplot ޥɤϤ˸ߤκɸϤ˺ɸ ѹ뤳Ȥˤäޤץ set polar ϡϤ 2 ɸ < x> ,< y> < > ,< Ⱦ> Ȳ᤹뤳Ȥ gnuplot ˻ؼޤ٤ƤǤϤʤǤ¿ 2 襹뤬˺ɸ ⡼ɤǤⵡǽޤޤϡ襹 lines filledcurves Ȥ߹碌򼨤Ƥޤ(: ޤɽƤ) ʲ:set polar (95.69), set rrange (95.74), set size square (95.77)

65 ӡ (Bee swarm plots)

Image figure_jitter
ӡ (bee swarm) դϡɤ餮 (jitter) ŬѤƽʣ ʬΥ뤳Ȥˤ̤ǤŵŪϡ x ɸ ꤹ 2 İʾΥƥˤäɽ蘆 y ͤʬۤӤǤ ŤʤȽ䡢jitter ǻѤưѥ椹ˡ˴ؤ Ƥϡʲ: set jitter (95.35)οޤΥդϡۤʤ jitter ФƱ plot ޥɤˤäƺ줿ΤǤ
    `plot $data using 1:2:1 lc variable`

66 (Fence plots)

Image figure_fenceplot
(fence plot) ϡʣ 2 դ򡢤 Y ɸ· 줾̤뤿 X ˱äƤϤ餷Ƿ礷ΤǤ ͤġΥդ Z ɸޤǤδ֤ΰɤ٤ȤǡY Z ɸι⤵ΰ㤤θܤĴޤgnuplot ǤηΥ դ񤯤ˤϤĤˡޤǤñʤΤϡ5 η zerrorfill ѤˡǤi ź줿ʣζ z
= Fi(y) Ȥ`splot with zerrorfill` ǰʲΤ褦

кդ񤯤ȤǤޤ:
    i y z_base z_base Fi(y)


3 ޥ (Commands)

ΥǤ gnuplot դ륳ޥɤ򥢥ե٥åȽ ¤٤ƤޤΥɥȤ˰ΤƤΥޥɤޤ Ǥޤ÷ǻȤǤɥȤϴǤϤʤǽ ޤºݡθФβ˲Υޥɤɽʤƥब ޤ

ۤȤɤξ硢ޥ̾ȤΥץϡʶ路ʤϰϤǾά 뤳ȤǽǤʤ"plot f(x) with lines" "p f(x) w li" Ȥ뤳ȤǤޤ

񼰤εҤˤơ楫å ({}) ɲûǤ̣ (| ) ϸߤ¾ŪʰڤΤȤޤ

67 Break

ޥ break ϡdo, while ʸη֤¹ʬΥåǤ ̣߰ޤΥޥɤϡ楫åλĤ̿򥹥å ֤ǤĤåμʸ¹ԤƳޤʲ⻲: continue (71)

68 Cd

cd ޥɤϥȥǥ쥯ȥѹޤ

:

       cd '<ǥ쥯ȥ̾>'

ǥ쥯ȥ̾ϰ˰ϤޤƤʤФʤޤ

:

       cd 'subdir'
       cd '..'

Хåå ( \ ) Ű (") Ǥ̤ʰ̣äƤޤ ˥פɬפޤΤǡWindows 桼ˤñ Ȥ򴫤ޤ㤨С

       cd "c:\newdata"

ǤϼԤޤ
       cd 'c:\newdata'
       cd "c:\\newdata"

ʤ̤ưǤ礦

69 Call

call ޥɤϡɤ߹ե̾θˡ9 ĤޤǤΥѥ᡼ Ϳ뤳ȤǤ뤳Ȥ load ޥɤǤ


    call "inputfile" <param-1> <param-2> <param-3> ... <param-9>

gnuplot ΰΥСǤϡΥѥ᡼ʸƤ̤ʵ $0, $1, ..., $9 ޥΤ褦ִ뤳ȤɽƤޤ λȤߤϡߤ侩Ǥ (ʲ: call old-style (69.2))

ߤ gnuplot ϡʸѿ ARG0, ARG1, ..., ARG9 ȡѿ ARGC 󶡤ޤcall ޥɤ¹ԤȡARG0 ˤϥե̾ ARGC ˤϥѥ᡼ꤵ졢ARG1 ARG9 ˤϥޥɥ饤 ٤줿ѥ᡼ͤɤ߹ޤޤ

̾ѥ᡼ʸͤȤ¸ΤǡޥŸƻ 뤳ȤǤޤ (Ťν񼰤)¿ξ硢 ¾ѿƱͤѤ꼫Ǥ礦

69.1 (Example)


    ʲ call :
        MYFILE = "script1.gp"
        FUNC = "sin(x)"
        call MYFILE FUNC 1.23 "This is a plot title"
    ƤӽФ줿ץǤϰʲΤ褦ˤʤ:
        ARG0  "script1.gp"
        ARG1 ʸ "sin(x)"
        ARG2 ʸ "1.23"
        ARG3 ʸ "This is a plot title"
        ARGC  3
    ΥץǤϰʲΤ褦ʤΤ¹ԤǤ:
        plot @ARG1 with lines title ARG3
        print ARG2 * 4.56, @ARG2 * 4.56
        print "This plot produced by script ", ARG0

ARG1 ϥޥȤƻȤʤФޤ󤬡ARG2 ϥޥ ȤǤ (ˤʤ)ѿΤޤޤǤ (ʸ "1.23" ¿ͤ˼ ưŪѴ줿Ʊͤˤʤ) ʤȤդƤ

륹ץȤ gnuplot 򥳥ޥɥ饤󥪥ץ -c ĤǼ¹ 뤳ȤǡƱȤľܹԤȤǤޤ:


    gnuplot -persist -c "script1.gp" "sin(x)" 1.23 "This is a plot title"

69.2 Old-style

ʲϡΥС gnuplot ǻȤƤ call λȤߤεҤǤߤ侩Ǥ


     call "<input-file>" <param-0> <param-1> ... <param-9>

ϥե̾ϰǰϤޤʤФʤޤϥեγƹԤ ߹ݤˡʲ̤ʸޤ: $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $#줬Ĥä顢$call ޥɥ饤 бѥ᡼֤ޤϥԡʸѿִ Ԥޤʸ $# ϥѥ᡼֤ޤ¾ʸ ˤĤƤ $ ϡץ󥹤Ȥƽޤ㤨 1 $ Ȥˤ $$ Ȥޤ

:

ե 'calltest.gp' ϰʲιԤޤǤȤ:

   print "argc=$# p0=$0 p1=$1 p2=$2 p3=$3 p4=$4 p5=$5 p6=$6 p7=x$7x"

ιԤϤ:

   call 'calltest.gp' "abcd" 1.2 + "'quoted'" -- "$2"

ʲΤ褦ɽǤ礦:

   argc=7 p0=abcd p1=1.2 p2=+ p3='quoted' p4=- p5=- p6=$2 p7=xx

: ʸ $ ϡgnuplot ȤΥǡѤν񼰤Ȥ֤Ĥޤ Unix ϤΥδĶѿ򻲾Ȥ $ Ȥ֤Ĥޤ̤ʸ $# ϡgnuplot ΥС 4.5 4.6.3 ޤǤϡְ㤨ƥ ʸζڤʸȤƲᤵƤޤʸִǤϰ̵ Τǡʸϴñ˲Ƥޤޤ

70 Clear

clear ޥɤϡset terminal set output 򤷤̡ ֤򥯥ꥢޤϡɥԡ֤ФƤ̾ڡԤޤ

Ĥν֤ clear ޥɤǤ set size 줿 ΰΤߤõޤΤᡢset multiplot ȤȤ˻Ѥ뤳Ȥ ޤĺ뤳ȤǤޤ

:

     set multiplot
     plot sin(x)
     set origin 0.5,0.5
     set size 0.4,0.4
     clear
     plot cos(x)
     unset multiplot

ܺ٤ˤĤƤϡʲ: set multiplot (95.51), set size (95.77), set origin (95.60)

71 Continue

ޥ continue ϡdo, while ʸη֤¹ʬΥå Τ̣߰ޤΥޥɤϡ楫åλĤ̿򥹥 פη֤˿ʤߤޤ (⤷롼פλĤ꤬)ʲ⻲:break (67)

72 Do

:
     do for <iteration-spec> {
          <commands>
          <commands>
     }

ϡޥʣ¹Ԥޤޥɤ楫å {} ǰϤߡ ijϥå "{" ϡ do ƱԤ֤ɬפޤ ΥޥɤϡŤ (äʤ) if/else ʸȰ˻ȤȤ Ǥޤ󡣷֤ < iteration-spec> ˤĤƤϡʲ:iteration (20):
     set multiplot layout 2,2
     do for [name in "A B C D"] {
         filename = name . ".dat"
         set title sprintf("Condition %s",name)
         plot filename title name
     }
     unset multiplot

ʲ⻲: while (105), continue (71), break (67)

73 Evaluate

ޥ evaluate ϡʸȤͿ줿ޥɤ¹Ԥޤ ʸ˲ʸƤϤޤ

:

     eval <string expression>

ϡäƱͤΥޥɤη֤ͭѤǤ

:

     set_label(x, y, text) \
       = sprintf("set label '%s' at %f, %f point pt 5", text, x, y)
     eval set_label(1., 1., 'one/one')
     eval set_label(2., 1., 'two/one')
     eval set_label(1., 2., 'one/two')

ʸ󤫤饳ޥɤ¹Ԥ̤ˡ˴ؤƤϡʲ:substitution macros (28.2)

74 Exit

exit quit ξޥɤ END-OF-FILE ʸ (̾ Ctrl-D) Ʊ͡ ߤϥȥ꡼ࡢʤüäѥϡե ( ) Ϥλޤϥȥ꡼ब (Ū load ΥץȤ) ˤʤäƤ硢ɤ߹ߤϿƤΥȥ꡼Ƿ ³ޤȥåץ٥Υȥ꡼बĤȡץϤ켫 Ƚλޤ

ޥ exit gnuplot ϡľˡ̵ˡ㤨ϥȥ꡼ ¿ʳ˥ͥȤƤƤ⡢gnuplot λޤξ硢 ƤƤνϥեϤ줤˴ʷǤĤʤǽ ޤ:


     bind "ctrl-x" "unset output; exit gnuplot"

ޥ exit error "error message" ϡץ२顼Ԥ ÷⡼ɤǤϡΥ顼åɽ٤ΥͥȤ줿 롼פ call Ǥƥޥɥ饤˵ޤ÷⡼ɤǤϡ ץλޤ

ܺ٤ϡʲ: batch/interactive (8)

75 Fit

ޥ fit ϡMarquardt-Levenberg ˡˤǾˡ (NLLS) Ѥơǡν˥桼Ϳ뼰ƤϤޤΩѿ 12 ޤǵƤơ°ѿϾ 1 ĤǡǤոĿΥѥ᡼ƤϤ뤳ȤǤޤɲäǡǡνŤդѤ˸ɾ Ϥ뤳ȤǽǤ

fit κǤŪʻˡϡʲñ㤬Ƥޤ:


     f(x) = a + b*x + c*x**2
     fit f(x) 'measured.dat' using 1:2 via a,b,c
     plot 'measured.dat' u 1:2, f(x)

:

     fit {<ranges>} <expression>
         '<datafile>' {datafile-modifiers}
         {{unitweights} | {y|xy|z}error | errors <var1>{,<var2>,...}}
         via '<parameter file>' | <var1>{,<var2>,...}

ϰ (xrange, yrange ) ϡƤϤ˻Ѥǡ¤Ū ȤȤǤϰϤĶǡ̵뤷ޤν񼰤 plot ޥƱ

     [{dummy_variable=}{<min>}{:<max>}],

Ǥʲ: plot ranges (84.8)

< expression> ϡ̾Ϥ餫桼줿 f(x) ޤ f(x,y) ηδؿǤgnuplot ͭʤɤʿǤǤޤ ¿ʹؿǤʤФޤ Ωѿ̾ϡޥ set dummy ꤹ뤫fit ϰϻ ʬ (< rangse> ) ꤷޤ (ʲ򻲾)ǥեȤǤϡǽ 2 Ĥ x, y Ȥʤޤ ˡοϡƤϤκȤˤꤹͤ 1 İʾѿ (ѥ᡼) ˰¸٤Ǥ

< datafile> plot ޥɤƱͤ˰ޤplot datafile ν (using, every,...) ϡsmooth ơ fit ˻Ȥ ȤǤޤʲ:plot datafile (84.3)

ǡեƤϡplot ޥɤ˻ѤΤƱ using ȤȤǽ˲ᤵ뤳ȤǤޤ㤨СΩѿ x 2 3 ܤ¤Ȥz ͤ 6 ܤꡢŤߤ 1 Ȥ ϰʲΤ褦ˤޤ:


     fit ... using ($2+$3):6

using ꤬ʤ硢fit ϰۤΩѿ 1 ĤȲꤷޤ ե뼫ȡޤ using ꤬ 1 Υǡľ硢ι ΩѿͤȤƻѤޤ using Ϳ硢 12 (ꤷƥѥ뤷ƤФ ˤʾ) ΩѿѤǤޤ

ץ unitweights (줬ǥե) ϡ٤ƤΥǡ ŤߤĤȤߤʤޤϡ error Ѥ뤳Ȥ ѹǤϥǡե뤫 1 İʾѿθɾɤ߹ߡθɾбѿͤɸк s Ȥߤʤƥǡ 1/s**2νŤߤ׻Τ˻Ѥޤ

ΩѿθɾˤơνŤߤˤϡ"ͭʬˡ" (effective variance method; Jay Orear, Am. J. Phys., Vol. 50, 1982) ˽äơ ƤϤؿʬ򤫤ޤ

errors ˤϡθˡϤɤѿθǤΤ ޶ڤ 1 İʾѿ̾ΥꥹȤդޤ°ѿ z ϾˤˤʤФޤ󤬡ΩѿɬܤǤϤޤ ΥꥹȤγѿФե뤫餽ʬΡѿθɾ ɲäɤ߹ߤޤ֤ˤʤޤusing ˤ ᤬ǽˤʤޤ äơΩѿοϰۤˡusing ο 1 (°ѿʬ) errors ѿθĿˤʤ뤳Ȥ դƤ

Ȥơ2 ĤΩѿꡢ 1 ܤΩѿȽ°ѿθǡϡerrors x,z 5 using ȤȤˤʤޤ x:y:z:sx:sz Τ褦˲ᤵޤ (x, y Ωѿz °ѿsx, sz x, z ɸк)

errors ΤäȤάˡ 2,3 ѰդƤޤ: yerrors (Ωѿ 1 󤢤ƤϤ) zerrors (̤ξ) ϡ errors z Ʊͤǡ1 ɲäν°ѿѤθ󤬤뤳Ȥ̣Ƥޤ

xyerrors ϡΩѿ 1 ǡΩѿȽ°ѿξ 2 θɲä뤳Ȥ̣ޤξ硢x y θ Orear ͭʬˡ (effective variance method) ǽޤ

yerror xyerror ηӲϡ줾 2 襹 yerrorlines xyerrorlines ƱǤ뤳ȤդƤ

ޥ set fit v4 Ѥȡfit Υޥɽ񼰤 gnuplot 4 ȸߴν񼰤ˤʤޤξ硢using ˤϡΩ 2 İʾʤСΩѿο 2 (z s) ¿꤬ɬפǡ gnuplot ϡusing Ϳ줿ο˱ơʲν񼰤˽ޤ:


     z                           # Ωѿ 1  (ֹ)
     x:z                         # Ωѿ 1  ( 1 )
     x:z:s                       # Ωѿ 1  ( 3 )
     x:y:z:s                     # Ωѿ 2  ( 4 )
     x1:x2:x3:z:s                # Ωѿ 3  ( 5 )
     x1:x2:x3:...:xN:z:s         # Ωѿ N  ( N+2 )

ϡ2 İʾΩѿ fit 򤹤硢z- s Ϳɬפ뤳Ȥ̣뤳ȤդƤŤߤ 1 ˤϡ 㤨 x:y:z:(1) Τ褦ʽ񼰤 using ˻ꤹ뤳ȤŪͿ ɬפޤ

ѿ̾ϡǾҲ𤹤褦ϰϻǻꤹ뤳ȤѹǤޤ ϰϤ using κǽΤΤбʲƱͤǤ°ѿǤ z ϰϻǤޤϡf(x,...) ͤ򤽤ϰϳˤ ޤ褦ʥǡĺǾ뤳ȤˤϴͿʤͭ

ʣΥǡʣ 1 ѿؿƱƤϤ뤳Ȥ⡢y ' ѿ' ȤвǽǤ㤨ХǡֹȤ2 ѿؿؤƤ ᡢȤФǤ礦ʲ: fit multi-branch (75.5)

via Ҥϡѥ᡼κŬľܹԤޤϥѥ᡼ե 򻲾Ȥ뤳ȤˤäƹԤꤷޤ

:

     f(x) = a*x**2 + b*x + c
     g(x,y) = a*x**2 + b*y**2 + c*x*y
     set fit limit 1e-6
     fit f(x) 'measured.dat' via 'start.par'
     fit f(x) 'measured.dat' using 3:($7-5) via 'start.par'
     fit f(x) './data/trash.dat' using 1:2:3 yerror via a, b, c
     fit g(x,y) 'surface.dat' using 1:2:3 via a, b, c
     fit a0 + a1*x/(1 + a2*x/(1 + a3*x)) 'measured.dat' via a0,a1,a2,a3
     fit a*x + b*y 'surface.dat' using 1:2:3 via a,b
     fit [*:*][yaks=*:*] a*x+b*yaks 'surface.dat' u 1:2:3 via a,b


     fit [][][t=*:*] a*x + b*y + c*t 'foo.dat' using 1:2:3:4 via a,b,c


     set dummy x1, x2, x3, x4, x5
     h(x1,x2,x3,x4,s5) = a*x1 + b*x2 + c*x3 + d*x4 + e*x5
     fit h(x1,x2,x3,x4,x5) 'foo.dat' using 1:2:3:4:5:6 via a,b,c,d,e

ȿθġΥƥåפθǡƤϤθߤξ֤ˤĤƤξܺ٤ʾ ̤ɽޤǽȺǸξ֤˴ؤƱ "fit.log" Ȥեˤ񤭽ФޤΥեƤϤ äʤ褦˾ɲäƤޤ˾ʤ뤤 ̾ˤǤޤޥ set fit logfile Ȥäƥե̾ ѹ뤳ȤǤޤ

set fit errorvariables Ѥ硢ƤϤѥ᡼θ Υѥ᡼Ȼ̾ ("_err" ɲä줿̾) ѿ¸ Τǡθ򤽤θη׻ϤȤƻѤ뤳ȤǤޤ

set fit prescale Ȥ硢ƤϤѥ᡼򡢤νͤ 饹ѴޤˤꡢġΥѥ᡼礭ˤʤ㤤 褦ʾǤ⡢Marquardt-Levenberg 롼󤬤᤯꿮 Τͤ˼«褦ˤʤޤ

ƤϤȿ Ctrl-C (wgnuplot Ǥ Ctrl-Break) 򲡤ȤǤ ޤߤȿ˽λ塢ʲΤ줫֤ȤǤޤ:(1) ƤϤߤƸߤΥѥ᡼ͤѤ (2) ƤϤ³Ԥ (3) set fit script Ķѿ FIT_SCRIPT ǻꤷ gnuplot ޥɤ¹Ԥ롣ΥǥեȤ replot ǡ⤷ǡƤϤ ĤΥդˤ餫褷ƤСߤƤϤξ֤ɽ 뤳ȤǤޤ

fit λϡǸΥѥ᡼ͤ¸Τ update ɤȤޤͤϺƤӥѥ᡼ͤȤƻȤȤǤޤ ܺ٤ϡʲ: update (104)

75.1 ѥ᡼Ĵ (adjustable parameters)

via ϥѥ᡼Ĵ᤹뤿 2 ĤˡǤޤĤ ޥɥ饤󤫤ľܻؼΤǡ⤦Ĥϥѥ᡼ե ȤƴŪ˹ԤΤǤ 2 ĤϽͤǰäˡ ޤ

Ĵѥ᡼ϡvia ɤθ˥ޤǶڤ줿ѿ̾ ΥꥹȤ񤯤ȤǻǤޤƤʤѿϽ 1.0 ƺޤƤϤϡѿνͤ餫Ŭڤͤ ꤵƤ¿ʬ®«Ǥ礦

ѥ᡼եϸġΥѥ᡼򡢸̤ 1 Ԥ˰Ĥġͤ Τ褦ʷǻꤷƽ񤭤ޤ

     ѿ̾ = 

'#' ǻϤޤ륳ȹԤԤޤ̤ʷȤ

     ѿ̾ =        # FIXED

ϡѿꤵ줿ѥ᡼Ǥ뤳Ȥ̣ϤΥե ǽޤĴϤޤ󡣤ϡfit ǥݡȤ ѿǡɤ줬ꤵ줿ѿǤ뤫ΤͭѤǤ礦 # FIXED ȸɤϸ̩ˤηǤʤƤϤʤޤ

75.2 Fit γά (fit beginners_guide)

fit ϡͿ줿ǡͿ줿桼ؿˤäȤɤ ƤϤ褦ʥѥ᡼򸫤ĤΤ˻ȤޤƤϤϡ ƱǤϥǡȴؿͤȤμ뤤ϻĺ (SSR:Sum of the Squared Residuals) ¤Ƚꤵޤ̤̾() ȸƤФޤΥ르ꥺ SSR Ǿ뤳Ȥ򤷤褦 ޤ⤦ܤȡǡ (ޤ 1.0) νŤߤĤĺ (WSSR) κǾԤäƤޤܺ٤ϡʲ:fit error_estimates (75.3)

줬() ǾƤϤˡȸƤФ椨Ǥ ̣ƤΤ򸫤뤿Ҳ𤷤ޤˤĤ ˤĤƽҤ٤ƤޤǤϴñΤᡢ1 ѿΥ桼 ؿ z=f(x), 2 ѿδؿ z=f(x,y) Τ褦ˤ⽾°ѿȤ z Ѥ뤳Ȥˤޤѥ᡼Ȥ fit ĴŬڤͤ ꤹ桼ѿǡؿ̤οǤǸ /Ȥϡ°ѿ z fit Ĵѥ᡼ȤδطФΤǤꡢz Ωѿ x (ޤ x y) ȤδطΤȤǤϤ ޤ (Ū˽Ҥ٤ȡǾǤϡƤϤؿΥѥ᡼ ˤ 2 (ƹ˹ⳬ) Ƴؿ 0ȤȤˤʤޤ)

Ǿˡ (LLS) Ǥϡ桼ؿñʴؿ¤Ǥꡢ ϰĤΥѥ᡼ܤ¾Υѥ᡼ޤޤʤˤʤޤ Ǿˡ (NLLS) ǤϤʣʴؿ򰷤ѥ᡼Ͽ Ȥ򤵤ޤաꥨκǾˡΰ㤤ɽ ĤǤաꥨǤϰĤι

    z=a*sin(c*x) + b*cos(c*x).

Τ褦ɽޤ⤷a b ̤Τʥѥ᡼ c Ȥ ѥ᡼ɾǾˤʤޤc ̤Τʥѥ᡼ ʤФˤʤޤ

ξ硢ѥ᡼ͤŪñľˡˤäƷ ޤΤ褦 LLS üʾǤꡢ'gnuplot' Ѥ ȿˡϡ󤽤ޤơŪ NLLS 򤯤ȤǤ ޤfit ϸԤȤǺǾͤõȤޤȿγƥƥå ϡѥ᡼οͤȤФ WSSR ׻ޤMarquardt- Levenberg Υ르ꥺϼΥƥåפΥѥ᡼ͤ򤷤ޤ ƤϤ餫Ϳࡢʤ(1) ƤϤ᤬ "«" (WSSR и³ͤ꾮ʤä硣ʲ:set fit limit (95.25))ޤ (2) 餫ꤵ줿ȿθ³ã (ʲ: set fit maxiter (95.25))Τ줫ޤ³ޤ ܡɤ餽ƤϤȿǤǤޤ³ߤ ȤǤޤ (ʲ: fit (75))桼ѿ FIT_CONVERGED ϡ ľ fit ޥɤ«ˤ꽪λ 1 ʳͳǤ 0 ޤFIT_NITER ϡľƤϤǹԤ줿 βޤ

ƤϤ˻ȤؿϤФФǥ (ޤϤ) 򸵤ˤ ơϥǡο򵭽Ҥꡢ뤤ͽ¬褦Ȥޤ fit ϡǡΥǥˤɤ줯餤ޤƤϤޤäƤΤ ꤹ뤿ᡢƸġΥѥ᡼θϰϤɾ뤿ˡ μͳʥѥ᡼ͤΤ˻Ȥޤʲ:fit error_estimates (75.3)

ǤʤСˤƤϤˤؿϡǥȤ̵ط ФƤޤ (ϽʬɽϤȺǤ⾯ʤΥѥ᡼ǡ η򵭽ҤʴؿȤƷи˴ŤФǤ礦)

⤷ʤƤΥǡ̤褦ʳ餫ʶߤʤ fit ǤϤʤष plot smooth ץǤԤ٤ 礦

75.3 ɾ (error estimates)

fit ˤ "" ȤѸ 2 Ĥΰۤʤäʸ̮Ѥޤ Ĥϥǡ⤦Ĥϥѥ᡼Ǥ

ǡϡʿĺνŤդ WSSRʤּꤹ ġΥǡŪʽŤߤ׻ΤѤޤϥѥ ɾ˱ƶͿޤϡ餬ƤϤ줿ؿ ġΥǡкǽŪͤͿƶ礭ꤹ뤳Ȥˤ ޤΤʥǡɾͿƤˤϡѥ᡼θ ɾ fit ϤϤΩĤǤ礦

statistical overview Ǥ fit νϤΤĤ 'practical guidelines' ФطʤҤ٤Ƥޤ

75.3.1 Ūʳ (statistical overview)

Ǿˡ (Non-Linear Least-Squares; NLLS) ϡ ʬۤŪ˵ҤƤޤʤϥǡͿ줿 ʿѤȤʿѤФͿ줿ɸкĥ () ʬۤ˽ 콸ĤɸܤȲꤵޤʬ礭ɸܡ콸Ĥɸк Τ뤳ȤФƤϡּʬפѤơּ֦̾פȸƤФ ͤĴ٤뤳ȤˤƤϤɤפҤ٤뤳ȤǤޤ餵 ͳ٤Φּ (ּμͳ٤ϡǡοƤϤѥ ᡼θĿ) 1.0 ǤϡǡƤϤ줿 ؿȤкνŤߤĤ¤ߤΥѥ᡼ͤФؿͿ 줿ɸкˤäħդ줿콸ĤΡʥץФ ¤ȤƱǤ뤳Ȥ̣ޤ

ʬ = פǤ夲׳Ʊ͡콸ĤɸкǤʤ硢 ϴ¬к¤ȴԤк¤ӤȤ˸̤˽Ť Ť٤Ǥ

ǽʳ fit 'stdfit'ʤĺ RMS (ʿʿ) ǵ ƤϤɸкȡǡŤߤŤƤ ' 줿ּ' ȤƤФĺʬݡȤޤͳ (ǡ οƤϤѥ᡼ο) ϤɾǻѤ ʤʤ顢ǡλĺη׻ǻȤѥ᡼Ʊǡ ΤǤǡŤߤľ硢gnuplot Ϥ p-ͤ׻ޤϤμͳ٤ȷ̤ΦּͤФּʬۤ ʬ۴ؿͤ 1 ͤǤʲ: practical_guidelines (75.3.2) ͤϰʲѿޤ:

     FIT_NDF = ͳ٤ο
     FIT_WSSR = ŤߤĤĺμ
     FIT_STDFIT = sqrt(WSSR/NDF)
     FIT_P = p-

ѥ᡼˴ؤ뿮٥ɾ뤳ȤǡƤϤᤫǾ Φּȡ׵᤹뿮٥Φּͤꤹ뤿Φּ Ѥ뤳ȤޤΤ褦ͤѥ᡼Ȥ ꤹˤϡΤʤ׻ɬפȤʤǤ礦

fit Ͽ֤ηषǸȿʬ-ʬ󤫤ľ ѥ᡼θɾ𤷤ޤɾϡɸк ȤƷ׻̤λ˴ؤ׾ξ郎̤ˤǾ ǤݾڤʤΤǤǾǤɸ (ƥѥ᡼ ɸк) ƱˡǷ׻ޤƤΤᴷˤꡢ "ɸ" Ȥ "ɸ" ȸƤФƤޤɸϰ ̤˳ڴѲ᤮٥ηˤϻȤ٤ǤϤޤ󤬡Ūʻ ɸȤƤΩĤǤ礦

ǽŪʲϡϰϤˤѥ᡼ؤ򼨤ع : μгǡʤؤϾ 1 ǡƤΥѥ᡼ ΩʤгǤϤ٤ 0 ˶ᤤͤˤʤޤ¾䤤 2 Ĥѿϡ礭 1 ǡطؤؤˤä ʤгǤޤгǤ礭ۤɡ ѥ᡼ɸкɾϡɸ˶᤯ʤޤ

75.3.2 Ūʥɥ饤 (practical guidelines)

ġΥǡؤνŤߤŤγƤδäΤäƤʤ顢줬¬ ̤ФܤѤ褦ȤǤ礦㤨СĤ ¾ƤˤʤȤȤθ뤳ȤǽǤ ơϺǽŪʥѥ᡼ͤ˱ƶޤ

ǡνŤդϡǸȿ fit ɲýϤФδ ͿޤƱ˽ŤդԤʤˤƤ⡢Ť 1 ȤȤ षʿɸкɾ뤳Ȥּ褬ˤꤽǤ ˡWSSR ̵ѿȤ뤳Ȥˤʤޤ

ƤϤȿγʳǡƤϤοʹԤɾ˻ȤȤɽ ޤ ('*' Ϥ꾮 WSSR 򸫤Ĥʤäȡƺƻ ԤƤ뤳Ȥ̣ޤ)'sum of squares of residuals' (ĺμ ) ϡ'chisquare' (ּ) ȤƤФޤϥǡƤϤ ؿȤδ֤ WSSR ̣Ƥơfit ϤǾ褦Ȥޤ ʳǡŤդ줿ǡˤäơּͤϼͳ (= ǡ ο - ѥ᡼ο) ˶դȤԤޤWSSR 줿 ּ (WSSR/ndf; ndf = ͳ)ޤƤϤɸк (stdfit = sqrt(WSSR/ndf)) ׻Τ˻ȤޤϺǽŪ WSSR Ф ƥݡȤޤ

ǡŤդƤʤСstdfit ϡ桼ñ̤ǤΡǡ ƤϤؿк RMS (ʿʿ) ˤʤޤ

⤷ʥǡͿǡʬ¿ǥ뤬С ּͤϤۤ 1 ˤʤޤ (ܺ٤ϡŬ׳ؤܤ 'ּʬ ' ι򻲾ȤƤ)ξ硢γפ˽񤫤Ƥ뤳Ȱʳˡǥ뤬ǡˤɤ줯餤ɤƤޤäƤ뤫ꤹ뤿ɲäλˡĤޤ

ּ褬 1 Ϥ뤫礭ʤä顢ʥǡɾ ʬۤʤǡƥ¬Ωɸ (outliers)ޤɤʤǥؿʤɤΤǤ礦㤨 plot 'datafile' using 1:($2-f($1)) ʤɤȤƻĺ褹뤳Ȥϡ ΥƥŪʷΤ뤿μ꤬Ȥʤޤǡȴؿ ξԤ褹뤳Ȥϡ¾Υǥͤμ꤬ȤʤǤ礦

Ʊͤˡ1.0 꾮ּϡWSSR ʬۤĥ ʥץȴؿФƴԤΤ⾮Ȥ̣ ǡɾ礭ΤŪʲ꤬ʤΤޤ ϥǥؿŪơŪ˲äüʥץˤư ƤϤˤʤäƤΤǤ礦Ǹξϡꥷץʴؿˤ ФޤԤǤ礦

ƤϤ p-ͤϡͳ٤ȷ̤ΦּͤФּʬۤʬ ؿͤ 1 ͤǤϡƤϤɤΤΤ󶡤 ޤp-ͤϰϤ 0 1 ޤǤǡp-ͤȤƤ⾮뤤ϤȤƤ 礭ϡǥ뤬ǡȤθȵҤƤʤȤ ̣ޤǽҤ٤褦ˡϥǡ꤬뤫ǥ ꤬롢ޤϤȤ߹碌ʤΤȻפޤp-ͤ ȤϡᾮɾƤΤǡäƺǽŪʥѥ᡼ Ѵ٤ȤȤ̣Ǥ礦ʲ⻲:set fit errorscaling (95.25)

ɸŪʥ顼򡢥ѥ᡼Գ˴ؤ롢긽Ūɾ طդ뤳ȡعνɾ뤳ȤǤ褦ˤʤ ˡʤ fit ȡŬѤ褦Ȥ뤢˴Ƥ ɬפǤ礦

fit ϡǾˡμǤ϶̤ơΥμ (y-f(x))**2 νŤդ¤Ǿ褦Ȥ뤳ȤդƤ ϡx ͤ "" ׻˴ؤƤϤɤˡͿƤϤ餺ñ y ˴ؤɾΤߤǤޤ"Ω" (ʬۤΥǥΤ鳰 Ƥǡ) Ͼ˲򰭲ǽޤ

75.4 (control)

ޥ fit ϡset fit 椷ޤ gnuplot Υ桼ѿϡС 5 侩ȤʤäƤޤʲ:fit control variables (75.4.1)

gnuplot εư fit ˱ƶͿ褦Ǥ¿δĶ ޤʲ: fit control environment (75.4.2)

75.4.1 ѿ (control variables)

桼ѿϡ侩Ǥʲ: set fit (95.25)

ǥեȤΤäȤ⾮θ³ (1e-5) ϡѿ

     FIT_LIMIT

ѹǤޤĺʿ¤ 2 Ĥȿƥå״֤ǡοͤ 꾮Ѳʤä硢ƤϤ롼ϡ '«' ȸʤޤ

ȿκͤѿ

     FIT_MAXITER

¤ޤ0 (ޤʤ) ̵̣ޤ

ˤΥ르ꥺ椷ǡ Marquardt-Levenberg ꥺɤΤäƤϡˤ˱ƶͿѿޤ lambda () κǽͤϡ̾ ML 󤫤鼫ưŪ˷׻ޤ 򤢤餫Ѱդͤ˥åȤ

     FIT_START_LAMBDA

˥åȤƤFIT_START_LAMBDA 0 ʲ˥åȤȡưŪ˷׻褦ˤʤޤѿ
     FIT_LAMBDA_FACTOR

ϡּ貽줿ؿá뤤ϸˤĤ lambda 뤤ϸͿޤFIT_LAMBDA_FACTOR 0 Ȥȡ ǥեȤΰ 10.0 Ѥޤ

fit ˤ FIT_ Ϥޤѿ¾ˤ⤢ޤ顢桼ѿȤ ƤϤΤ褦̾ǻϤޤѿϻȤʤ褦ˤΤǤ礦

ѿ FIT_SKIP FIT_INDEX ϡǤ gnuplot Ρgnufit ȸƤФƤ fit ѥåǻȤƤΤǡߤϻѤƤޤ FIT_SKIP εǽϥǡեФ every ҤѰդƤ FIT_INDEX ʣƤϤˡ (multi-branch fitting) ǻȤƤ ΤǤ1 ѿʣƤϤˡϡǤ 3 ƤϤȤƹ ʤƤơǤϻޤλˤ 2 ѿ using ȤƤޤ ʲ: fit multi-branch (75.5)

75.4.2 Ķѿ (control environment)

Ķѿ gnuplot Ω夬ʤФʤޤ󡣤 ˡϥڥ졼ƥ󥰥ƥ˰¸ޤ


     FIT_LOG

ϡƤϤΥ񤫤ե̾ (ӥѥ) ѹޤǥ ȤǤϡȥǥ쥯ȥ "fit.log" ȤʤäƤޤΥǥե Ȥͤϥޥ set fit logfile Ȥäƾ񤭤Ǥޤ


     FIT_SCRIPT

ϡ桼Ǥ˼¹Ԥ륳ޥɤꤷޤǥեȤǤ replot Ǥplot load ޥɤȤСƤϤοʹԾ ɽ򥫥ޥΤǤ礦ϡ set fit script ȤäѹǤޤ

75.5 ʣƤϤ (multi-branch)

ʣƤϤˡ (multi-branch fitting) ǤϡʣΥǡ򡢶̤ ѥ᡼ʣ 1 ѿδؿˡWSSR ¤Ǿ뤳Ȥˤ äƱƤϤ뤳ȤޤƥǡФؿȥѥ᡼ () 'ѿ' ȤȤǤޤ㤨Сǡֹ (-1; 'ǡ' ֹ) ޤϥǡեֹ (-2) 2 ܤΩ ѿȤޤ

: 2 Ĥλؿ z=f(x) ͿƤơ줾ۤʤǡ 򵭽ҤƤ뤬̤֤Υѥ᡼ͤɾ롣 ǡե뤬 x:z:s ηǤäȤȡξʲΤ褦ˤФ褤

    f(x,y) = (y==0) ? a*exp(-x/tau) : b*exp(-x/tau)
    fit f(x,y) 'datafile' using  1:-2:2:3  via a, b, tau

ʣˤĤƤϡǥե "fit.dem" ǻȤ "hexa.fnc" 򻲾ȤƤ

⤷°ѿΥ˺硢ñ̤νŤդǤ 1 ĤλޤۤƤޤǽΤǡŬʽŤդɬפˤʤޤƻޤ ХƤϤΤʣƤϤˡβͤȤѤΤϡ 碌γƻޤФŪʱƶ˴ؤɽͿ뤳Ȥˤʤ 礦

75.6 (starting values)

ƤϤϡŪʺŬ (ĺμ (SSR) κǾͤIJ) ؤμ«ݾڤϤޤ󤬡ɽŪʶ˾ͤͿ뤳ȤϤǤޤ ֥롼Ϥꤹˡ򲿤碌ƤʤΤǡ줬 äɤȽǤΤϤʤǤȤʤޤ

fit ϡ򤫤󤯤ϤȼԤ뤫Τޤ󤷡ФФ ϵޤ󤯤ȤΤϡSSR 礭ѥ᡼ѲФ Ѳ뤤ϿŪ԰ΰ (㤨пͤ礭 ưη夢դ򵯤) ãƤޤäơη "̤ (undefined value)" Υå gnuplot ߤƤޤ 褦ʾ̣ޤ

ŪʺŬͤ򸫤Ĥǽˤϡǽͤ򤽤β˾ʤ Ȥۤܶ᤯˼٤Ǥ礦㤨С⤷ǽʤаʬ礭 ϰǡǽͤ˶ᤤۤ¾βǽλƤޤǽ㤯ʤ ޤǽͤ򸫤ĤĤˡϡǡƤϤؿƱ ξ褷Ŭʶᤵãޤǡѥ᡼ͤѹ replot 뤳Ȥ򷫤֤ȤǤϡ褯ʤƤϤζ˾ͤ Ϥ᤬λɤåΤˤͭѤǤ

Ŭ٤ɤƤϤ᤬"" ƤϤ (ɤ ƤϤɤδˤäħդ줿׳Ūʰ̣ǡ뤤 ΥǥΤŬڤʲǤ롢ȤʪŪʰ̣) ¸ߤʤ ξˤϤʤޤˤäƤϡƥѥ᡼ΰ̣ΤϰϤ С褦͡ʽͤνФ fit 뤳Ȥ˾ޤ Τޤ

75.7 ҥ (tips)

Ǥϡfit ¤Ѥ뤿ˤĤФƤ٤ҥȤ Ҳ𤷤ޤȿŪǤϤʤΤǡܼ߹ޤDz ɤǤ

fit ΰ via ˤϡ2 Ĥ礭ۤʤŪΤ 2 Ĥη ޤvia "file" ηϡХå (÷Ǥμ¹Ԥǽ) ǺǤɤȤ졢ΥեǽͤͿޤθǷ̤¾ (ޤ Ʊ) ѥ᡼ե˥ԡ뤿 update Ȥ Ȥޤ

via var1, var2, ... η÷μ¹ԤɤȤ졢ޥɥҥ εȤäƥѥ᡼ꥹȤԽԤƤϤ¹Ԥꡢ 뤤ϿͤͿƼμ¹ԤԤʤäꤷޤ񤷤 ФƤäͭѤǡƤΥѥ᡼Ф 1 ٤ƤϤľ ¹ԤƤ⡢ɤͤǤʤФޤʤȤ뤫Ǥ 򸫤ĤˤϡĤΥѥ᡼ΤߤФƲȿԤʤ ǽŪˤƤΥѥ᡼Ф 1 ٤ƤϤ᤬ޤȤ ʬ᤯ʤޤǤ򷫤֤ȤǤ

ƤϤԤʤؿΥѥ᡼֤˶̤ΰ¸طʤȤϳǧ Ƥ㤨Сa*exp(x+b) ƤϤ˻ȤäƤϤޤ󡣤 a*exp(x+b)=a*exp(b)*exp(x) ǤäƤξ a*exp(x) ޤ exp(x+b) ȤäƤ

Ūʤ: ͤǤ礭ѥ᡼ȺǤ⾮ѥ᡼椬 礭ƤϤμ«٤ʤޤ椬ޥư εտ˶ᤤޤϤʾʤСۤܤäȼ«ʤ«˼¹ԤǤǤ礦äƤΤ褦ʾϡδؿ㤨 'parameter' '1e9*parameter' ˤȤǽͤ 1e9 dz Ƥ򤱤褦˲ɤ뤫ޤ set fit prescale ǥѥ νͤ˽äƤΥѴǤ餻뵡ǽѤ뤫 줫ɬפǤ礦

⤷ؿƤϤѥ᡼򷸿Ȥ롢ñʴؿ 񤱤ʤ顢ϤȤƤ⤤Τ󤽤ƤΤʤ顢꤬ ϤǤϤʤΤǡȿϾʤǼ«Ǥ礦⤷ 餿äǤफ⤷ޤ

ºݤμ¸ιֵǤϥǡϤФ뤤ĤλؼͿ졢 ǡؤκǽδؿƤϤ᤬Ԥʤޤ⤷ȡ ʣ¦̤ˤҤȤĤбʣΥץɬפΤޤ󤬡 ƤδؿƤϤΥѥ᡼ߤä ФǤ礦fit ȤСѥ᡼λľܥ ǥؿ񤯤ȤˤꡢϤФ 1 ǺѤΤǤϤ 񤷤ƤϤη׻ȤޤǡѴ⤫ʤγ 򤱤뤳Ȥޤ⤷줬ƤϤؿñ㲽˴ؤơ ̷⤷ƤȻפʤ顢Ǥ

"singular matrix" Υåϡ Marquardt-Levenberg 르ꥺ Υ롼󤬡ȿФѥ᡼ͤη׻ʤȤ ̣ޤξ硢̤ʽͤϤ뤫ؿ̤ʷǽľ ñʴؿˤƤߤƤ

Ǹˡ¾ƤϤѥå (fudgit) Υޥ˥奢뤫顢ʸ 󤹤褦ʤѤ夲ޤ: "Nonlinear fitting is an art! ( ƤϤˡϷݽѤ !)"

76 Help

helpޥɤϡȤ߹ߥإפɽޤˤĤƤ ꤷȤˤϡν񼰤ȤäƲ:


       help {<̾>}

< ̾> ꤵʤäϡgnuplot ˤĤƤδñ ɽޤꤷܤˤĤƤɽ줿塢Ф ܤΥ˥塼ɽ졢κ̾Ϥ뤳ȤǺܤФإ ³뤳ȤǤޤơκܤɽ줿ˡ ̾Ϥ׵ᤵ뤫ޤ 1 ιܤΥ٥ޤ 򷫤֤Ȥ䤬ơgnuplot Υޥɥ饤ؤޤ

ޤ (?) ܤȤƻꤹȡߤΥ٥ιܤΥꥹȤ ɽޤ

77 History

ޥ history ϡޥΰɽꡢ¸ꡢ ΥޥɤƼ¹ԤꤷޤΥޥɤεưѤˤϡ ʲ: set history (95.33)

history ޥɤǻϤޤϹԤϡޥˤ¸ޤ

:


     history               # Τɽ
     history 5             # ľ 5 Ĥɽ
     history quiet 5       # ȥֹʤľ 5 Ĥɽ
     history "hist.gp"     # Τե hist.gp ˽񤭽Ф
     history "hist.gp" append # Τե hist.gp ɲä
     history 10 "hist.gp"  # ľ 10 Ĥե hist.gp ˽
     history 10 "|head -5 >>diary.gp" # ѥפ 5 Ľ񤭽Ф
     history ?load         #  "load" ǻϤޤΤ٤Ƥɽ
     history ?"set c"      # Ʊ (ʣθϰǰϤ)
     hi !reread            # "reread" ǻϤޤǤ⿷Ԥ¹
     hist !"set xr"        # Ʊ (ʣθϰǰϤ)
     hist !55              # 55 ܤܤΥޥɤƼ¹

78 If

:
     if (<condition>) { <commands>;
            <commands>
            <commands>
     } else {
            <commands>
     }

ν:
     if (<>) <ޥɹ> [; else if (<>) ...; else ...]

ΥС gnuplot ϡif/else Υ֥å򥵥ݡȤƤ  if, else θ˳ϥå "{" ³硢"}" λ֥åޤǤΤ٤Ƥʸ (ʣϹԤ) ˾Ūʼ¹ԤŬ Ѥޤif ޥɤҤˤ뤳ȤǤޤ

Ť 1 Ԥ if/else ʸޤݡȤƤޤ֥ ν񼰤ȤϺƤϤޤ󡣰ʲ: if-old (78.1)

78.1 If-old

gnuplot С 4.4 ޤǤϡif/else ޥɤϰϤ 1 α ޤäƤޤߤʣԤ楫å { } ǰϤǽ񤯤ȤǤ ŤĤƤޤ楫åΥ֥åǻȤ ȤϤǤޤ

if "{" Ȥʤʤϡ< > (Ǥʤ) ʤ < ޥɹ> Υޥ (ʣ) ¹Ԥ졢 () ʤ åפޤξϹԤκǸˤʤ뤫else ȤޤǤ줬Ԥޤ; ȤƱԤʣΥޥ֤ ǽǤդΥޥ (if ιʸ) ϤǤϽʤ ȤդƤ

:

     pi=3
     if (pi!=acos(-1)) print "?Fixing pi!"; pi=acos(-1); print pi

¹Ԥȡ
     ?Fixing pi!
     3.14159265358979

ɽޤ
     if (1==2) print "Never see this"; print "Or this either"

Ȥȡɽޤ

¾:

     v=0
     v=v+1; if (v%2) print "2" ; else if (v%3) print "3" ; else print "fred"

(٤ǸιԤ򷫤֤ƤߤƤ !)

79 For

plot, splot, set, unset ޥɤǤϡ֤ for Ȥ ȤǤޤϡŪʥޥɤʣ¹Ԥ̤ ΤΤΤμ¹ԤǤϷ֤ѿˤäƿϺɾޤdo ޥɤǤϡɤʥޥǤ֤ⷫ¹Ԥ뤳ȤǤޤ ֤ϸߤϰʲ 2 Ĥη򥵥ݡȤƤޤ:


     for [intvar = start:end{:increment}]
     for [stringvar in "A B C D"]

:


     plot for [filename in "A.dat B.dat C.dat"] filename using 1:2 with lines
     plot for [basename in "A B C"] basename.".dat" using 1:2 with lines
     set for [i = 1:10] style line i lc rgb "blue"
     unset for [tag = 100:200] label tag

֤Ҥ⥵ݡȤƤޤ:


     set for [i=1:9] for [j=1:9] label i*10+j sprintf("%d",i*10+j) at i,j

ʤˤĤƤϡʲ: iteration (20), do (72)

80 Import

ޥ import ϡ桼ؿ֥̾ͭȤ ޤؿ˷ӤĤޤϡgnuplot Ѳǽʴؿĥ ץ饰󵡹ޤ

:

     import func(x[,y,z,...]) from "sharedobj[:symbol]"

:

     # ؿ myfun  "mylib.so"  "mylib.dll" Ǻ
     # gnuplot Ǥ衢ޤϿͷ׻Ѳǽ
     import myfun(x) from "mylib"
     import myfun(x) from "mylib:myfun"    # Ʊ


     # "theirlib.so"  "theirlib.dll" Ѥδؿ theirfun 
     # ۤʤ̾Ѳǽ
     import myfun(x,y,z) from "theirlib:theirfun"

ץ϶֥ͭȤȤͿ줿̾ˡڥ졼ƥ󥰥 ƥ˽ä ".so" ".dll" ɲäޤեѥ̾ȤƸ ˥ȥǥ쥯ȥ꤫Хѥ̾ȤƸޤڥ ƥ󥰥ƥ༫Τ LD_LIBRARY_PATH DYLD_LIBRARY_PATH Ǥդ ǥ쥯ȥ򸡺ޤ

81 Load

load ޥɤϡꤵ줿ϥեγƹԤ򡢤줬Ū 줿Τ褦˼¹Ԥޤsave ޥɤǤĤ줿եϡ load 뤳ȤǤޤͭʥޥɤν񤫤줿ƥȥե ĤСϡloadޥɤˤäơ¹Ԥ뤳ȤǤޤ load Υեˤ load ޤ call ޥɤä ⹽ޤ󡣥ޥΥȤˤĤƤϡʲ: comments (11) load Ȥ˰ͿˡˤĤƤϡʲ: call (69)

:

       load "<ϥե̾>"

ϥե̾ϰǰϤޤʤФʤޤ

load ޥɤϡɸϤΥޥɤϤΤˡ̤ʥե ̾ "-" ѰդƤޤϡgnuplot Υޥɥե뤬 ĤΥޥɤɸϤդ뤳Ȥ̣ޤܺ٤ˤĤ ϡʲ: batch/interactive (8)

Unix Τ褦 popen ؿ򥵥ݡȤ褦ʥƥǤϡ'< ' ǻϤޤ ե̾ˤ뤳Ȥǡϥեѥפɤ߹ळȤǤޤ

:

       load 'work.gnu'
       load "func.dat"
       load "< loadfile_generator.sh"

gnuplot ؤΰȤͿ줿ե̾ϡۤΤ load ޥɤˤäƼ¹Ԥޤϡꤵ줿˥ɤ졢θ gnuplot Ͻλޤ

82 Lower

:
     lower {plot_window_nb}

ޥ lower (raise ȿ) ϡpm, win, wxt, x11 gnuplot ÷Ϸμ¹ˡ襦ɥ (ظ) ˲ 襦ɥ򡢥ǥȥå׾Υɥޥ͡ z ɥνŤʤβ֤ޤ

x11 wxt Τ褦ʣ襦ɥ򥵥ݡȤƤ硢 եȤǤϤΥޥɤϤʣΥɥ߽˲ǽ 줿ɥֲˡǸ˺줿ɥ־¤٤ ץֹ椬Ϳ줿硢б襦 ɥ¸ߤФΤߤޤ

ץϡñ襦ɥνϷʤ pm win Ǥ̵뤵ޤ

83 Pause

pause ޥɤϡޥɤ³Ǥդʸɽ塢ꤵ ֤ޤϡԥޤԤޤpause ޥɤϡ load ѤΥեȶ˻ѤȡˤʤǤ礦

:

     pause <time> {"<string>"}
     pause mouse {<endcondition>}{, <endcondition>} {"<string>"}

< time> ϡǤդޤϼǤ-1 ꤹȲԥ Ԥޤ0 ꤹȰԤοꤹȤÿ ޤ¹ԴĶðʲλֻ򥵥ݡȤƤʤ硢λ֤ÿ˴ݤޤpause 0 print ƱǤ

ѤƤϷ mousing (ޥǽ) 򥵥ݡȤƤ硢 pause mouse ϡޥå뤫 ctrl-C ޤԤĤ褦 ˤʤޤǤʤϷޤϥޥǽͭˤʤäƤʤ pause mouse pause -1 ƱǤ

ġ뤤ʣνλ (endcondition) pause mouse θͿ 줿硢ΤΤɤΰĤǤ pause ϽλޤǤ뽪 λϡkeypress, button1, button2, button3, close, any Τ줫Ǥpause Ϥˤäƽλ硢줿 ASCII ɤ MOUSE_KEY ¸졢ʸ켫Ȥϡ1 ʸʸ Ȥ MOUSE_CHAR ֤ޤkeypress λΰĤǤС ۥåȥ (ƥޥ) ̵ˤʤޤbuttons3 λ ΰĤǤС絡ǽ̵ˤʤޤ

ɤξǤޥκɸѿ MOUSE_X, MOUSE_Y, MOUSE_X2, MOUSE_Y2 ¸ޤʲ: mouse variables (23.2)

: pause ޥɤ OS ؤΥޥɤǤΰǤϤʤΤǡ ۤʤ֤Ǥϰۤʤư򤹤ǽޤ(ϡƥ ȥեåɤΤ褦˺ߤ뤫ˤޤ)

:

     pause -1    # ԥޤԤ
     pause 3     # 3 Ԥ
     pause -1  "³ˤ return ǤäƤ"
     pause 10  "ʤǤ ? 3  spline Ǥ"
     pause mouse "򤷤ǡǤդΥܥ򥯥åƤ"
     pause mouse keypress "ͭʥɥ A-F ʸϤƤ"
     pause mouse button1,keypress
     pause mouse any "ǤդΥܥǽλޤ"

Ǥ "pause mouse key" ϡͭ襦ɥǤǤդΥ ϤˤäƺƳޤ̤ʥϤޤԤĤ褦ˤϡʲΤ褦 reread ˤ롼פȤȤǤޤ:


     print "襦ɥ Tab ǤĤޤ"
     load "wait_for_tab"

ե "wait_for_tab" ϰʲΤ褦ʤΤǤ:


     pause mouse key
     if (MOUSE_KEY != 9) reread

84 Plot

plot gnuplot ǿޤδŪʥޥɤǤ ϴؿ ǡΡ¿μΥɽ󶡤ޤplot 2 δؿ ǡΤ˻Ȥ졢splot 3 ζ̤ǡ 2 ޤ

:

     plot {<ranges>} <plot-element> {, <plot-element>, <plot-element>}

(plot-element) ϡ (definition) ؿ (function) (data source) Τ줫 1 Ĥˡץ°Ҥʤɤ ΤǤ:

      (plot-element):
          {<iteration>}
          <definition> | {sampling-range} <function> | <data source>
          {axes <axes>} {<title-spec>}
          {with <style>}

ǤΥɽϡ㤨 with lines with boxplot ɤΤ褦˥ with Ƿꤷޤʲ: plotting styles (II)

褹ǡϡ1 Ĥδؿ (޲ѿ⡼ (parametric) Ǥ 2 Ĥδؿ)ޤϰĤΥǡե뤫ɤ ޤΡޤϻ줿̾դǡ֥åɤ߹ ΡΤ줫ǤޤǶڤ뤳ȤǡʣΥǡե롢 ǡ֥åؿʤɤ 1 Ĥ plot ޥɤǤޤʲ: data (84.3), inline data (19), functions (84.6)

ؿѿǤϡϤޤ󡣲 3 ܤ 򻲾ȤƤ

:

     plot sin(x)
     plot sin(x), cos(x)
     plot f(x) = sin(x*a), a = .2, f(x), a = .4, f(x)
     plot "datafile.1" with lines, "datafile.2" with points
     plot [t=1:10] [-pi:pi*2] tan(t), \
          "data.1" using (tan($2)):($3/$4) smooth csplines \
                   axes x1y2 notitle with lines 5
     plot for [datafile in "spinach.dat broccoli.dat"] datafile

ʲ: show plot (95.64)

84.1 (axes)

(axes) ϡ4 ȤѤǤޤ;  < axes> ϡľ ɤμ˼٤碌뤫ȤȤ򤹤Τ˻Ȥޤ x1y1 ϲμȺμ; x2y2 Ͼȱμλ; x1y2 ϲ ȱμλ; x2y1 ϾȺμλǤplot ޥɤǻꤵ 줿ϰϤϡκǽμ (Ⱥ) ˤΤŬѤޤ

84.2 Binary

Хʥǡե:

ե̾θ binary ΥɤͿʤФޤ󡣥ե ˴ؤ뽽ʬܺ٤ʾϡ桼ޥɥ饤󤫤Ϳ뤫 ޤϥݡȤƤ filetype ΥХʥΥե뤽켫Ȥ ȴФ뤫ɬפޤХʥեˤϡ礭 2 Ĥ binary matrix binary general ޤ

binary matrix ϡ32 ӥå IEEE ʤư (float) 2 η¤ӡκɸͤɽԤɲäƤޤplot ޥɤ using ˤơ1 (column(1)) ϹιԤκɸ Ȥ2 (column(2)) κɸ򻲾Ȥ3 (column(3)) ϡ Τκɸξ¸Ƥͤ򻲾Ȥޤ

binary general ϡǤոĤΥǡޤߡξϥ ɥ饤ǻꤹɬפޤ㤨 array, record, format, using ʤɤǥǡμǤޤ¾ˤ⡢ե إåɤФꡢǥ (endian) ѹ뤿ͭѤʥ ޥɤޤ֡ǡѴԤʤޥɤȤޤ ϡͤɸܲ줿ǡξ硢κɸեˤϴޤޤ Ȥɤ뤫Ǥmatrix Хʥեƥȥǡ ϤȰ㤦ȤǤgeneral Хʥ 1,2,3 Ȥä using ȤֹȤ鷺 1 ܤϥե 1 ܡ 뤤 format ꥹȤǻꤵ줿Ρˤʤޤ

ޤޤ binary ץФŪʥǥեȤǽǡ (s)plot < filename> binary ... ޥɤͿ륪ץ Ʊ񼰤ǻǤޤν񼰤 set datafile binary ... Ǥ Ūʵ§ȤơǥեȤΥѥ᡼ϥե뤫ȴФ줿 ᡼Ǿ񤭤졢ϥޥɥ饤ǻꤵ줿̤ʥѥ᡼ Ǿ񤭤ޤ

array, record, format, filetype binary general ꤹ褦ʥɤĤƤʤСǥեȤΥХ binary matrix Ǥ

general Хʥǡϡ̤ʥե̾ '-' Ȥäƥޥɥ饤 Ϥ뤳ȤǤޤϥܡɤϤտޤ ΤǤϤʤѥפȤäƥץ˥ХʥѴ뤿 ΤΤǤХʥǡˤϺǸɽ椬ޤΤǡgnuplot ϥѥפǡɤ߹硢array Ҥǻꤷˤ ޤǥǡɤ߹³ޤܺ٤˴ؤƤϡʲ:binary matrix (97.1.1), binary general (84.2.1)

index ɤϡեեޥåȤ 1 ĤΥեˤĤ 1 ζ̤ʤᡢݡȤޤevery using ե륿 ϥݡȤޤusing ϡǡ 3 Ȥηɤޤ Τ褦Ưޤ

Хʥե splot Υǥ⡣

84.2.1 General

binary ñȤǻꤷϡͤʳʻҤɸ ȡƳʻǤͤξĥХʥǡǤ뤳Ȥ̣ (ʲ: binary matrix (97.1.1))¾ηΥХʥǡξϡΥǡ η̣ɲåɤꤹɬפޤǰʤ顢 ɲåɤν񼰤ñǤϤޤ󤬡Ǥ general ʥ⡼ɤϡä¿̤Υǡ gnuplot 褦ʥץꥱ ˼äƤͭѤǤ

:

     plot '<file_name>' {binary <binary list>} ...
     splot '<file_name>' {binary <binary list>} ...

general Хʥϡե빽¤˴ؤ˴Ϣ륭ɡ ʤ array, record, format, filetype ʤɤ < binary list> Ϳ뤳Ȥͭˤʤޤʳξϡͤ matrix Хʥȸʤޤ(ܺ٤˴ؤƤϡʲ: binary matrix (97.1.1))

: Ǥ gnuplot ǤϡХʥǡѤΥɤβˡplot splot ǤϾ㤤ޤΰ̣ΰ㤦սϡ Ǥ gnuplot Ǥϡΰ뤤ξѹǽޤ

gnuplot ϡ㤨 PNG Τ褦˴˼ʵҤɸŪʥХ եɤ߹ˡ򤤤ĤΤäƤޤΰϡò ̤ show datafile binary Ϥ뤳ȤǻȤǤޤʳΤΤˤĤƤϡǰϥХʥǡϥƥȥǡƱͤ˹ͤ뤳ȤǤޤˤϡusing 򤵤󤬤ޤ format ʸꤷʤä硢gnuplot ϥХʥͤο < using list> Ϳֹޤ㤨С using 1:3 Ȥ 3 󤺤ĥǡɤ߼졢2 ܤΤΤ̵뤷 ޤ襹ˤϥǥեȤ using ꤬ޤ㤨 with image ϥǥեȤ using 1 with rgbimage ϥǥե using 1:2:3 Ȥޤ

84.2.2 Array

Хʥեɸܤ礭ꤷޤɸ gnuplot ƤޤμɽꤷʤФޤ㤨 array=(10,20) ϡ2 Ǻǽμ (x) ˤ 10 2 ܤμ (y) ˤ 20 ɸܲǡ뤳Ȥ̣ޤե λޤǥǡ³Ȥ򼨤ΤͤȤޤǡ 1 ϡåϾάǤޤʣΥǡΥʬΥΤˡ ȤȤǤޤ㤨 array=25:35 2 Ĥ 1 ǡ եˤ뤳Ȥ̣ޤ
     :  gnuplot С 4.2 Ǥ array=(128,128) Ȥ񼰤
            Ϥʤarray=128x128 Ȥ񼰤ѤƤޤŤ
            񼰤Ͽ侩Ƥޤ

84.2.3 Record

Υɤ array Ʊ񼰤ǡƱǽ󶡤ޤ record gnuplot ˺ɸưޤ󡣤ϡΤ褦 ɸ󤬡ХʥǡեΤ˴ޤޤƤΤΤ ΤǤ

84.2.4 Skip

ΥɤϡХʥեΤΥåפǽˤޤ 㤨СΥե뤬ǡΰγϰ֤ 1024 ХȤΥإå Ĥ褦ʾˤϡʲΤ褦ˤȻפǤ礦:
     plot '<file_name>' binary skip=1024 ...

եʣΥ쥳ɤ硢Τ줾ФƬΤ餷 ֤ꤹ뤳ȤǤޤ㤨СǽΥ쥳ɤ 512 ХȤ åפ2 ܡ3 ܤΥ쥳ɤ 256 ХȤ򥹥åפ ϰʲΤ褦ˤޤ:
     plot '<file_name> binary record=356:356:356 skip=512:256:256 ...

84.2.5 Format

ǥեȤΥХʥϡñư (float) ġǤ ꤹ뤿ˡ format ѿΥ˴ؤܺ٤ʾ Ǥޤ㤨 format="%uchar%int%float" ϡǽ using Ȥʤʸѿ (unsigned char) 2 ܤĤ (int) 3 ܤñư (float) ꤷƤޤ⤷ Ҥο꾮ϡĤѿϰ Τ˺ǸͿѿޤ

using Ʊ͡* ʸĤɤ߼ΤƤ񼰤˻ꤹ ȤǤޤ֤եɤؤβˤäưۤη֤ ꤹ뤳ȤǤޤ㤨Сformat="%*2int%3float" ϡ3 Ĥ ¿ǡɤˡ2 Ĥǡɤ߼ΤƤޤѤǤѿ ΰϡshow datafile binary datasizes Ǹ뤳ȤǤޤ ϡ줾ΥѥˤäƤΥХȥȤȤ˥ޥ ¸ѿ̾Υ롼פȡޥ˰¸ʤѿ̾Υ롼פʬ Ƥޤ

84.2.6 Endian

եΥХʥǡΥǥϡgnuplot ưץåȥ ΥǥȤϰۤʤɤޤĤλ gnuplot ХȤɤΤ褦˰Ǥޤ㤨 endian=little ϡХʥե򡢤ΥХȤ¤Ӥ夫 礭¤ǤȸʤޤץϰʲΤΤȤޤ


             little:  夫礭ʷ¤
                big:  礭ʷ夫龮ʷ¤
            default:  compiler Ʊǥȸʤ
        swap (swab):  ǥѹ (褦ʤ餳
                      ȤäƤߤƤ)

gnuplot ϡѥ˥ץ󤬻ꤵƤС"middle" ( "pdp") ǥ⥵ݡȤǤޤ

84.2.7 Filetype

gnuplot ϡĤɸŪʥХʥեˤĤƤɬפʾ Υե뤫ȴФȤǤޤ㤨 "format=edf" ESRF åեΥեȤɤ߹ߤޤߥݡȤƤ ˤĤƤϡshow datafile binary filetypes ǸƤ

̤ʥեȤ auto ꡢξ gnuplot ϥХʥ γĥҤݡȤƤɸŪʳĥҤǤ뤫 åޤ

ޥɥ饤󥭡ɤϥե뤫ɤ߼񤭤Τ˻Ȥ 졢ե뤫ɤ߼ϥǥեȤ񤭤ޤʲ:set datafile binary (95.19.6)

84.2.7.1 Avs

avs ϡưŪǧ᡼ФХʥեη ĤǤAVS ñʥեޥåȤǡץꥱ֤ǤȤ Τ˺ǤŬƤޤϡ2 Ĥ long (xwidth ywidth) ȡ θ³ԥ󤫤ꡢγƥԥ alpha/red/green/blue 4 ХȤޤ

84.2.7.2 Edf

edf ϡưŪǧ᡼ФХʥեη ĤǤEDF ESRF ǡեޥå (ESRF Data Format) ̣ ơ edf ehf ξη򥵥ݡȤƤޤ (Ԥ ESRF Header Format)λѤ˴ؤܤϰʲǸĤǤ礦:


 http://www.edfplus.info/specs

84.2.7.3 Png

gnuplot png/gif/jpeg Ѥ libgd 饤֥Ȥ褦˥󥹥 뤵Ƥ硢βХʥեȤɤ߹ळ ȤǤޤʲΤ褦Ūʥޥ
     plot 'file.png' binary filetype=png

ȤȤǤޤ餫ʲΤ褦ꤷơĥҤ鼫ưŪ˲ưŪǧ뤳ȤǤޤ
     set datafile binary filetype=auto

84.2.8 Keywords

ʲΥ (keyword) ϡХʥե뤫ɸȤ ˤΤŬѤޤĤޤꡢbinary array, matrix, image θġǤ x,y,z ΰ֤ؤ֤ΤΤΤǤ

84.2.8.1 Scan

gnuplot ХʥեɤΤ褦뤫ȤȤȼºݤ Ǹ뼴Ȥδ֤δطˤĤƤ¿κ𤬵ޤ κ򸺤餹ˤϡgnuplot ϥХʥե "" //̡ޤ ®//٤ȹͤȤǤ礦Υɤ gnuplot ˡΤɤκɸ (x/y/z) ˳Ƥ ꤷޤ 2 ġޤ 3 Ĥʸ¤Ӥɽǽʸ ˡʸˡ3 ܤʸ̤бޤ㤨С scan=yx ϡǤ® () y б̤® () x б뤳Ȥ̣ޤ

⡼ɤ plot ξ硢ˤ x y 2 ĤʸȤȤ Ǥsplot ФƤ x, y, z 3 ĤʸȤȤǤޤ

Ƥ˴ؤƤϡ//̤ľɸؤΤߤ¤ ̤ˤޤ󡣤ͳǡɸؤγƤΤλҤѰդ Ƥơľɸ x, y, z t (), r, z ʤäƤޤ

84.2.8.2 Transpose

scan=yxޤ scan=yxz ƱǤ

84.2.8.3 Dx, dy, dz

gnuplot ɸ硢δֳ֤ϤΥɤǻꤵ줿 ΤѤޤ㤨 dx=10 dy=20 x 10y 20 δֳ֤ɸܲ줿Ȥ̣ޤdy dx ʤлȤޤ Ʊͤ dz dy ʤлȤޤ󡣤⤷ǡμꤷ ɤμ礭硢Ĥμδֳ֤ϡꤵ줿 Ǥ⤤ΤΤƱͤѤޤ㤨вե뤫ɤ ޤ졢dx=3.5 Τ߻ꤵ줿硢gnuplot x δֳ֤ y δֳ֤ 3.5 Ѥޤ

ʲΥɤɸˤΤŬѤޤʲΤΤmatrix ХʥեˤȤޤ

84.2.8.4 Flipx, flipy, flipz

Хʥǡե gnuplot Ȱפʤ ޤˤޤΥɤϡ줾 x, y, z Υǡ ոˤޤ

84.2.8.5 Origin

gnuplot ž (transpose) ȿž (flip) ˤƺɸ硢 κˤʤ褦ˤޤʤǡž֤ ȿžιԤʤ줿ľɸϤ 1 ݸ¤褦ˤޤ

򥰥դΤ¾ξ֤硢origin ɤǻ gnuplot κ碌ޤλϡplot 2 Ĥκɸȡsplot Ǥ 3 ĤκɸȤꤷƤ㤨 origin=(100,100):(100,200) ϡĤΥե˴ޤޤ 2 ĤΥ Фǡ2 ФǤ2 ܤȤ origin=(0,0,3.5) 򤢤ȡ 3 ѤλǤ

84.2.8.6 Center

origin ȻƤޤΥɤϡ濴Υ ǻꤷˤʤ褦֤ޤ㤨 center=(0,0) Τ褦ˤ Υ Inf ΤȤ center ŬѤޤ

84.2.8.7 Rotate

ž (transpose) ȿž (flip) ޥɤϺɸȺɸˤ νͿƤޤ٤˴ؤ봰ϡ2 βžѤ򵭽Ҥžѥ٥ȥͿ뤳ȤˤԤʤȤǽˤ ޤ

rotate , plot, splot ξǡ2 ̤ФŬ ޤžϺɸʿ̤γ٤˴ؤƹԤʤޤ

٤ϡ饸ñ̤Ǥpi degrees ܿȤƤΥ饸Ǥɽ Ǥޤ㤨Сrotate=1.5708, rotate=0.5pi, rotate=90deg ٤Ʊ̣Ǥ

origin ꤵ줿硢žʿ԰ư˺濴ˤƹ ʤޤʳǤϲž濴 (center) ˴ؤƹԤʤ

84.2.8.8 Perpendicular

splot ˴ؤƲž٥ȥ꤬٥ȥɽ 3 Ĥο Ȥꤹ뤳ȤǼƤơΥ٥ȥ 2 xy ʿ̤ Ƹդ줿ˡ٥ȥ (perpendicular) ɽƤޤ 󤽤ΥǥեȤ (0,0,1) Ǥrotate perpendicular ξ 뤳Ȥˤꡢ3 ̵إǡդ뤳Ȥ ʤޤ

ޤǽ 2 βžԤʤ졢μ 3 βžԤʤޤ ĤޤꡢR' 򤢤Ѥˤ 2 x 2 βžȤP (0,0,1) (xp,yp,zp) ػҸ˲ž 3 x 3 ιȤR' 򺸾ʬ Ȥƻ 3,3 ʬ 1 Ǥ¾ʬ 0 Ǥ褦ʹ (Ĥ z βž) ȤСѴɽˤط v' = P R v Ȥʤޤǡv ϥǡե뤫ɤ߹ޤ줿 3 x 1 ΰ֥٥ȥǤեΥǡ 3 ŪʤΤǤʤ ϡŪʥ롼뤬ŬѤ 3 Υǡȸʤޤ ( С̾ z ɸ 0 Ȥ졢xy ʿ 2 ǡȸʤޤ)

84.3 ǡ (data)

եǼ줿ΥŪʥǡϡplot ޥɥ饤ǡ ǡե̾ (< datafile> ) ñޤŰǰϤǻ 뤳ȤˤäɽǤޤ

:

     plot '<file_name>' {binary <binary list>}
                        {{nonuniform} matrix}
                        {index <index list> | index "<name>"}
                        {every <every list>}
                        {skip <number-of-lines>}
                        {using <using list>}
                        {smooth <option>}
                        {volatile} {noautoscale}

Ҥ binary, index, every, skip, using, smooth ϡ 줾ʬޤñ˸ȡbinary ϥǡХʥ ե뤫Ǥ褦ˤindex ϥޥǡե뤫 ɤΥǡɽΤӡevery ĤΥǡ礫 ɽΤӡusing ϰԤɤ᤹Τ smooth ñ֤ȶԤޤsplot 褯 񼰤Ȥޤsmooth ץϥݡȤƤޤ

noautoscale ϡưŪ˼ϰϤꤵ뵡ǽͭ ˡǡˤĤƤϡ̵뤵 ( ư̼ܵǽη׻оݤ鳰) 褦ˤޤ

ƥȥǡե:

ǡեϡԤˤĤʤȤĤΥǡޤɬפ (using ϰԤĤΥǡݥȤ֤ȤǤޤ)# (VMS Ǥ !) ǻϤޤԤϡȤȤư졢̵뤵ޤƥ ϡ(x,y) Ȥɽޤ顼Сޤޤɽե顼 plot Ǥ (ʲ: errorbars (95.24), errorlines (84.5))ƥǡϡ (x,y,ydelta), (x,y,ylow,yhigh), (x,y,xdelta), (x,y,xlow,xhigh), (x,y,xlow,xhigh,ylow,yhigh) Τ줫̣ޤ

ɤʾǤ⡢񼰤λҤ using ץˤäͿƤ ʤСǡեγƹԤοϡۥ磻ȥڡ (Ĥޤʣ ζ򤫥) ˤäƶڤƤɬפޤΥۥ磻ȥ ϡƹԤιܤ˶ڤޤŰǰϤޤ줿ۥ磻 ȥڡδǤ̵뤵졢äƼΤ褦ʥǡԤ 3 󡢤 ʤޤ:

     1.0 "second column" 3.0

ǡϡؿ e, E ʸĤؿɽǽ񤫤ƤƤ⹽ޤ 󡣥ޥ set datafile fortran ͭʾϡfortran λؿ d, D, q, Q Ȥޤ

ɬפǤΤϤĤ (y ) ΤߤǤ⤷ x ͤά줿 顢gnuplot Ϥ 0 ǻϤޤͤȤѰդޤ

ǡեˤơ֥󥯹 (Ȳԡʳʸޤޤʤ) ϽפǤ

1 ԤΥ֥󥯹Ԥϡplot Ϣ³ؼޤ; ֥󥯹Ԥˤäƶ ڤ줿ǷФ뤳ȤϤޤ (line style ǽ񤫤Ƥ ˤ)

2 ԤΥ֥󥯹Ԥϡ̡Υǡ֤ζڤ򼨤ޤʲ:index (84.3.3)

⤷ autoscale ξ֤Ǥ (ʲ: set autoscale (95.3))Ƥ ǡݥȤޤ褦˼ưŪ˰Фơ꤬񤫤 ʤƤ꤬ޡޤϡ2 Ĥη̤ޤ: i) splot Ǥϡ̤γѤ̤γѤ˰פƤʤȤޤ ξ硢ĤϽ񤫤뤳ȤϤޤii) 2 μǤΡƱ x ϰϤΥǡɽκݡ⤷ x2 μФ꤬񤫤Ƥʤ ϡx ɸäƤʤȤޤ x (x1) Ƥ ˤޤǼưŪ˰ФΤФx2 ϤǤϤʤǤ Ǥ򸫤뤳ȤǤޤ:


     reset; plot '-', '-' axes x2y1
     1 1
     19 19
     e
     1 1
     19 19
     e

򤱤ˤϡset autoscale ޥɤ fixmin/fixmax ץ ȤȤǤޤϡιߤ˹礦褦˼ϰ ưŪ˳ĥ뵡ǽ̵ˤޤ

٥κɸʸǡե뤫ɤ߹ळȤǤޤ (ʲ: labels (47))

84.3.1 Every

every ϡ褹ǡǡ礫Ū˥ץ 󥰤뤳Ȥǽˤޤ

Ǥ ֥ݥȡפϥե 1 ĤιԤˤäǡ ǤΡ֥֥åפϡ֥ǡ֥å(ʲ: glossary (18)) ƱΤ̣뤳ȤȤޤ

:

        plot 'file' every {<ݥʬ>}
                          {:{<֥åʬ>}
                            {:{<ϥݥ>}
                              {:{<ϥ֥å>}
                                {:{<λݥ>}
                                  {:<λ֥å>}}}}}

褹ǡݥȤϡ< ϥݥ> < λݥ> ޤ < ʬ> äӡ֥å < ϥ֥å> < λ֥å> ޤ < ֥åʬ> äӤޤ

ƥ֥åκǽΥǡϡեκǽΥ֥åƱ褦ˡ 0 ֡פȿޤ

ץåȤǤʤޤԤ⥫Ȥ뤳ȤդƲ

ĤοϾάǤޤ; ʬΥǥեȤ 1 ϤͤϺǽ ݥȤǽΥ֥åƽλͤϺǸΥݥȤǸΥ֥ ꤷޤevery Υץ ':' ǽΤϵƤޤ every ꤷʤСƤιԤƤΥݥȤץåȤޤ

:

      every :::3::3   # 4 ܤΥ֥åӤޤ (0 ֤ǽ)
      every :::::9    # ǽ 10 ֥åӤޤ
      every 2:2       # 1 ĤΥ֥å 1 ĤΥݥȤ
                      # ޤ
      every ::5::15   # 줾Υ֥åǥݥ 5  15 ޤǤ
                      # Ӥޤ

:

ñ plot ǥ (simple.dem)

,

޲ѿ⡼ɤǤ splot ǥ

,

޲ѿ⡼ɤǤ splot ǥ

84.3.2 ǡե (example)

ϡե "population.dat" Υǡޤˤ Ǥ


     pop(x) = 103*exp((1965-x)/10)
     set xrange [1960:1990]
     plot 'population.dat', pop(x)

ե "population.dat" ϼΤ褦ʥեǤ


     # Gnu population in Antarctica since 1965
        1965   103
        1970   55
        1975   34
        1980   24
        1985   10

binary :


     # 2 Ĥ float ͤ (2 ܤ̵̣ͤ)ɤ߼Τơ
     # Ĥ float ̵ͤ¤Ĺ³ 1 ǡȤƻ
     plot '<file_name>' binary format="%float%*float" using 1:2 with lines


     # ǡե뤫ɸΤɬפʾ򤹤٤ƤΥإ
     # ˴ޤǤ EDF եξ
     plot '<file_name>' binary filetype=edf with image
     plot '<file_name>.edf' binary filetype=auto with image


     # 3 Ĥʤʸ (unsigned char)  RGB ο
     # ʬȤ򤷡y ȿžɸʿ̾ѹ
     #  (夬ˤʤ褦)ԥδֳ֤ꤷե
     # ˤ 2 ĤβޤޤƤơΤĤ origin ʿ
     # ư롣
     plot '<file_name>' binary array=(512,1024):(1024,512) format='%uchar' \
          dx=2:1 dy=1:2 origin=(0,0):(1024,1024) flipy u 1:2:3 w rgbimage


     # 4 Ĥ̤Υǡʤꡢɸǡե˴ޤޤƤ
     # 롣ե gnuplot ¹ԤƤ륷ƥȤϰۤʤ륨
     # ǥƤ롣
     splot '<file_name>' binary record=30:30:29:26 endian=swap u 1:2:3


     # Ʊϥեǡ 1 ܤ 3 ܤΥ쥳ɤ򥹥å
     splot '<file_name>' binary record=30:26 skip=360:348 endian=swap u 1:2:3

ʲ: binary matrix (97.1.1)

84.3.3 Index

index ϡѤʣΥǡĥե뤫顢 Υǡ򤹤뤳Ȥǽˤޤ

:

     plot 'file' index { <m>{:<n>{:<p>}} | "<name>" }

ǡ 2 ԤζʬΥƤޤindex < m> < m> ܤν 򤷤ޤ; index < m> :< n> < m> < n> ޤǤΥǡ ; index < m> :< n> :< p> ϡ< m> , < m> +< p> , < m> +2< p> , ʤɡ< p> 򤷡 < n> ǽλޤC ź (index) դ˽ index 0 ϤΥեκǽΥạ̇̄ޤ礭 index λˤϥ顼å֤ޤ< p> < n> ˤ硢< p> ΥǡեκǸޤɤ߹ߤޤindex ꤷʤϡեΥǡΤñΥǡȤ褷

:

     plot 'file' index 4:5

եγФơ줬ޤޤǡ index ͤϡ column(-2) ѤǤޤϡʲ˸褦ˡΥեθġΥǡ̤̤ˡ󶡤ޤϡѤ 1 ĤΥǡ򤷤ʤ index ޥɤԳ湥Ǥ ġΥǡ˰ۤʤ°ƤˤϤȤƤǤ ʲ: pseudocolumns (84.3.8.2), lc variable (21.1.2)

:

     plot 'file' using 1:(column(-2)==4 ? $2 : NaN)        # ȤƤԳ湥
     plot 'file' using 1:2:(column(-2)) linecolor variable # ȤƤ !

index '< name> ' ϡǡ̾ '< name> ' 򤷤ޤ̾ϥ ȹԤ˽񤤤ƥǡ˳ƤޤʸȤ³ 򤽤ΥȹԤơη̤ < name> ϤޤäƤС ³ǡ < name> Ȥ̾ĤơǤ

:

     plot 'file' index 'Population'

< name> ǻϤޤ뤹٤ƤΥȤ³ǡ̾ˤʤ뤳 դƤ򤱤뤿ˡ㤨 '== Popolation ==' '[Population]' ʤɤ̿̾ˡ򤹤Ǥ礦

84.3.4 Skip

skip ϡץ˥ƥȥǡե (Хʥǡ Բ) ƬοԤ򥹥åפޤåפԤϡevery ɽǤιԿˤϥȤޤevery ::N ϤΥե Τ٤ƤΥǡ֥åƬ򥹥åפޤskip N ϤΥե ƬʬιԤΤߤ򥹥åפ뤳ȤդƤХʥ եŬѤƱͤΥץˤĤƤϡʲ:binary skip (84.2.4)

84.3.5 Smooth

gnuplot ϡǡ֤ȶԤŪʥ롼򤤤Ĥ Ƥޤ smooth ץ˥롼ײƤޤ 줿ǡ򤷤Сˤƥǡ򤹤뤫 ޤŬڤʥǥ fit ȤΤǤ礦

:

     smooth {unique | frequency | fnormal | cumulative | cnormal | bins
                    | kdensity {bandwidth}
                    | csplines | acsplines | mcsplines | bezier | sbezier
                    | unwrap}

unique, frequency, fnormal, cumulatie, cnormal ϡx ɸ ؤƥǡ򥽡ȤƤ x ͤФʬۤΤͻҤ 褷ޤ

spline ϡBezeir ϤΥץϡǡüüϢ³η ꤷޤζϴؿդƱˡʤͤ x ɸ ˱褦Ʊζ֤Ȥ (ʲ: set samples (95.76)) (⤷ line Υ뤬ФƤ) ʬǤĤʤȤ褷ޤ

unwrap ϡǡФ礭ʥפ򤷤ʤ褦ˡ2Фܤ ä򤷤ޤ

autoscale ξ֤ǤСϰϤϸΥǡǤϤʤ ǽŪʶФƷ׻ޤ

autoscale ξ֤Ǥʤĥץ饤硢 ץ饤ɸܲϡϥǡޤ褦 x ϰϤȡ set xrange ꤷɸϰϤζʬξǹԤʤ ޤ

׵᤹ʿ경ץŬѤˤϥǡʤϡ 顼åɽޤ

smooth ץϡؿΤȤˤ̵뤵ޤ

84.3.5.1 Acsplines

acsplines ץϡּʳ餫ʥץ饤פǥǡ ǡ x ˴ؤñĴˤ줿 (ʲ: smooth unique (84.3.5.7))1 ĤζĤ 3 ¿༰ΰʬˤʬŪ˹ޤ 3 ηϡġΥǡ˹礦褦˵ޤ using ˤä 3 ܤͤͿ줿ϡͤǸġ˽ ߤĤޤǥեȤϡʲƱǤ:
     plot 'data-file' using 1:2:(1.0) smooth acsplines

塢ŤߤŪ礭ϡΤ˻Ȥʬο ꤷޤ⤷Ťߤ礭СġΥǡαƶ礭ʤꡢ ζϡ٤礦Ʊ֤ 3 ץ饤ǤĤʤ ˶Ťޤ⤷ŤߤСζϤ꾯ʤʬǹ졢 ˤäƤʿŪˤʤޤκǤüʾϤ 1 Ĥζʬ ʤǤꡢƤΥǡ˽ŤߤդǾ 2 äƺޤΩ줫СʿꤵνŤߤϡζФ ʿ경ҡפˤäʬ䤵줿ؤΡŪʽŤߤȸ뤳Ȥ ޤˤꡢΥե (ɸŪ) ʿꤵνŤߤȤ ƻȤȤǤޤ

:

     sw(x,S)=1/(x*x*S)
     plot 'data_file' using 1:2:(sw($3,100)) smooth acsplines

84.3.5.2 Bezier

bezier ץϡn (ǡθĿ) Υ٥ǥǡ ޤζξüĤʤޤ

84.3.5.3 Bins

ΥץϡֻʳפǤ (٤ͤѹβǽ) :
    plot 'DATA' using <XCOL> {:<YCOL>} bins{=<NBINS>}
         {binrange [<LOW>:<HIGH>]}

plot ޥɤФ륪ץ bins ϡǽ˸Υǡx ĤĤȢ (ӥ) ˻ʬȢ˰ ͤΤߤ褷ޤȢοΥǥեͤϡset samples Ƿꤷ plot ޥɤǥӥοŪ˻ꤹ뤳ȤѹǤ

binrange ꤷʤ硢ϰϤϸߤ x ϰϤޤϰ ΥǡϤ٤̵뤷ޤ

using ̿ǰĤΤߤꤷ硢ƥǡϡ x ɸͤ ФȢιͤ 1 Ϳޤ2 ܤꤹȡȢι ͤˤ 2 ܤͤɲäޤäơʲ 2 Ĥ plot ޥɤƱˤʤޤ:

    plot 'DATA" using N bins=20
    set samples 20
    plot 'DATA' using (column(N)):(1)

Ϣ襹˴ؤƤϡʲ: smooth frequency (84.3.5.9),smooth kdensity (84.3.5.13)

84.3.5.4 Csplines

csplines ץϥǡñĴ· (ʲ:smooth unique (84.3.5.7)) 3 ץ饤ǰ³Ĥʤޤ

84.3.5.5 Mcsplines

mcsplines ץϡʿ경줿ؿñĴ¸ 褦 3 ץ饤ǰ³Ĥʤޤϡ αƶ㸺ޤ FN Fritsch & RE Carlson (1980) "Monotone Piecewise Cubic Interpolation", SIAM Journal on Numerical Analysis 17: 238-246.

84.3.5.6 Sbezier

sbezier ץϡǽ˥ǡñĴ· (ʲ: unique (84.3.5.7)) bezier 르ꥺŬѤޤ

84.3.5.7 Unique

unique ץϡǡ x ñĴˤޤƱ x ĥ y ͤʿѤưĤ֤ޤƤη̤Ȥ ʬǷӤޤ

84.3.5.8 Unwrap

unwrap ץϡ2 Ĥ³Фۤ㤤Фʤ褦˥ǡ ޤ: y ͤϰϤۤ褦ФƤϡȤ ФϰϤ˼ޤ褦 2Фܤäޤϡᤷ ķϤͤŪϢ³ˤΤͭѤǤ

84.3.5.9 Frequency

ץ frequency ϡǡ x ˴ؤñĴˤޤx ɸƱ ϡ y ͤιפ y ͤȤƻİĤ֤ޤ ¿ͤΥǡΥҥȥγ (bin) ˤϡ y ͤ 1.0 ˤơǤ¤ƱθĿɽ褦 ˤޤϡǡ 1 ꤷϡۤΤ˹Ԥʤ ޤ :
    binwidth = <Ŭ>  # x ͤγƳ
    bin(val) = binwidth * floor(val/binwidth)
    plot "datafile" using (bin(column(1))):(1.0) smooth frequency
    plot "datafile" using (bin(column(1))) smooth frequency  # Ʊ

ʲ⻲ȡ

smooth.dem

84.3.5.10 Fnormal

ץ fnormal ϡץ frequency Ʊͤư򤷤ޤ ҥȥޤʤǡ x ˴ؤñĴ ˤơy ͤϤΤ٤Ƥ¤ 1 ˤʤ褦ޤx ɸ Ʊϡ y ͤιפ y ͤȤƻİĤ֤ ¿ͤΥǡΥҥȥγ (bin) ˤϡ y ͤ 1.0 ˤơǤ¤ƱθĿɽ 褦ˤޤϡǡ 1 ꤷϡۤΤ˹ ʤޤʲ⻲ȡ

smooth.dem

84.3.5.11 Cumulative

ץ cumulative ϡǡ x ˴ؤñĴˤޤx ɸ Ʊϡʲ x ͤĤ٤Ƥ (ʤߤΥǡκ¦) Ф y ͤŪʹפ y ͤȤƻİĤ ޤϡǡʬ۴ؿΤѤǤޤ ʲ⻲ȡ

smooth.dem

84.3.5.12 Cnormal

ץ cnormal ϡx ˴ؤñĴǡy ͤ [0:1] ǡޤƱ x ͤʣϡ꾮 x ͤĤ٤ƤΥǡ (ʤߤΥǡ⺸ˤ ) ¤򡢤٤Ƥ y ͤ¤dzäͤ y ͤȤƻĤ褦 ʰΥǡ֤Ѥޤϡǡ줿ʬ ۴ؿΤ˻Ȥޤ (äɸΰۤʤǡӤΤ ͭѤǤ) ʲ⻲ȡ

smooth.dem

84.3.5.13 Kdensity

ץ kdensity ϡˤѤγ̩ɾ (ϳ餫ʥҥȥˤʤޤ) 褹ˡΰĤǤ ˤ 1 γΰ֤֤졢Υˤ٤Ƥ¤ؿ 褵ޤ2 ܤͤϡˤνŤߤȤƻѤޤ 줿ҥȥˤϡ 1/(θĿ) Ȥ٤Ǥǥ ȤǤϡgnuplot ʬۤΥǡФƺŬȤʤ褦ʥХ ׻Ѥޤ
    default_bandwidth = sigma * (4/3N) ** (0.2)

̾ϤȤƤݼŪǡʤХǤХϡ Ū˻ꤹ뤳ȤǤޤ
    plot $DATA smooth kdensity bandwidth <value> with boxes

ǻѤ줿Хϡѿ GPVAL_KDENSITY_BANDWIDTH ¸ ޤ

84.3.6 ̤ʥե̾ (special-filenames)

̤ʰ̣ĥե̾ȤơΤΤޤ: '', '-', '+', '++'

Υե̾ '' ϡƱ plot ޥɾǡľϥեƤ Ѥ뤳Ȥ gnuplot ˻ؼޤäơƱϥե 2 Ĥ ǡ褹ˤϰʲΤ褦ˤޤ:


     plot 'filename' using 1:2, '' using 1:3

filename ϡθ plot ޥɤǤ '' ǺѤǤޤ ξ save ȡȤȤƤ̾ϿΤߤǤ

'+' '++' Ȥ̤ʥե̾ϡusing Τ襹 ˥饤ؿȤ褦ˤ뤿λȤߤǤ̾ؿϥ ץñ y (ޤ z) ͤƤޤ󡣤ե '+' Ϥ줬ºݤϥեǤ褦ˡusing ˤ 1 ܤͤɸȤưɲäͤꤹ뤳Ȥǽ ɸϡǥեȤǤ set xrange ꤷϰΤϤꡢ set samples 椹ɸܲ˽äƼޤ


     plot '+' using ($1):(sin($1)):(sin($1)**2) with filledcurves

'+' ľˡΩɸϰϤꤹ뤳ȤǤޤ̾δؿ 褦ˡΩѿ̾Ƥ뤳ȤǤޤplot κǽǤ Ϳ硢ɸϰϤˤϤ륭 sample ֤ɬ פޤ (ʲ⻲: plot sampling (84.9))


     plot sample [beta=0:2*pi] '+' using (sin(beta)):(cos(beta)) with lines

ˡ+ ϰϻˤϡɸʬͿ뤳ȤǤޤ


     plot $MYDATA, [t=-3:25:1] '+' using (t):(f(t))

Ʊͤˡե '++' ϡx set samples 椵 y set isosamples 椵οΡɸŪ [x,y] ɸγʻҤ 2 Υǡ֤ޤ޲ѿ⡼ɤǤϥץ x y ˴ؤƤǤϤʤu v ˴ؤƼޤ'++' ˡxrange yrange (ޤ urange vrange) ꤹɬפ ޤ:


     splot '++' using 1:2:(sin($1)*sin($2)) with pm3d
     plot '++' using 1:2:(sin($1)*sin($2)) with image

'-' Ȥ̤ʥե̾ϡǡ饤Ǥ뤳Ȥؼ ޤʤǡ򥳥ޥɤθ³ƻꤷޤΤȤϥ Τߤޥɤ³ޤäơplot ޥɤФե ȥ롢饤󥹥Ȥäץϡplot Υޥ 饤˽񤫤ʤȤޤ󡣤ϡunix 륹ץȤˤ < < (ҥɥ)뤤 VMS DCL ˤ $DECK ƱͤǤ Υǡϡ餬ե뤫ɤ߹ޤ줿Τ褦ˡ1 ԤˤĤ 1 ĤĤΥǡϤޤƥǡνϡ1 ܤλϤ ʸ "e" ֤Ȥǻؼޤusing ץ򤳤Υǡ ŬѤ뤳ȤϲǽǤؿ̤ǡե륿뤳Ȥ˻Ȥ Τϰ̣Ǥ礦֤Τ˻ȤȤ¿ʬ̣ʤǤ礦

'-' ϡǡȥޥɤ˻ĤȤͭѤǤΤˤ ޤ㤨Сgnuplot եȥץꥱΥ֥ץ ȤƵưʤɤˤޤȤơǥ󥹥ȥ ǤεǽȤΤǤ礦index every Τ褦 plot ΥץͿƤȡϤʤ˻Ȥ뤳 ȤΤʤǡϤפޤ򸫤Ƥ


     plot '-' index 0, '-' index 1
     2
     4
     6


     10
     12
     14
     e
     2
     4
     6


     10
     12
     14
     e

ϡºݤưޤ


     plot '-' , '-'
     2
     4
     6
     e
     10
     12
     14
     e

ȥפڤǤ礦

replot ޥɤ '-' Ȥʤ顢ʤ 1 ٰʾǡϤɬפǤ礦ʲ: replot (91), refresh (90)

Υե̾ ('') ϡľΥե̾ƤӻȤ뤳Ȥؼ ϡ


     plot '/ȤƤ/Ĺ/ե̾' using 1:2, '' using 1:3, '' using 1:4

Τ褦ʤȤǤ(⤷Ʊ plot ޥɾǡ'-' '' ξѤȡˤ褦ˡ饤ǡ 2 Ĥν Ϳɬפޤ)

popen ؿäƤ륷ƥǤϡǡեϡ'< ' ǻϤޤ ̾ˤäơ륳ޥɤѥϤ뤳ȤǤޤ㤨


     pop(x) = 103*exp(-x/10)
     plot "< awk '{print $1-1965, $2}' population.dat", pop(x)

ϡǽο͸Ʊ褷ޤx ɸ 1965 ǯ ηвǯɽ褦ˤʤޤ¹ԤȤϡΥǡ ΥȹԤ򤹤٤ƺʤФʤޤ󤬡ޤϾΥ ɤκǽʬ򼡤Τ褦Ѥ뤳ȤǤޤ (ޤ³ʬ):


     plot "< awk '$0 !~ /^#/ {print $1-1965, $2}' population.dat"

ΥץϺǤޤusing ɤѤñ ʥե륿󥰤ǹԤȤǽǤ

fdopen() ؿĥƥǤϡǡ򡢥ե뤫ѥפ˷ӤĤ 줿ǤդΥեǥץɤ߹ळȤǤޤn ֤Υ ǥץɤ߹ˤϡ'< &n' ȤƤˤꡢ 1 POSIX shell θƤӽФǡʣΥǡե뤫Υ Ϥưפ˹Ԥ褦ˤʤޤ:


     $ gnuplot -p -e "plot '<&3', '<&4'" 3<data-3 4<data-4
     $ ./gnuplot 5< <(myprogram -with -options)
     gnuplot> plot '<&5'

84.3.7 Thru

thru 侩Ǥ

Ť:

     plot 'file' thru f(x)

ߤν:

     plot 'file' using 1:(f($2))

84.3.8 Using

Ǥ褯ȤǡեνҤ using ǡϥե ΤɤιԤ褹Τؼޤ

:

     plot 'file' using <entry> {:<entry> {:<entry> ...}} {'format'}

format ꤹȡ C 饤֥ؿ 'scanf' ŬѤƥǡ եγƹԤɤߤޤǤʤСƹԤϥۥ磻ȥڡ ( 䥿) Ƕڤ줿ǡ (ե) ʤȤߤʤޤ ʲ⻲: datafile separator (95.19.4)

< entry> ϡϥեΰĤΥեɤ򤹤뤿ñʤ ֹ椫ĤΥǡκǽιԤΥ٥˰פʸ󡢥 ǰϤޤ줿xticlabels(2) Τ褦˥åǰϤޤʤ̤ʴؿ 줫Ǥ

Υȥ꤬åǰϤޤ줿ξ硢N ܤͤꤹΤ˴ؿ column(N) ѤǤޤĤޤꡢcolumn(1) ɤ߹ޤ줿ǽιܤ Ȥcolumn(2) ϼιܡȤäǤcolumn(1), column(2), ... άȤơ̤ʵ $1, $2, ... ѤǤޤؿ valid(N) ǡN ܤͭʿǤ뤫ɤƥȤǤޤ ϥեκǽιԤγˡǡͤǤϤʤ٥äƤ 硢Υ٥ plot ȥ˻ѤǤޤؿ column() ϡֹʳ˥٥Ǥޤ㤨Сǡ ե뤬ʲΤ褦ʾ:

     Height    Weight    Age
     val1      val1      val1
     ...       ...       ...

ʲ plot ޥɤƱ̣ˤʤޤ:
     plot 'datafile' using 3:1, '' using 3:2
     plot 'datafile' using (column("Age")):(column(1)), \
                  '' using (column("Age")):(column(2))
     plot 'datafile' using "Age":"Height", '' using "Age":"Weight"

ʸ󤬴˰פɬפޤʸʸ̤ޤ Υ٥ plot ȥ˻Ȥˤϡset key autotitle columnhead ȤƤ

ϥǡե 1...N Ȥºݤ˲äơgnuplot ϴ ĤĤ "" 󶡤ޤ㤨С$0 ޤ column(0) ϡ ǡΤΥǡԤιֹ֤ޤʲ:pseudocolumns (84.3.8.2)

< entry> ˲񤫤ʤСΥȥΥꥹȤν˥ǥեȤͤ Ȥޤ㤨 using ::4 ϡusing 1:2:4 Ȳᤵޤ

using ˤĤΥȥꤷϡ < entry> y ͤ ƻȤ졢ǡֹ ( $0) x ȤƻȤޤ㤨 "plot 'file' using 1" "plot 'file' using 0:1" Ʊ̣Ǥ using 2 ĤΥȥͿ硢 x, y ȤƻȤޤ ˥ȥɲäơϤΥǡѤ褦襹 ξܺ٤ˤĤƤϡʲ: set style (95.78), fit (75)

'scanf' ؿǤϿʥǡοϤȤޤgnuplot ƤϥǡưȤߤʤޤ顢gnuplot Ǥ %lf ܼŪͣοϻꡢȤȤˤʤޤ ʸˤϡʤȤġ 7 İʲΡΤ褦ϻҤɬפޤ 'scanf' Ͽȿδ֤˥ۥ磻ȥڡʤ򡢥 (" \ t") (" \ n")ޤϲڡ (" \ f") ȴԤޤʳϤŪ˥åפ٤Ǥ

" \ t", " \ n", " \ f" ȤȤñषŰȤ٤ Ǥ뤳ȤդƤ

84.3.8.1 Using (using_examples)

ϡ1 ܤΥǡФ 2 ܤ 3 ܤ¤ͤ plot ޤ ʸϡǡڡڤǤʤ޶ڤǤ뤳ȤؼƤޤƱȤ set datafile separator comma ꤹ뤳ȤǤǽǤ
     plot 'file' using 1:($2+$3) '%lf,%lf,%lf'

ϡʣʽ񼰻ǥǡե "MyData" ɤ߹ ޤ

     plot 'MyData' using "%*lf%lf%*20[^\n]%lf"

ν񼰻ΰ̣ϰʲ̤Ǥ:


     %*lf        ̵ͤ
     %lf         ưɤ߹ (ǥեȤǤ x )
     %*20[^\n]   20 Ĥβ԰ʳʸ̵
     %lf         ưɤ߹ (ǥեȤǤ y )

3 黻 ?: Ȥäƥǡե륿ĤηҲ𤷤ޤ


     plot 'file' using 1:($3>10 ? $2 : 1/0)

ϡ1 ܤΥǡФơ3 ܤΥǡ 10 ʾǤ褦2 ܤΥǡ plot ޤ1/0 ̤ͤǤꡢgnuplot ̤ ̵뤹ΤǡäŬڤǤʤϱ뤳Ȥˤʤޤ ޤϡ餫Ƥ NaN ȤäƤƱȤˤʤޤ

åǻϤޤäƤʤ¤ֹȤƻȤȤǤޤ 㤨 using 0+(ʣʼ) ͤʤȤǤޤơοϡ åǥȤƤʤпͤɾ졢åǥ ƤиġΥǡɤ߹िˤͤɾ롢Ȥ פǤ

եޥåȥǡȤäƤ硢λ֤Υǡʣ Ϥ餻뤳ȤǤޤξ硢¾Υǡγϰ֤׻Ȥ ֤Υǡ˶򤬴ޤޤƤ뤳ȤդƤ㤨Сǡ ԤκǽǤڡޤ줿֥ǡǤʤСy ͤ 3 ܤͤȤƻꤵ٤Ǥ

plot 'file' plot 'file' using 1:2 plot 'file' using ($1):($2) ˤ̯ʰ㤤뤳ȤդƤ 1) file 1 2 ΥǡĹԤ򤽤줾ޤǤȤ ȡǡ 1 ΤߤιԤФƤϡǽΤΤ x ͤФ2 ܤΤΤϤιԤ̵뤷3 ܤΤΤϤ̤ͤȤ¸ ޤ (ޤ plot Ƥ (plot with lines)̤ ᤹Фʤ褦)2) 1 ܤʸޤǤ褦ʹԤ 硢ǽΤΤϥ顼Ȥ plot ߤޤ2 ܤ 3 ܤ ΤϤפʹԤɤߤȤФޤ

ºݡǽñ


     plot 'file' using 1:2

Ȼꤹ뤳Ȥǡξɤʤ˥ߤΥǡޤԤĥե plot 뤳ȤǽˤʤޤɤƤǡե ʸĤƤʤСΥƥȹԤ˥ʸ (#) ֤Ǥ礦

84.3.8.2 (pseudocolumns)

plot ʸ using μǤϡϥե˴ޤޤºݤΥǡ ˲äƴ⻲ȤǤ "" (pseudocolumns) ˴ޤޤ Ƥޤ
     column(0)   ǡǤγν֤֡ 0 Ϥޤꡢ2
                 ԤΥ֥󥯹ԤǥꥻåȤޤά $0 Ѳġ
     column(-1)  ֹ 0 Ϥޤꡢ1 ԤΥ֥󥯹Ԥǥꥻå
                 ޤϡ󡢤ޤϳʻҾǡΥǡ
                 Ԥбޤ
     column(-2)  ʣΥǡĥեΡߤΥǡ
                  index ֹ档ʲ: `index`

84.3.8.3 Xticlabels

ιߤθФ (ticlabel) ʸؿˤäƺ뤳ȤǤ ̾ϰȤƥǡ󤫤ޤǤñʷϡǡ󼫿 ʸȤƤѤǡxticlabels(N) xticlabels(stringcolumn(N)) ξάȤƻȤޤʲ 3 ܤǤ x ιߤθФȤƻѤޤ


     plot 'datafile' using <xcol>:<ycol>:xticlabels(3) with <plotstyle>

θФϡǤդ輴 x,x2,y,y2,z ѤǤޤ ticlabels(< labelcol> ) ϡusing ǡΥǡκɸ ꤬ƺѤ˹Ԥɬפޤͭ X,Y[,Z] ɸȤij ǡФơxticlabels() Ϳʸͤϡб x ɸƱ x θФΥꥹȤɲäޤxticlabels() xtic() Ⱦά뤳ȤǤ¾μ˴ؤƤƱͤǤ

:


     splot "data" using 2:4:6:xtic(1):ytic(3):ztic(6)

Ǥϡx y θФ x,y ɸͤȤ̤󤫤Ф z θФϡб z ɸͤޤ

:


     plot "data" using 1:2:xtic( $3 > 10. ? "A" : "B" )

ϡx θФʸʹؿѤΤǡǡե γ x ιߤθФϡ3 ܤͤˤä "A" "B" 줫Ȥʤޤ

84.3.8.4 X2ticlabels

ʲ: plot using xticlabels (84.3.8.3)

84.3.8.5 Yticlabels

ʲ: plot using xticlabels (84.3.8.3)

84.3.8.6 Y2ticlabels

ʲ: plot using xticlabels (84.3.8.3)

84.3.8.7 Zticlabels

ʲ: plot using xticlabels (84.3.8.3)

84.3.9 Volatile

plot ޥɤΥ volatile ϡϥȥ꡼फե뤫 ɤ߹ǡɤ߹߻ˤͭǤϤʤȤ̣ޤ ϡreplot ޥɤˡǽʸ¤ refresh ޥ Ȥ褦 gnuplot ˻ؼޤʲ: refresh (90)

84.4 Errorbars

顼Сϡ1 4 Ĥɲä줿ǡɤ (ޤϥȥ using ɲ򤹤) Ȥˤꡢ2 ǡˤƼ¸ Ƥޤɲäͤϡ줾Υ顼Сǰۤʤä ǻȤޤ

ǥեȤǤϡgnuplot ϥǡեγƹԤ˰ʲΤ褦 3 ġ4 ġ뤤 6 Ĥ󤬤뤳ȤԤƤޤ:


     (x, y, ydelta),
     (x, y, ylow, yhigh),
     (x, y, xdelta),
     (x, y, xlow, xhigh),
     (x, y, xdelta, ydelta),
     (x, y, xlow, xhigh, ylow, yhigh)

x ɸɬꤷʤФޤ󡣳ƿͤ񤯽ǵ󤲤̤ ʤƤϤʤޤ󡣤using ҤȤФνǤޤ 礱Ƥͤ䤦ȤϲǽǤ㤨С


     plot 'file' with errorbars
     plot 'file' using 1:2:(sqrt($1)) with xerrorbars
     plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorbars

ǸϡŪ x θŪ y θȤݡȤ ʤȤΥեФΤǤusing ȥ꤬Ū x θ Ū x κǾͤȺͤƤޤ

y Υ顼Сϡ(x, ylow) (x, yhigh) ؤαľȤޤ ylow yhigh ydelta ꤵ줿Ȥϡylow = y - ydelta, yhigh = y + ydelta ȤʤޤԤ˥ǡ 2 ĤʤСylow yhight ϤȤ y Ȥʤޤx 顼СƱͤ˷׻줿ʿǤ ǡγޤϡwith errorbars with lines ꤷơƱǡե 2 plot Ʋ ( 2 ĤΥȥʤ褦ˡΰˤ notitle ץȤ Ȥ˺ʤDz)¾Ȥơerrorlines ޥɤ⤢ޤ (ʲ: errorlines (84.5))

顼Сüιߤΰθܤϡset errorbars Ǥޤ

ưϰϻ꤬ͭǤСϰϤϥ顼Сޤ褦Ĵ ޤ

ʲ⻲

顼СΥǥ

ʤ˴ؤƤϡʲ: plot using (84.3.8), plot with (84.12), set style (95.78)

84.5 Errorlines

(errorbar) ȼϡ2 ǡեǥݡ Ƥơ 1 Ĥ 4 Ĥɲä (ޤ using ǻꤹ) ǡͿ뤳ȤǹԤʤޤɲäͤϡ͡ errorline Τ줾ǰۤʤäǻȤޤ

ǥեȤξ֤Ǥϡgnuplot ϡǡեγƹԤ 3 ġ4 ġ 6 ĤΤ줫θĿΥǡ뤳ȤԤ줾ʲΤ줫бޤ


     (x, y, ydelta),
     (x, y, ylow, yhigh),
     (x, y, xdelta),
     (x, y, xlow, xhigh),
     (x, y, xdelta, ydelta),
     (x, y, xlow, xhigh, ylow, yhigh)

x ɸϻꤹɬפޤǡν֤ηǤɬפ ޤusing ҤǤν֤ꡢ礱ƤФ Ϳꤹ뤳ȤǤޤ㤨


     plot 'file' with errorlines
     plot 'file' using 1:2:(sqrt($1)) with xerrorlines
     plot 'file' using 1:2:($1-$3):($1+$3):4:5 with xyerrorlines

ǸϡŪ x θŪ y θȤݡȤ ʤȹ礻ΥǡΥեФΤǡusing Ūʸ Ū x κǾͤȺͤƤޤ

y (x, ylow) (x, yhigh) 褵Ǥylow, yhigh ydelta ꤵ줿ϡylow = y - ydelta, yhigh = y + ydelta ȰޤԤ 2 ĤΥǡʤ硢yhigh, ylow ξ y ˤʤޤx ƱͤˡǷ׻ʿǤ

顼Сüιߤΰθܤϡset errorbars Ǥޤ

ư̼ (autoscaling) ON ξ硢ϰϤϸ褦Ĵ ޤ

ʤˤĤƤϡʲ: plot using (84.3.8), plot with (84.12), set style (95.78)

84.6 ؿ (functions)

ޥ plot, splot Ǥϡե뤫ɤ߹ǡ ǤʤȤ߹ߴؿ桼ؿ褹뤳ȤǤޤؿ ϡΩʼ̾ϰϤϤäƥǡץ뤳Ȥɾޤ ʲ: set samples (95.76), set isosamples (95.34)

:

     approx(ang) = ang - ang**3 / (3*2)
     plot sin(x) title "sin(x)", approx(x) title "approximation"

ؿΥǥեȤ襹ꤹˡˤĤƤϡʲ:set style function (95.78.5)Ȥ߹ߴؿξˤĤƤϡʲ:expressions functions (16.1)ǴؿˡˤĤƤϡʲ:user-defined (16.5)

84.7 ޲ѿ⡼ (parametric)

޲ѿ⡼ (set parametric) Ǥϡplot Ǥ 2 ĤοȤ splot Ǥ 3 ĤοȤͿɬפޤ

:

     plot sin(t),t**2
     splot cos(u)*cos(v),cos(u)*sin(v),sin(u)

ǡեƱ褦褵ޤǡե뤬 ΤͿˡǤդ޲ѿؿ˴˻ꤵ줿 ƤǤȡx ޲ѿؿ (Ǥ sin(t)) y ޲ѿؿ (Ǥ t**2) Ȥδ֤ˡ¾νҤǡ ؿϤߤǤϤޤ󡣤Τ褦ʤȤ򤹤ȡʸ顼ˤ ꡢ޲ѿؿˤϻꤵƤʤɽޤ

with title Τ褦¾νҤϡ޲ѿؿλ꤬λ ˻ꤷʤФޤ


     plot sin(t),t**2 title 'Parametric example' with linespoints

ʲ⻲

޲ѿ⡼ɤΥǥ⡣

84.8 ϰ (ranges)

ΥǤϡޥ plot ΰֺǽιܤȤƽ񤯡 ϤΥץˤĤƤΤޤꤹȡϰϤϡ Τɤ set range ˤϰϤ¤ͥ褷ưޤ ޥ plot ̤ʾ˻ꤹ롢ġǤϰϤ¤Υ ץˤĤƤϰʲ: sampling (84.9)

:

     [{<dummy-var>=}{{<min>}:{<max>}}]
     [{{<min>}:{<max>}}]

1 ܤηϰϻΩѿϰ (xrangeޤ޲ѿ⡼ Ǥ trange) Ѥǡ2 ܤηϽ°ѿϰѤǤץ < dummy-var> Ωѿο̾ѤǤޤ (ǥեȤѿ̾ set dummy ѹǤޤ)

޲ѿ⡼ (parametric) ǤʤСϰϻϰʲνͿʤФޤ:

     plot [<xrange>][<yrange>][<x2range>][<y2range>] ...

޲ѿ⡼ (parametric) ǤϡϰϻϰʲνͿʤФޤ:

     plot [<trange>][<xrange>][<yrange>][<x2range>][<y2range>] ...

ʲ plot ޥɤϡtrange [-pi:pi], xrange [-1.3:1.3],yrange [-1:1] ꤹǤ:


     plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2

* ϡmin (Ǿ) max () ˼ưϰϻ (autoscale) εǽ ȤȤǽˤޤ֤Τɬפϰϻˤϡ ϰ [] ȤäƤ

plot splot ΥޥɹԤǻꤵ줿ϰϤϤΥհĤˤΤ߱ ڤܤޤäơθΥդΥǥեȤϰϤѹˤ set xrange set yrange ѤƤ

֥ǡФƤϡϰϤϡǡե뤫ɤ߹Τ˻Ѥ Ʊ񼰤ǡǰϤǻꤹɬפޤʲ:set timefmt (95.87)

:

ʲϸߤϰϤѤޤ:

     plot cos(x)

ʲ x ϰϤΤߤλǤ:

     plot [-10:30] sin(pi*x)/(pi*x)

ʲϾƱǤѿȤ t Ȥޤ:

     plot [t = -10 :30]  sin(pi*t)/(pi*t)

ʲ x y ξϰϤλǤ:

     plot [-pi:pi] [-3:3]  tan(x), 1/x

ʲϡy ϰϤΤߤλǤ:

     plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)

ʲ x κͤ y κǾͤΤߤλǤ

     plot [:200] [-pi:]  $mydata using 1:2

ʲ x ϰϤǡȤƻꤷƤޤ:

     set timefmt "%d/%m/%y %H:%M"
     plot ["1/6/93 12:00":"5/6/93 12:00"] 'timedata.dat'

84.9 Sampling

ǥեȤǤϡؿ䵿ե "+" ǡϡϰ Τˤ錄äɸܲ (sample) ޤϰϤϡplot ޥɤľ äŪ˥Хϰϻ򥳥ޥ set xrange ǻ 뤳ȤǤޤǤʤ plot ޥɤΤ٤ƤǤ˴ؤ ǡΤޤ褦ϰϤư̼ (autoscaling) ޤ ɸܲϰϤϸġ¤ƳƤ뤳ȤǤޤ

:

ʲϡx ΤϰϤ 0 1000 ȤƥեΥǡ褷2ĤδؿΤϰϤΰʬ줾褷ޤ:

     plot [0:1000] 'datafile', [0:200] func1(x), [200:500] func2(x)

ʲϡȤۤƱͤǤΤϰϤϥǡեƤˤäƷꤷޤξ硢ɸܲؿϡΤ˼ޤ뤫⤷ ޤ󤷡ޤʤ⤷ޤ:

     set autoscale x
     plot 'datafile', [0:200] func1(x), [200:500] func2(x)

ʲΥޥɤˤϤޤޤޤޤƬϰϤϡ¿ʬǽδؿ ɸܲΤߤ˸ΤȻפޤºݤϤǤϤʤ٤Ƥ ǤŬѤ褦˲ᤵޤ:

     plot [0:10] f(x), [10:20] g(x), [20:30] h(x)

ʲΥޥɤϡΤޤ˥ sample ɲäΤǡϰϻ plot ΤŬѤʤ褦ˤƤޤ:

     plot sample [0:10] f(x), [10:20] g(x), [20:30] h(x)

ʲϡ3 դˤ餻ζĤˡ󼨤ޤ:

     splot [-2:2][-2:2] sample [h=1:10] '+' using (cos(h)):(sin(h)):(h)

84.10 Plot ޥɤ for 롼 (for loops in plot command)

¿ƱΥեؿƱ褹ϡ줾 plot ɤη֤ (iteration) ǤԤΤǤ

:

     plot for [<variable> = <start> : <end> {:<increment>}]
     plot for [<variable> in "string of words"]

֤Ŭϰ (scope) ϡΥ (,) ޥɤνꡢΤ 줫˸줿ȤޤǤǤ褹ܤ (ʣ ) ¤Ǥϡޤ֤äƤƤ⤽㳰Ȥʤޤ

֤޲ѿ⡼ (parametric) ǤϵǽʤȤդƤ

:

     plot for [j=1:3] sin(j*x)

:

     plot for [dataset in "apples bananas"] dataset."dat" title dataset

Ǥϡ֤ϥե̾б륿ȥξǻȤ Ƥޤ

:

     file(n) = sprintf("dataset_%d.dat",n)
     splot for [i=1:10] file(i) title sprintf("dataset %d",i)

ϡե̾ʸʹؿΤ褦 10 ΥեƱ褷ޤ֤ѿ (Ǥ 'i') ϰĤ Ȥư졢 2 ٰʾѤǤޤ

:

     set key left
     plot for [n=1:4] x**n sprintf("%d",n)

ϡؿȤ褷ޤ

:

     list = "apple banana cabbage daikon eggplant"
     item(n) = word(list,n)
     plot for [i=1:words(list)] item(i).".dat" title item(i)
     list = "new stuff"
     replot

ǤϡꥹȤ˽äƳƥƥåפʹԤγƹܤФưĤ 褬ԤޤγƹܤưŪ˼ޤΤǡΥꥹȤѹ Τޤ replot 뤳ȤǤޤ

:

     list = "apple banana cabbage daikon eggplant"
     plot for [i in list] i.".dat" title i
     list = "new stuff"
     replot

ϡη֤ѿǤϤʤʸη֤ѿѤ 뤳ȰʳƱǤ

< end> ˵ * ѤС֤Ϥ٤Ƥͭʥ ʤʤޤǤη֤ȤʤޤϡƹԤ˴ޤޤ뤹٤Ƥ ν뤤ϥեΤ٤ƤΥǡå (2 ԤζԤǶڤ ) νƤϤޤ뤹٤ƤΥեʤɤ٤˽Τ Ǥ

:

     plot for [i=2:*] 'datafile' using 1:i with histogram
     splot for [i=0:*] 'datafile' index i using 1:2:3 with lines
     plot for [i=1:*] file=sprintf("File_%03d.dat",i) file using 2 title file

84.11 Title

ǥեȤǤϳƶϡбؿե̾ǥ˰ɽ ޤplot Υץ title ȤȤǡŪʥȥͿ 뤳ȤǤޤ

:

     title <text> | notitle [<ignored text>]
     title columnheader | title columnheader(N)
           {at {beginning|end}} {{no}enhanced}

< text> ϡǰϤޤ줿ʸ󤫡ʸɾ뼰Τ 줫Ǥϥˤɽޤ

ϥǡκǽι (ʤƬ) ʸեɤȲ 򥭡ȥȤѤ륪ץ⤢ޤʲ:datastrings (13)ϡset key autotitle columnhead ꤹХǥ ȤεưȤʤޤ

ȥȥץͽ notitle ȤȤǥǤ ޤʤȥ (title '') notitle Ʊ̣ޤ ץߤȤϡİʾζ򥿥ȥθƤ (tilte ' ')notilte θʸĤ硢ʸ ̵뤵ޤ

key autotitles ꤵ (ǥե) title notitle ꤵʤä硢Υȥ plot ޥɾˤؿ̾ ǡե̾ˤʤޤե̾ξϡꤵǤդΥǡ ե뽤Ҥ⤽Υǥեȥȥ˴ޤޤޤ

֤䥿ȥΰ·ʤɤΥ쥤Ȥϡset key Ǥ ޤܺ٤ϡʲ: set key (95.36)

at ˤꡢΥȥ򡢼ưŪ˺ key Ȣ ˤǤ֤ȤǤ褦ˤʤޤat {beginning| end} Ѥ ϡΥȥ򥰥դζȤľ뤤ľ֤ Υץϡwith lines 褹ͭѤǤ¾ 襹Ǥ̵̣Ǥ

at < x-position> ,< y-position> ηѤСΥȥ Ǥդΰ֤֤ȤǤޤǥեȤǤϡΰֻ ꡼ɸȲᤷޤ㤨 at 0.5, 0.5 ϡդμ˽̼ 䶭ˤϴطʤ˥꡼Τɿ̣ޤˡ ֤륿ȥν񼰤ϡkey Υץαƶޤʲ:set key (95.36)

:

ʲ y=x 򥿥ȥ 'x' ɽޤ:

     plot x

ʲϡx 2 򥿥ȥ "x^2" ǡե "data.1" 򥿥ȥ"measured data" ɽޤ:

     plot x**2 title "x^2", 'data.1' t "measured data"

ʲϡեƬԤγ˥ȥޤʣΥǡ褷ޤƥȥϡΩǤϤʤбθ֤ޤ:

     unset key
     set offset 0, graph 0.1
     plot for [i=1:4] 'data' using i with lines title columnhead at end

ʲϡ2 Ĥ̡Υդ key ξ 1 սˤޤ:

     set key Left reverse
     set multiplot layout 2,2
     plot sin(x) with points pt 6 title "Left plot is sin(x)" at 0.5, 0.30
     plot cos(x) with points pt 7 title "Right plot is cos(x)" at 0.5, 0.27
     unset multiplot

84.12 With

ؿǡɽˤϤΥΤΰĤȤȤǤޤ  with ΤѰդƤޤ

:

     with <style> { {linestyle | ls <line_style>}
                    | {{linetype  | lt <line_type>}
                       {linewidth | lw <line_width>}
                       {linecolor | lc <colorspec>}
                       {pointtype | pt <point_type>}
                       {pointsize | ps <point_size>}
                       {fill | fs <fillstyle>}
                       {nohidden3d} {nocontours} {nosurface}
                       {palette}}
                  }

ǡ< style> ϰʲΤ줫:


    lines        dots       steps     errorbars     xerrorbar    xyerrorlines
    points       impulses   fsteps    errorlines    xerrorlines  yerrorbars
    linespoints  labels     histeps   financebars   xyerrorbars  yerrorlines
    surface      vectors    parallelaxes

ޤϡ
    boxes            boxplot        ellipses       image
    boxerrorbars     candlesticks   filledcurves   rgbimage    pm3d
    boxxyerror       circles        histograms     rgbalpha    zerrorfill

ޤ
    table

ǽΥ롼פΥϡʸ° 2 Υ롼 Υϡɤ٤°äƤޤʲ: fillstyle (95.78.4) ˥֥ĥ⤢ޤġΥξܺ٤ˤĤ Ƥϡʲ: plotting styles (II) table ϡդɽνϤޤʲ: set table (95.80)

ǥեȤΥϡset style function set style data Ǥޤ

ǥեȤǤϡ줾δؿǡեϡȤȤǤ뷿 ãޤǰۤʤȤޤ٤Ƥüѥɥ饤Ф 6 Ĥΰۤʤ򥵥ݡȤƤơ⤷׵ᤵ줿硢 ˺ѤƤޤνϷǤν Τ򸫤Сtest ȤƤ

ĤӤʤС< line_type> < point_type> ꤷƤͤϡǻȤꤹ (ޤϿ) ǤѤüǻȤɽ ˤ test ޥɤȤäƤ

< line_width> < point_size> ѹǤޤ ϤγơüΥǥեȤͤФŪͤȤƻꤷ 礭ΤѤ褦ѹǤޤܺ٤ϡʲ:set pointsize (95.68)ǥåȤ < point_size> ȡ set pointsize ǥåȤ礭ϡǥեȤΥݥȥ ˳ݤ뤳ȤդƤʤθ̤Ѥ ޤ㤨Сset pointsize 2; plot x w p ps 3 ϡǥեȤ 3 ܤǤäơ6 ܤǤϤޤ

饤󥹥ΰʬ뤤ϳ plot ˤ pointsize variable ȤǽǤξ硢Ϥˤɲä 1 ׵ᤵޤ 2D Ǥ 3 3D Ǥ 4 Υǡɬפˤʤޤġ ΥϡΤ̤Ƥ pointsize ˡǡե뤫 ˤͤ򤫤ΤȤƷꤵޤ

set style line Ȥä//ȤСΥ ֹ < line_style> ˥åȤ뤳ȤǤȤȤǤ

gnuplot pm3d 򥵥ݡȤ褦˥󥹥ȡ뤵ƤʤС splot ˤ lines, points, dots ο餫Ѳ뤿 ̤ʥ palette Ȥޤοϡޥ set palette Ǥ餫ꤵ줿餫Ѳ륫顼ѥåȤ򤷤ޤ ͤϡ z ɸͤޤ using 4 ܤΥѥ᡼Ȥ ꤵ뿧ɸбޤ2 3 (plot splot ޥ) ξǡѥåȿ򾮿ͤޤϥ顼ܥåϰϤ Ť줿ͤΤ줫ǻꤹ뤳ȤǤޤѥåȿͤϡ using Ū˻ꤵ줿󤫤ɤ߹ळȤǽǤ ʲ: colors (21), set palette (95.66), linetype (95.38)

nohidden3d ϡsplot ޥɤˤΤŬ ޤ̾Хʥץ set hidden3d ϥվ ŬѤޤơ nohidden3d ץĤ뤳 Ȥǡ hidden3d ν뤳ȤǤޤnohidden3d ޡ줿̰ʳθġ (ʬ٥) ϡ̾ ¾β餫ǤDZƤޤ褵ޤ

Ʊͤˡ nocontours ϡХ set contour ꤬ ͭʾǤ⡢̤ plot Ф赡ǽ򥪥դˤޤ

Ʊͤˡ nosurface ϡХ set surface ꤬ͭ ʾǤ⡢̤ plot Ф 3 򥪥դˤޤ

ɤϰż褦ʷǾάǽǤ

linewidth, pointsize, palette ץƤü֤ǥݡ ȤƤ櫓ǤϤʤȤդƤ

:

ʲϡsin(x) ľ褷ޤ:

     plot sin(x) with impulses

ʲϡx 褷x**2 ǥեȤ褷ޤ:

     plot x w points, x**2

ʲϡtan(x) ؿΥǥեȤǡ"data.1" ޤ褷ޤ:

     plot [ ] [-2:5] tan(x), 'data.1' with l

ʲϡ"leastsq.dat" ľ褷ޤ:

     plot 'leastsq.dat' w i

ʲϡǡե "population" 褷ޤ:

     plot 'population' with boxes

ʲϡ"exper.dat" 򥨥顼Сդޤ褷ޤ (顼С3 󡢤뤤 4 ΥǡɬפȤޤ):

     plot 'exper.dat' w lines, 'exper.dat' notitle w errorbars

⤦Ĥ "exper.dat" Υ顼Сդޤ (errorlines) Ǥ ˡ (顼С 3 󡢤뤤 4 Υǡɬ):

     plot 'exper.dat' w errorlines

ʲϡsin(x) cos(x) ޡդޤ褷ޤޤ ƱǤޡϰۤʤäΤȤޤ:

     plot sin(x) with linesp lt 1 pt 3, cos(x) with linesp lt 1 pt 4

ʲϡ"data" 3 ǡ礭̾ 2 ܤ褷ޤ:

     plot 'data' with points pointtype 3 pointsize 2

ʲϡ"data" 褷ޤ4 ܤɤǡ pointsize ͤȤƻѤޤ:

     plot 'data' using 1:2:4 with points pt 5 pointsize variable

ʲϡ2 ĤΥǡФơΤ߰ۤʤѤ褷ޤ:

     plot 'd1' t "good" w l lt 2 lw 3, 'd2' t "bad" w l lt 2 lw 1

ʲϡx*x ζɤĤ֤ȿӤ褷ޤ:

     plot x*x with filledcurve closed, 40 with filledcurve y=10

ʲϡx*x ζȿȢ褷ޤ:

     plot x*x, (x>=-5 && x<=5 ? 40 : 1/0) with filledcurve y=10 lt 8

ʲϡ餫Ѳ뿧Ƕ̤褷ޤ:

     splot x*x-y*y with line palette

ʲϡ2 ĤοΤĤ̤򡢰ۤʤ⤵ɽޤ:

     splot x*x-y*y with pm3d, x*x+y*y with pm3d at t

85 Print

print ޥɤ < > ̤ͤɽޤ pause 0 Ʊ Ǥ< > ϡ gnuplot οޤʸǤ

:

       print <> {, <>, ...}

ʲ: expressions (16)ϥե set print Ǥޤ ʲ⻲: printerr (86)

86 Printerr

printerr print ޥɤȤۤƱǤ set print ޥɤθ̤³Ƥ֤ǤϤ stderr Ȥ ޤ

87 Pwd

pwd ޥɤϥȥǥ쥯ȥ̤̾ɽޤ

ȥǥ쥯ȥʸѿ¸ꡢʸǻȤ ϡѿ GPVAL_PWD ȤȤǤ뤳ȤդƤʲ:show variables all (95.92)

88 Quit

exit quit ξޥɤ END-OF-FILE ʸϡgnuplot λ ޤΥޥɤϡ֤ (clear ޥɤƱͤ) ꥢƤ齪λޤ

89 Raise

:
     raise {plot_window_nb}

ޥ raise (lower ȿ) ϡpm, win, wxt, x11 gnuplot ÷Ϸμ¹ˡ襦ɥ () ˾夲 襦ɥ򡢥ǥȥå׾Υɥޥ͡ z ɥνŤʤ () ֤ޤ

x11 wxt Τ褦ʣ襦ɥ򥵥ݡȤƤ硢 եȤǤϤΥޥɤϤʣΥɥ߽˾夲ǽ 줿ɥֲˡǸ˺줿ɥ־¤٤ ץֹ椬Ϳ줿硢б襦 ɥ¸ߤФΤߤ夲ޤ

ץϡñ襦ɥνϷʤ pm win Ǥ̵뤵ޤ

ɥ X11 ̤˽Фʤ硢⤷襦ɥϡ ʤ X11 åưƤ (㤨 telnet ssh åʤ ˤä) ޤ̤˽ФȤɥޥ͡ˤä ɳƤǽޤ

90 Refresh

ޥ refresh ϡreplot ˻Ƥޤ 2 Ĥǰ㤤 ޤrefresh ϡɤ߹ǡѤơߤ 褷ޤϡrefresh (ǥХ '-' ) 饤ǡ衢ƤѲǡե뤫˻ ȤȤ̣ޤޥ refresh ϡ¸ߤ ˿ǡɲäΤˤϻȤޤ

ޥä˥।ȥॢȤǤϡŬڤʾ replot ˤष refresh Ѥޤ:


     plot 'datafile' volatile with lines, '-' with labels
     100 200 "Special point"
     e
     # ʥޥ򤳤Ǽ¹
     set title "Zoomed in view"
     set term post
     set output 'zoom.ps'
     refresh

91 Replot

replot ޥɤʤǼ¹ԤȡǸ˼¹Ԥ plot ޤ splot ޥɤƼ¹ԤޤϡץåȤۤʤ set ץǤߤꡢƱץåȤۤʤ֤˽ϤꤹȤ Ǥ礦

replot ޥɤФϺǸ˼¹Ԥ plot ޤ splot ޥɤΰ (ۤ ',' ȶ) ɲä졢줫Ƽ¹Ԥޤ replot ϡϰ (range) Ƥϡplot splot Ʊ Ȥ뤳ȤǤޤäơľΥޥɤ splot ǤϤʤ plot ξϡؿ⤦ĤμߤǥץåȤΤ replot Ȥ Ǥޤ

:


     plot '-' ; ... ; replot

ȤȤϿ侩ޤ󡣤ϡ줬ʤ˺ƤƱǡ ƤϤ׵᤹뤳Ȥˤʤ뤫ǤƤξ硢˥ޥ refresh Ȥޤϡɤ߹ǡȤäƥդ褷ޤ

multiplot ⡼ɤǤϡreplot ޥɤϤ٤Ƥ plot ǤϤʤľ plot ʬƼ¹ԤʤȤդƤ

Ǹ˼¹Ԥ plot (splot) ޥɤƤˡˤĤƤ ʲ⻲: command-line-editing (10)

ľ襳ޥɤΤɽ뤳Ȥ䡢 history ԡˡˤĤƤϡʲ⻲: show plot (95.64)

92 Reread

reread ޥɤϡload ޥɤޤϥޥɥ饤ǻꤷ gnuplot Υޥɥե򡢤μΥޥɤɤޤˡ ˺ꤷޤϡޥɥեκǽ餫 reread ɤޤǤΥޥɤ̵¥롼פܼŪ˼Ƥ뤳Ȥˤʤޤ (ϲⰭȤǤϤޤreread if Ȥ߹ 碌뤳ȤǤȤƤͭѤʥޥɤȤʤޤ) ɸϤϤξϡreread ޥɤϲƶͿޤ

:

ե "looper" Τ褦ʥե

     a=a+1
     plot sin(x*a)
     pause -1
     if(a<5) reread

ơgnuplot 鼡Τ褦˼¹ԤȤޤ
     a=0
     load 'looper'

ȡpause Υåʬ䤵줿 5 ΥץåȤԤ뤳Ȥ ʤޤ

ե "data" ƹԤˡ0 10 ޤǤϰ (yrange) 6 ĤΥ ǽ餬 x ɸǡ¾ 5 ĤΰۤʤؿΡ x Ǥ ͤǤȤޤơե "plotter"

     c_p = c_p+1
     plot "$0" using 1:c_p with lines linetype c_p
     if(c_p <  n_p) reread

ǡgnuplot 鼡Τ褦˼¹ԤȤޤ
     n_p=6
     c_p=1
     unset key
     set yrange [0:10]
     set multiplot
     call 'plotter' 'data'
     unset multiplot

ȡ5 ĤΥץåȤ碌 1 ĤΥդǤޤyrange ϡ multiplot ⡼ɤǺǽΤΤ³ƽ񤫤 5 ĤΥդƱ Ĥ褦ˡŪ˻ꤹɬפޤꤷʤФʤ 󡣤ʤȡƤΥդƱǽ񤫤뤳Ȥˤʤޤ ˥᡼ΥץȤơdemo ǥ쥯ȥ animate.dem ⻲ Ƥ

93 Reset

ޥ reset ϡset ޥɤǤ롢դ˴ؤƤ ץǥեȤͤᤷޤΥޥɤϡload ޥ ɥե¹ԤǥǥեȤꡢ򤿤 Ǹξ֤ᤷȤʤɤǤ

ʲΤΤϡreset αƶޤ

    `set term` `set output` `set loadpath` `set fontpath` `set linetype`
    `set encoding` `set decimalsign` `set locale` `set psdir` `set fit`

reset ϡɬץΩ夬ä֤ˤᤵʤȤ դƤϡե gnuplotrc $HOME/.gnuplot ΥޥɤǥǥեȤͤѹϡꥻåȤƤ Ǥ reset session ȤСΥޥɤƼ¹ ޤ

reset session ϡ桼ѿ桼ؿ٤Ƥǥ ȤƥΤνե gnuplotrc ȸĿ Ѥνե $HOME/.gnuplot Ƽ¹Ԥޤʲ:initialization (26)

reset errors ϡ顼ѿ GPVAL_ERRNO GPVAL_ERRMSG Τߤ ꥢޤ

reset bind ϡǥեȤξ֤ޤ

94 Save

save ޥɤϡ桼ؿѿset term ξ֡set ꤹƤΥץΤ줫뤤Ϥ餹٤Ƥȡ˲ä ƺǸ˼¹Ԥ plotsplot) ޥɤ򡢻ꤷե ¸ޤ

:

       save  {<ץ>} '<ե̾>'

ǡ< ץ> ϡfunctions, variables, terminal, set Τ줫Ǥɤꤵʤäˤϡgnuplot ϡ桼 ؿѿset ꤹ륪ץ󡢺Ǹ˼¹Ԥ plotsplot) ޥɤƤ¸ޤ

save ϡƥȷǽϤޤޤΥե load ɤɤ߹ळȤǤޤset ץդޤϲ⥪ץ Ĥ save ¹Ԥ硢terminal output Υ ̾ϥȵĤǽ񤭽ФޤϤνϥե ¾δĶ˥󥹥ȡ뤵줿 gnuplot ưˡʤ˻Ȥ 褦ˤ롢뤤Ϥäե񤭤Ƥޤäꤹ 򤱤롢Ȥạ̈ޤ

save terminal ϡterminal ξ֤򡢥ȵĤ˽񤭽 ޤϼˡäȤδ֤ terminal ؤ ¸Ƥ terminal ξ֤ɤ߹ळȤǰ terminal ᤹ʤɤΩޤñ gnuplot åǤϡ ߤ terminal ¸/¾ˡǤ륳ޥ set term push set term pop Ȥष⤷ޤ󡣰ʲ:set term (95.81)

ե̾ϰ˰ϤƤʤФʤޤ

̤ʥե̾ "-" ˤ save ޥɤɸϤ˽Ϥ뤳 Ǥޤpopen ؿ򥵥ݡȤ褦ʥƥ (Unix ʤ) Ǥϡ save νϤѥ׷ͳ¾γץϤȤǤޤ 硢ե̾Ȥƥޥ̾Ƭ '| ' ĤΤȤޤ ϡgnuplot ȥѥפ̤̿ץˡgnuplot ˴ؤӤ󥿡ե󶡤ޤܺ٤ϡʲ: batch/interactive (8)

:

     save 'work.gnu'
     save functions 'func.dat'
     save var 'var.dat'
     save set 'options.dat'
     save term 'myterm.gnu'
     save '-'
     save '|grep title >t.gp'

95 Set-show

set ޥɤϼ¤¿ΥץꤹΤ˻Ȥޤ plot, splot, replot ޥɤͿޤDzɽޤ

show ޥɤϤͤɽޤshow all Ǥ ɽޤ

set ޥɤѹ줿ץϡб unset ޥ ɤ¹Ԥ뤳ȤǥǥեȤξ֤᤹ȤǤޤʲ⻲:reset (93)ƤΥѥ᡼ǥեȤͤᤷޤ

set unset ޥɤˤϷ֤ѤǤޤʲ:plot for (84.10)

95.1 Ѥñ (angles)

ǥեȤǤ gnuplot ϶˺ɸդΩѿñ̤ϥ饸 ޤset polar set angles degrees ꤹȡñ ٤ˤʤꡢǥեȤϰϤ [0:360] Ȥʤޤϥǡե äǤ礦٤ϡset mapping ޥɤꤹ 뤳Ȥˤ 3 ǤͭǤ

:

     set angles {degrees | radians}
     show angles

set grid polar ǻꤵ٤⡢set angles ǻꤷñ̤ɤޤ ɽޤ

set angles Ȥ߹ߴؿ sin(x), cos(x), tan(x) ΰ asin(x), acos(x), atan8x), atan2(x), arg(x) νϤˤƶͿޤж 䡢٥åؿΰˤϱƶͿޤ󡣤ʣǿȤ жؿνϤˤϱƶФޤδؿȤȤϡ set angles radians Ϥΰδ֤˰ä¸ ʤФʤޤ


     x={1.0,0.1}
     set angles radians
     y=sinh(x)
     print y         #{1.16933, 0.154051} ɽ
     print asinh(y)  #{1.0, 0.1} ɽ


     set angles degrees
     y=sinh(x)
     print y         #{1.16933, 0.154051} ɽ
     print asinh(y)  #{57.29578, 5.729578} ɽ

ʲ⻲

poldat.dem: set angles Ѥ˺ɸΥǥ

95.2 (arrow)

set arrow ޥɤȤȤˤꡢվǤդΰ֤ɽ 뤳ȤǤޤ

:

     set arrow {<tag>} from <position> to <position>
     set arrow {<tag>} from <position> rto <position>
     set arrow {<tag>} from <position> length <coord> angle <ang>
     set arrow <tag> arrowstyle | as <arrow_style>
     set arrow <tag> {nohead | head | backhead | heads}
                     {size <headlength>,<headangle>{,<backangle>}}
                     {filled | empty | nofilled | noborder}
                     {front | back}
                     {linestyle | ls <line_style>}
                     {linetype | lt <line_type>}
                     {linewidth | lw <line_width>}
                     {linecolor | lc <colorspec>}
                     {dashtype | dt <dashtype>}


     unset arrow {<tag>}
     show arrow {<tag>}

< tag> ϳ̤Ǥꤷʤϡλ ̤ѤκǤ⾮ưŪ˳ƤޤȤȤǡ ѹꡢǤޤ¸ߤ° ϡ set arrow ޥɤѹսꤷ

κǽüΰ֤ϡ "from" ǻꤷޤ⤦Ĥü ʲ 3 ĤΰۤʤȤߤΤ줫ǻǤޤ< position> x,y 뤤 x,y,z ǻꤷޤƤ˺ɸϤ򤹤뤿 first, second, graph, screen, character ֤Ȥ ޤɸꤷʤХǥեȤǤ 0 ȸʤޤܺ٤ϰʲ: coordinates (12)ǽüФɸҤϡ2 ܤü ϱƶޤ

1) "to < position> " ϡ⤦Ĥüкɸꤷޤ

2) "rto < position> " ϡ"from" ΰ֤Τꤷޤξ硢 (п) graph, screen ɸФƤϡȽ εΥͿ줿ŪͤбޤпФƤϡͿ 줿Ūͤϡ齪ؤܿбޤäơп 硢ŪͤȤ 0 ͤͿ뤳Ȥϵޤ

3) "length < coordinate> angle < angle> " ϡʿǤ ꤷޤlength ˤǤդκɸϤŬѤǤޤangle ñ̤Ͼ ٤ˤʤäƤޤ

¾°⡢餫Υǡޤϥޥ set arrow Ǥ줾Ϳ뤳ȤǽǤ¾°ξܺ٤ˤĤ Ƥϰʲ: arrowstyle (95.78.1)

:

(1,2) ؤ桼ѤΥ饤󥹥 5 ˤ:

     set arrow to 1,2 ls 5

ΰκѤ (-5,5,3) إֹ 3 ˤ:

     set arrow 3 from graph 0,0 to -5,5,3

ü 1,1,1 ѹ򳰤 2 ˤˤ:

     set arrow 3 to 1,1,1 nohead lw 2

x=3 νإդβޤDZľˤ:

     set arrow from 3, graph 0 to 3, graph 1 nohead

T ξü˻ıľˤ:

     set arrow 3 from 0,-5 to 0,5 heads size screen 0.1,90

ŪʵΥ򥰥պɸͿˤ:

     set arrow from 0,-5 rto graph 0.1,0.1

x пŪʽꤷ:

     set logscale x
     set arrow from 100,-5 rto 10,10

100,-5 1000,5 ޤǤޤ (y) ФƤ Ūʺɸ 10 " 10" ̣ΤФп (x) ФƤ Ūʺɸ 10 "ܿ 10" ȤƯޤ

2 ֤äˤ:

     unset arrow 2

Ƥäˤ:

     unset arrow

Ƥξ (ν) ˤ:

     show arrow

Υǥ

95.3 ư̼ (autoscale)

ư̼ܵǽ (autoscale) x, y, z γƼФΩˡޤϰ礷 ƻǤޤǥեȤǤƤμФƼư̼Ԥޤ ޤΰ (plot) ȤΤߤ򸵤 autoscale ϡ оݤǤʤ plot ˥ե饰 noautoscale Ĥ뤳ȤǤޤ ʲ: datafile (84.3)

:

     set autoscale {<axes>{|min|max|fixmin|fixmax|fix} | fix | keepfix}
     set autoscale noextend
     unset autoscale {<axes>}
     show autoscale

ǡ< axes> () x, y, z, cb, x2, y2, xy Τ Ǥmin ޤ max 򼴤ɲûꤹ (xy ǤϻȤޤ) gnuplot ˤμκǾ͡ޤϺͤΤߤư̼ܤ뤳 ȤˤʤޤⲿꤵƤʤƤμоݤȤʤޤ

ǥեȤǤϡư̼ܵǽϼϰϤθ³ǡΤޤࡢ Ǥᤤ٥֤ꤷޤ fixmin, fixmax, fix, noextend ϡ֤ޤǤϰϤμư gnuplot Ԥ碌ʤ褦ˤޤξ缴ϰϤθ³ϡüˤǡ κɸͤ˴˰פޤset autoscale noextend ϡ set autscale fix ƱǤϰϻꥳޥɤθ˥ noextend ɲäСĤμϰϤαĹǽ̵ˤ뤳Ȥ Ǥޤ:

    set yrange [0:*] noextend

set autoscale keepfix ϡfix ѹ˻Ĥޤޡ٤Ƥ ư̼ܤˤޤ

ư̼ܵǽȤȤϡϰϤϼưŪ˳Ф졢°ѿ(plot ΤȤ y splot ΤȤ z ) ϡؿǡͰ褬 ޤ褦ꤵޤ

°ѿ (y ޤ z) μư̼ܵǽꤵƤʤϡߤ y z ϰϤΤޤ޻Ȥޤ

Ωѿ (plot ΤȤ x splot ΤȤ x,y ) μư̼ ǽꤵƤϡ褵ƤΥǡեޤ 褦Ȥ褦ˤʤޤǡե뤬 1 ĤꤵƤ ʤϡư̼ܵǽϤʤθ̤⤢ޤ󡣤ĤޤꡢؿΤߤ ꤵƤƥǡեȤʤϡx ϰ (z = f(x,y) 褷ƤȤ y ) ϱƶ򤦤ޤ

ϰϤ˴ؤܤ˴ؤƤϡʲ: set xrange (95.107)

޲ѿ⡼ (parametric) Ǥ⼫ư̼ܵǽͭǤ (ʲ:set parametric (95.62))ξ硢¿ν°ѿΤǡx, y, z Ƽ˴ؤơ¿椬Ԥޤ޲ѿ⡼ɤǤΩѿ ( ѿ) plot Ǥ t splot Ǥ u, v Ǥ޲ѿ⡼ Ǥϡư̼ܵǽ (t, u, v, x, y, z) ƤϰϤ椷x, y, z ϰϤμư˹Ԥޤ

ư̼ܵǽϡ˺ɸ⡼ (polar mode) Ǥ plot ޲ѿ⡼ Ʊͤ˵ǽޤ˺ɸ⡼ɤǤ set dummy Ωѿ t ѹǤ (ʲ: set dummy (95.22)) Ȥĥޤ

꤬ 2 μɽ졢⤳μФ褬Ԥʤ äˤϡx2range y2range xrange yrange ͤѤ ϡϰϤΤ餷μ¹Ԥ䡢ϰϤĤ˼ư̤ פ˹ԤޤΤǡˤäͽʤ̤⤿餹ǽ ޤ򤱤Τˡ 2 ϰϤ 1 ϰϤŪ˥ (link) ˡޤʲ: set link (95.39)

:

ʲ y μư̼ܵǽꤷޤ (¾μˤϱƶͿޤ):

     set autoscale y

ʲ y κǾͤФƤΤ߼ư̼ܵǽꤷޤ (y κ͡¾μˤϱƶͿޤ):

     set autoscale ymin

ʲ x2 ٤ؤμưϰϳ絡ǽ̵ˤäǡ⡢ޤϴؿФ٤ϰϤݻޤ:

     set autoscale x2fixmin
     set autoscale x2fixmax

ʲ x, y ξμư̼ܵǽꤷޤ:

     set autoscale xy

ʲ x, y, z, x2, y2 μư̼ܵǽꤷޤ:

     set autoscale

ʲ x, y, z, x2, y2 μư̼ܵǽػߤޤ:

     unset autoscale

ʲ z ΤߤˤĤƼư̼ܵǽػߤޤ:

     unset autoscale z

95.3.1 ޲ѿ⡼ (parametric)

޲ѿɽ⡼ (set parametric) ˤƤϡxrange yrange Ʊͤ˽̼ܤѤ뤳ȤǤޤĤޤꡢ޲ѿ⡼ɤˤƤϡ x ⼫ưŪ˽̼ܤĴ졢ȤƤ޲ѿɽδؿ ޤ褦ˤʤޤy ޲ѿ⡼ɤǤʤƱͤ ưŪ˽̼ܤѤޤx ˤĤƼư̼ܵǽꤵƤʤ ϡߤ x ϰϤȤޤ

ǡե޲ѿ⡼ɤǤ⤽Ǥʤ֤ǤƱͤ褵 ޤǡեȴؿߤƤˤϡ㤤 ޤ: ޲ѿ⡼ɤǤʤСx μư̼ܵǽϡؿϰϤ ǡϰϤ˹碌ޤ޲ѿ⡼ɤǤϥǡϰ ϴؿϰϤ˱ƶޤ

ˤϡҼˤʤʤ褦 set autoscale t Ȥޥ ѰդƤޤθ̤˾ΤǤư̼ ǽꤵƤȡgnuplot t ϰϤ̵ʤäƤޤ ȽǤϰϤ򾯤Ĵޤư̼ܵǽꤵƤʤ Τ褦ʤȤˤϥ顼ȤʤޤΤ褦ưϼ¤Ϥޤ̣ ʤä set autoscale t Ȥޥɤ¸߰յ˵䤬 ޤ

splot ǤϾ嵭ȯۤθ˳ĥƤޤư̼ܵǽꤵ Ƥ硢x, y, z γϰϤϷ׻̤ޤ褦ꤵ̼ Ĵޤ

95.3.2 ˺ɸ⡼ (polar)

˺ɸ⡼ (set polar) Ǥϡxrange yrange ϼư̼ܥ⡼ɤǤ ʤʤޤư¼ϰѤ set rrange Ѥ硢xrange yrange Ϥ˹礦褦˼ưŪĴޤˤ ĴСθŪ xrange yrange ޥɤȤȤ Ǥޤʲ: set rrange (95.74)trange ϼưϰ꤬ʤޤ ⤷trange ݸ (ʬ) ˼ޤʤСư̼ܵǽˤꤽ ξݸ¤Τߤ褬Ԥ뤳ȤդƤ

1 ġ뤤 2 ĤϰϤŪꤷƤ¾ΤΤꤷʤ ͽʤ̤Τޤ ʲ⻲

˺ɸΥǥ⡣

95.4 Bind

ߤΥۥåȥγ (binding) ɽޤʲ: bind (23.1)

95.5 Bmargin

ޥ set bmargin ϡ;Υꤷޤܺ٤ ʲ: set margin (95.46)

95.6 դ (border)

set border unset border plot splot ǤΥդȤ ɽ椷ޤȤɬ⼴ȤϰפʤȤդƤ plot Ǥפޤsplot ǤפƤޤ

:

     set border {<integer>}
                {front | back | behind}
                {linestyle | ls <line_style>}
                {linetype | lt <line_type>} {linewidth | lw <line_width>}
                {linecolor | lc <colorspec>} {dashtype | dt <dashtype>}
     unset border
     show border

set view 56,103 Τ褦Ǥդɽ줦 splot Ǥϡ x-y ʿ̾ 4 ĤγѤ (front), (back) , (left), (right) Τ褦˸ƤФޤ󤳤Ʊ 4 ĤγѤŷ̤ˤ ޤäơ㤨 x-y ʿ̾θȱγѤĤʤ "α (bottom right back)" ȸŷμγѤĤʤ "ľ (front vertical)" ȸƤ֤Ȥˤޤ (̿̾ˡϡ Ԥɽ򤹤뤿˻Ȥޤ)

Ȥϡ12 ӥåȤ沽Ƥޤ: 4 ӥåȤ plot 볰ȡsplot ФƤ̤γȡ 4 ӥåȤ splot αľ ʳȡƾ 4 ӥåȤ splot ŷ̤γȤ椷ޤ ƳȤϡɽбܤο¤ˤʤޤ:

ն沽
ӥå plot splot
1 κ
2 κ
4 α
8 α
16 ̤ʤ ľ
32 ̤ʤ ľ
64 ̤ʤ ľ
128 ̤ʤ ľμ
256 ̤ʤ ŷκ
512 ̤ʤ ŷα
1024 ̤ʤ ŷκ
2048 ̤ʤ ŷα

ǥեȤͤ 31 ǡ plot Ǥ 4 γơ splot Ǥ̤ z Ȥ̣ޤ

2 Ǥ϶Ϥ٤ƤǤΰ־ޤ (front) ⤷Ǥβϡset border back ȤƤ

3 (hidden3d) Ǥϡ̾϶Ǥ Ʊͤ˱оݤˤʤޤset border behind ȤȤΥǥե ȤεưѤޤ

< linestyle> , < linetype> , < linewidth> , < linecolor> , < dashtype> ꤷ ơˤȿǤ뤳ȤǤޤ (ߤν֤ ȤΤ˸ꤵޤ) ˡι (tics) 褹ݤ⡢򶭳褹뤫 褹뤫˴ؤ餺Υ饤󥹥Ѥޤ

plot Ǥϡ 2 ͭˤ뤳ȤǡȺʳζȤǤޤܺ٤ϡʲ: xtics (95.108)

"unset surface; set contour base" ʤɤˤä splot ̤ˤΤ 褹硢ľŷϤ餬ꤵƤƤ褵ޤ

set grid Υץ 'back', 'front', 'layerdefault' Ǥ⡢ ζ񤯽֤Ǥޤ

:

ʲϡǥեȤޤ:

     set border

ʲϡplot ǤϺȲsplot Ǥ̤κȺޤ:

     set border 3

ʲϡsplot Ǽ˴Ȣޤ:

     set border 4095

ʲϡαľ̤ŷΤʤȢޤ:

     set border 127+256+512 # ޤ set border 1023-128

ʲϡplot ФƾȱΤߤ򼴤ȤŤޤ:

     unset xtics; unset ytics; set x2tics; set y2tics; set border 12

95.7 (boxwidth)

ޥ set boxwidth boxes, boxerrorbars, boxplot, candlesticks, histograms ˤΥǥեȤ 뤿˻Ȥޤ

:

     set boxwidth {<width>} {absolute|relative}
     show boxwidth

ǥեȤǤϡ٤礦ܤ褦˳ơޤ ȤϰۤʤǥեȤꤹˤ set boxwidth ޥɤ ޤrelative ξϡǥեȤФǤȲ ޤ

relative ꤷʤä硢 (boxwidth) Ȥƻꤵ 줿Ūͤϡߤ x ñ̤Ǥο (absolute) ǤȲ ޤx п (ʲ: set log (95.43)) Ǥ硢boxwidth ϼºݤˤ x=1 ǤΤ "Ū" ȤʤꡢʪŪĹΤ̤ ݻޤ (ʤ x ɸäˤȤʤäƶʤä ޤ)п x ϰϤ x=1 ΥƤϡŬڤ Фˤϲ٤Ƥߤɬפ뤫Τޤ

ǥեȤͤϡboxes boxerrorbars Ѥɲä ǡŪͤФˤä֤ޤ4 Υǡ ξ硢 4 ܤͤȤƻȤޤ -2.0 ξˤϼư׻ޤܺ٤ϡʲ: style boxes (32),style boxerrorbars (31)

ưŪ˥åȤˤ

     set boxwidth

Ȥ롢뤤 4 ΥǡФƤϰʲΤ褦ˤޤ

     set boxwidth -2

plot Υ using ȤäƤƱ̤뤳ȤǤޤ:

     plot 'file' using 1:2:3:4:(-2)

ưŪͤȾʬˤˤ

     set boxwidth 0.5 relative

Ū 2 ˤˤ

     set boxwidth 2 absolute

95.8 顼⡼ (color)

gnuplot ϡ2 Ĥΰۤʤﷲ򥵥ݡȤƤޤǥեȤǤϡ ˰ۤʤ뿧ѤޤοȤǤ ⤦Ĥǡ/ѥΤߤ̤ ޤޥ set color ϥ顼򤷤ޤʲ:set monochrome (95.49), set linetype (95.38), set colorsequence (95.9)

95.9 (colorsequence)

:
    set colorsequence {default|classic|podo}

set colorsequence default ϡϷ˰¸ʤ 8 ν 򤷤ޤʲ: set linetype (95.38), colors (21)

set colorsequence classic ϡϷ̤ˤΥɥ饤ФѰդ򤷤ޤμϡ4 100 Ķޤޤ ¿ϡ֡Сġ硢忧ǻϤޤޤ줬Ǥgnuplot ΥǥեȤεưǤ

set colorsequence podo ϡWong (2011) [Nature Methods 8:441] ǿ侩 Ƥ롢P D (Protanopia, Deuteranopia) οԤưפ˶ Ǥ 8 Ȥ򤷤ޤ

ξǤ⡢ĹȤοˤĤƤϤ˥ޥǤ ʲ: set linetype (95.38), colors (21)

95.10 Clabel

Υޥɤ侩Ǥ set cntrlabel ѤƤ unset clabel set cntrlabel onecolor ˡset clabel "format" set cntrlabel format "format" ֤äƤޤ

95.11 åԥ (clip)

:
     set clip {points|one|two}
     unset clip {points|one|two}
     show clip

ǥեȤξ:

     unset clip points
     set clip one
     unset clip two

ΰζ濴ǡϡɽΥ ε򶭳γˤϤߤƤޤ褦ʾǤ⡢̾褷ޤ set clip points ϡ2 ǤΤ褦濴ΰˤ Ǥ⡢Τ褦򥯥åԥ󥰤ޤ (Ĥޤ褷ޤ) 濴ΰ賰ˤ褦ʥǡϡ褷褷ޤ

ʬˤĤƤϡΰüϰ (xrange yrange) γˤ ϡ̾綠ʬ褷ޤ set clip one ϡüϰϤγˤʬϰʬ 褹褦 gnuplot ˻ؼޤ set clip two ϡξüϰϤγˤʬϰʬ 褹褦 gnuplot ˻ؼޤ ʬΤϰϳǤ褦ʬϷ褷褷ޤ

:

* set clip ϡ襹 lines, linespoints, points, vectors ʬΤߤ˱ƶޤ

* pm3d 2 ͱƤ̤ǻѤ뿧ĹΥåԥ󥰤ϡ set pm3d clip1in set pm3d clip4in ǹԤޤ

* ֥ȤΥåԥ󥰤ϡġΥ֥ (object) {clip| noclip} °椷ޤ

95.12 ٥ (cntrlabel)

:
     set cntrlabel {format "format"} {font "font"}
     set cntrlabel {start <int>} {interval <int>}
     set contrlabel onecolor

set cntrlabel ϡ (ǥե) splot ... with labels ݤΥվΥ٥椷ޤԤξ硢٥ϥ٥뵭 ° "pointinterval" ˽äƳ˱ä֤ޤǥե ȤǤϥ٥ 5 ܤʬξ֤졢20 Ĥʬ ˷֤ޤ ΥǥեȤϡʲƱǤ:

     set cntrlabel start 5 interval 20

ͤϥޥ set cntrlabel ǡ뤤 splot ޥɤ˴ ֤ꤹ뤳ȤѹǤޤ:
     set contours; splot $FOO with labels point pointinterval -1

ֳ֤ͤꤹȡ٥ϳ 1 ĤĤޤ set samples set isosamples 礭ͤξ¿ Ĥޤ

(key) ˤϡ٥򤽤줾 (linetype) Ѥƽ ޤǥեȤǤϡKȤΥ٥ͿΤǡ줾 Ф̡Υ٥뤬ޤޥ set cntrlabel onecolor ٤ƤƱ褹ΤǡˤϰĤΥ٥Τߤ ޤΥޥɤϡŤޥ unset clabel ֤ΤǤ

95.13 (cntrparam)

set cntrparam ˡӤ餫褹ˡ 椷ޤshow contour ϸߤ contour Ǥʤ cntrparam ɽޤ

:

     set cntrparam { { linear
                     | cubicspline
                     | bspline
                     | points <n>
                     | order <n>
                     | levels { auto {<n>} | <n>
                                | discrete <z1> {,<z2>{,<z3>...}}
                                | incremental <start>, <incr> {,<end>}
                              }
                     }
                   }
     show contour

Υޥɤ 2 ĤεǽäƤޤĤ (ǡ ֡뤤ϴؿɸܲ (isosample) ˤ) Ǥ z ͤ ǡ⤦ĤϡΤ褦˷ꤵ줿 z ƱΤǷ ˡǤ< n> < z1> , < z2> ... Ǥդ ƥץѿΰ̣ϼ̤Ǥ:

linear, cubicspline, bspline -- () ˡꤷޤ linear ʤС϶̤줿ͤʬŪľǷӤޤ cubicspline (3 ץ饤) ʤСʬŪľϤ֤ʤ餫 褦֤ޤ¿ǤIJǽޤ bspline (B-spline) ϡ餫ʶȤݾڤޤ z ΰ֤ƤǤ

points -- ǽŪˤϡƤϡʬŪľǹԤޤ ǻꤹϡbspline ޤ cubicspline Ǥζ˻Ȥʬ ο椷ޤºݤˤ cubicspline bspline ζ (ʬ) points ʬοѤʤޤ

order -- bspline μǤμ礭ʤˤĤơ Ϥʤ餫ˤʤޤ (󡢹⼡ bspline ˤʤۤɡ ʬŪľΥƤޤ)Υץ bspline ⡼ɤǤ ͭǤǤͤϡ2 (ľ) 10 ޤǤǤ

levels -- Υ٥οϡauto (ǥե), discrete, incremental Υ٥ < n> 椷ޤ

auto Ǥϡ< n> ϲΥ٥οǤꡢºݤΥ٥οϡñʥ ٥褦Ĵᤵޤ̤ z ɸ zmin zman ϤˤȤϤδ֤ dz ܤˤʤ褦ޤ ǡdz 10 Τ٤ 1, 2, 5 ܡΤ줫Ǥ (2 Ĥ δ֤ٳڤ褦)

levels discrete Ǥϡϻꤵ줿 z = < z1> , < z2> ... Ф ޤꤷĿΥ٥θĿȤʤޤdiscrete ⡼ɤǤϡset cntrparams levels < n> ȤϾ̵뤵ޤ

incremental Ǥϡ z = < start> Ϥޤꡢ< increment> ƹԤ³θĿãޤǽ񤫤ޤ< end> Ϥο ꤹΤ˻Ȥޤϸ set cntrparam levels < n> ˤä ѹޤz пξ硢set ztics ξƱͤˡ < increment> ܿȤƲᤵޤ

ޥ set cntrparam ʤ˸ƤФ줿ϡΥǥեȤ ͤȤޤ: linear, 5 points, order 4, 5 auto levels

:

     set cntrparam bspline
     set cntrparam points 7
     set cntrparam order 10

ʲϥ٥δब礨 5 ĤΥ٥뤬˼ưŪ򤵤ޤ:

     set cntrparam levels auto 5

ʲ .1, .37, .9 ˥٥ꤷޤ:

     set cntrparam levels discrete .1,1/exp(1),.9

ʲ 0 4 ޤǡ1 䤹٥ꤷޤ:

     set cntrparam levels incremental  0,1,4

ʲϥ٥ο 10 ꤷޤ (äκǸ (end) ޤϼư ꤵ٥οѹޤ):

     set cntrparam levels 10

ʲϥ٥οݻޤޥ٥γͤʬͤꤷޤ:

     set cntrparam levels incremental 100,50

˴ؤƤϡʲ: set contour (95.16)Υ ٥ν񼰤˴ؤƤϡʲ: set cntrlabel (95.12)

ʲ⻲ȤƤ

Υǥ (contours.dem)

桼٥Υǥ (discrete.dem).

95.14 顼ܥå (colorbox)

ΰɽʤ pm3d palette min_z max_z ޤǤγ 餫ʿθۤϡunset colorbox ȤƤʤ¤ꥫ顼ܥå (colorbox) ޤ


     set colorbox
     set colorbox {
                { vertical | horizontal } {{no}invert}
                { default | user }
                { origin x, y }
                { size x, y }
                { front | back }
                { noborder | bdefault | border [line style] }
              }
     show colorbox
     unset colorbox

顼ܥåΰ֤ϡdefault ޤ user ǻǤԤξ ΰ֤礭 origin size ޥɤꤷޤ顼ܥ ϡդ̤θ (front) 뤤 (back) 褵뤳 ȤǤޤ

ۤϡץ vertical horizontal ؤ뤳Ȥ ǽǤ

origin x, y size x, y user ץȤȤǤΤ߻Ѥ ޤx, y ͤϡǥեȤǤϥ꡼ɸȲᤵޤ 3 ѤΤޤäץ˲᤮ޤset view map splot ޤ 2 ǤϡǤդκɸϤǤλ꤬ǽǤ㤨 аʲƤߤƤ:

   set colorbox horiz user origin .1,.02 size .8,.04

Ͽʿοۤ򥰥դβդ褷ޤ

border ϶ ON ˤޤ (ǥե) noborder ϶ OFF ˤޤborder θͿȡ򶭳 褹 line style ΥȤƻȤޤ㤨:

   set style line 2604 linetype -1 linewidth .4
   set colorbox border 2604

line style 2604ʤ٤ΥǥեȤζ (-1) Ƕ 褷ޤbdefault (ǥե) ϡ顼ܥåζ˥ եȤζ line style Ȥޤ

顼ܥåμ cb ȸƤФ졢̾μΥޥɤ椵ޤ ʤ set/unset/show cbrange, [m]cbtics, format cb, grid [m]cb, cblabel ʤɤ¿ʬ cbdata, [no]cbdtics, [no]cbmtics ʤɤȤǤ礦

ѥ᡼̵ set colorbox ϥǥեȤΰ֤ؤޤ unset colorbox ϥ顼ܥåΥѥ᡼ǥեͤ˥ꥻå ξǥ顼ܥå OFF ˤޤ

ʲ⻲: set pm3d (95.65), set palette (95.66), x11 pm3d (106.66.6), set style line (95.78.7)

95.15 ̾ (colornames)

gnuplot ϸꤵ줿Ŀο̾äƤޤϡpm3d ѥ åȤǤĤʤ뿧ϰϤΤˡ뤤ϸġ饤󥹥 οϷ˰¸ʤꤹΤ˻Ȥޤgnuplot λĿ̾ΰ򸫤ˤϡޥ show colornames ѤƤ :


     set style line 1 linecolor "sea-green"

95.16 (contour)

ޥ set contour ϶̤ȤؼޤΥ splot ǤΤͭǤϡʻҾǡ (grid data) ɬ פȤޤܺ٤ϡʲ: grid_data (97.2)ʻҾǡ ϡʻҤ뤿 set dgrid3d Ѥޤ

:

     set contour {base | surface | both}
     unset contour
     show contour

3 ĤΥץɤ˰ꤷޤbase x/y ιߤΤ̤졢surface ǤϤ ̼Τξ졢both Ǥ̤ȶ̾ξޤ 󤬻ꤵƤʤ base ǤȲꤵޤ

˱ƶͿѥ᡼ˤĤƤϡʲ:set cntrparam (95.13)Υ٥˴ؤƤϡʲ:set cntrlabel (95.12)

ΤߤΥդ뤿ˡ̼Ȥ򤷤ʤ褦ˤ뤳Ȥ Ǥޤ (ʲ: unset surface (95.79))set size Ȥäơդ ̰դ褹뤳ȤǽǤäϷ⡢Υ ǡ֥å˽񤭽ФƤ 2 ǡȤɤ߹ 褹Ф褤椬ǽˤʤޤ:


     unset surface
     set contour
     set cntrparam ...
     set table $datablock
     splot ...
     unset table
     # ξϺ $datablock ˤ
     set term <whatever>
     plot $datablock

ˤϡǡϳʻҾǡ ("grid data") Ǥɬפ ޤΤ褦ʥեǤϡĤ y-ΩƤ ¤٤Ƥޤ٤ y-Ω¤٤졢١ ³Ƥޤy-ΩƱΤʬΥˤϰԤζ ( ԰ʳʸޤޤʤ) 򶴤ߤޤʲ: splot datafile (97.1)

ʲ⻲ȤƤ

Υǥ (contours.dem)

桼٥Υǥ (discrete.dem).

95.17 / (dashtype)

ޥ set dashtype ϡ/ѥֹǻȤǤ褦 ϿޤϤȤƤǡ/ѥ򤽤ֹǼ ĤƤʤСɤǤŪ/ѥĤ ޤ :
    set dashtype 5 (2,4,2,6)   # 5 ֤ dashtype ޤϺ
    plot f1(x) dt 5            #  dashtype Ȥä plot
    plot f1(x) dt (2,4,2,6)    # Ʊ
    set linetype 5 dt 5        # Υѥ linetype 5 Ǿ˻Ȥ
    set dashtype 66 "..-"      # ʸǿ dashtype 

ʲ: dashtype (21.2)

95.18 Data style

ΥޥɤηϸߤϿ侩Ƥޤ󡣰ʲ:set style data (95.78.3)

95.19 Datafile

ޥ set datafile ϡplot, splot, fit ޥɤϥǡ ɤˡ (field) βλ椹륪ץ ޤߤϡ6 ĤΤΤ褦ʥץ󤬼Ƥޤ

95.19.1 Set datafile fortran

ޥ set datafile fortran ϡϥե Fortran D Q ̤ͤʥåǽˤޤ̤ʥåϽ ٤ޤΤǡºݤˤΥǡե뤬 Fortran D Q äƤˤΤߤ򤹤٤ǤΥץϡθ unset datafile fortran Ԥ̵ˤǤޤ

95.19.2 Set datafile nofpe_trap

ޥ set datafile nofpe_trap ϡϥե뤫ǡɤ߹ ߤκݤˡ٤Ƥοɾư㳰ϥɥκƽ ʤ褦 gnuplot ̿ᤷޤˤꡢȤƤ礭ʥե뤫 ΥǡϤʤ®ʤޤư㳰˥ץ ब۾ェλƤޤϤޤ

95.19.3 Set datafile missing

ޥ set datafile missing ϡϥǡեǷ»ǡ Ҥ̤ʸ󤬤뤳Ȥ gnuplot ˻ؼޤmissing ؤǥեͤϤޤ󤬡ͤԤ̤ǿͤȤǧǤ ʤʸ˽вäϡƤιԤϷ»ǡǤȰ Ȥˤʤޤ»ǡ̵ (㤨 "NaN" 1/0) ϶̤ ޤ̵ͤϡ̤륰դζڤޤ»ǡ ξϤǤϤޤ

:

     set datafile missing "<string>"
     show datafile missing
     unset datafile

: ΥС gnuplot Ǥϡνˡѹ ƤޤʲǤΰ㤤򼨤ޤ

Image figure_missing
:
     set style data linespoints
     plot '-' title "(a)"
        1 10
        2 20
        3 ?
        4 40
        5 50
        e
     set datafile missing "?"
     plot '-' title "(b)"
        1 10
        2 20
        3 ?
        4 40
        5 50
        e
     plot '-' using 1:2 title "(c)"
        1 10
        2 20
        3 NaN
        4 40
        5 50
        e
     plot '-' using 1:($2) title "(d)"
        1 10
        2 20
        3 NaN
        4 40
        5 50
        e

(a) Υդϡ3 ܤ 1 ̵ͤ뤿ᡢС֤ΰ㤤 ޤŤǤ gnuplot Ǥϡ 1 Ԥ 1 Ĥǡʤä ε§ŬѤֹ "x" ˡǡ "y" ȸʤäƤ (2,3) 褷Ƥޤ

ʸ '?' »ạ̇̄ΤȤƻꤵƤ (b) ǤϡŤ Ǥ gnuplot Ǥ⿷ǤǤƱǡޤ

(c), (d) Υդ˸褦ˡŤ gnuplot Ǥ NaN using λ λˤäưۤʤä򤷤Ƥޤߤϡgnuplot N ȻꤵƤƤ ($N) ȻꤵƤƤ NaN ФƤƱ ԤޤʲΥǥ⻲ȤƤ

imageNaN ǥ⡣

95.19.4 Set datafile separator

ޥ set datafile separator ϡθϥեΥǡ ʬΥʸ (whitespace) ǤʤơǻꤹʸǤ gnuplot ˻ؼޤΥޥɤκǤŪʻϡɽ׻ Ȥǡ١եȤ csv (޶ڤ) եɤǤ 礦ǥեȤΥǡʬΥʸ϶ (whitespace) Ǥ

:

     set datafile separator {whitespace | tab | comma | "<chars>"}

:

     # ֶڤΥե
     set datafile separator "\t"


     # ޶ڤΥե
     set datafile separator comma


     # ϥե뤬 *  | Τ줫Ƕڤ줿ľ
     set datafile separator "*|"

95.19.5 Set datafile commentschars

ޥ set datafile commentschars ϡǡեΥȹ γʸȤƤɤʸȤꤷޤꤷʸΰĤ ǡԤκǽʸȤƸ줿硢ΥǡԤΤʹߤʬ̵뤷ޤǥեʸϡVMS Ǥ "#!"ʳǤ "#"Ǥ

:

     set datafile commentschars {"<string>"}
     show datafile commentschars
     unset commentschars

äơǡեΰʲιԤϴ̵뤵ޤ:

   # 1 2 3 4

ʲι
   1 # 3 4

ϡ2 ܤ˥ߤꡢθͭʥǡ 3 ܤ 4 ܤˤ ǧޤ

:

     set datafile commentschars "#!%"

95.19.6 Set datafile binary

ޥ set datafile binary ϡǡեɤ߹߻˥Х եǥեȤꤹΤ˻Ȥޤ񼰤ϡ줬 plot ޤ splot ޥɤǻȤΤΤƱǤ< binary list> 񤱤륭ɤ˴ؤƤϡܤϡʲ: binary matrix (97.1.1),binary general (84.2.1)

:

     set datafile binary <binary list>
     show datafile binary
     show datafile
     unset datafile

:

     set datafile binary filetype=auto
     set datafile binary array=(512,512) format="%uchar"


     show datafile binary   # ߤΰɽ

95.20 (desimalsign)

ޥ set decimalsign ϡθФ뤤 set label ʸ ˽񤫤ξ򤷤ޤ

:

     set decimalsign {<value> | locale {"<locale>"}}
     unset decimalsign
     show decimalsign

< value> ϡ̾ξ֤ƻȤʸǤŵŪ Τϥԥꥪ '.' 䥳 ',' Ǥ¾ˤͭѤʤΤǤ礦 < value> άȡζڤϥǥե (ԥꥪ) ѹޤunset decimalsign < value> άΤƱ̤ ޤ

:

¿Υ衼åѽǤϷˤ:

     set decimalsign ','

ΤȤդƤ: Ūʸꤷ硢ϼ ʤɤ gnuplot gprintf() 񼰴ؿǽϤͤΤߤ˱ƶ ϥǡν񼰻 sprintf() 񼰴ؿǽϤͤˤϱƶ 󡣤ϤϤηεưѹϡ˰ʲѤƤ:


     set decimalsign locale

ϡgnuplot ˡϤȽϤν񼰤򡢴Ķѿ LC_ALL, LC_NUMERIC, LANG θߤ˽äΤȤ碌褦ˤޤ


     set decimalsign locale "foo"

ϡgnuplot ˡϤȽϤν񼰤򡢥 "foo" ˽äΤ ޤΥ뤬󥹥ȡ뤵Ƥɬפޤ⤷ "foo" Ĥʤä硢顼åϤ졢 ѹޤlinux ƥǤϡ˥󥹥ȡ뤵 ΰ "locale -a" Ǹ뤳ȤǤޤlinux Υ ʸϤ "sl_SI.UTF-8" Τ褦ʷ򤷤ƤޤWindows Υʸ "Slovenian_Slovenia.1250"ޤ "slovenian" Τ ʷǤʸβϡC Υ󥿥饤֥꤬Ԥ ȤդƤŤ C 饤֥ǤϡΥݡ (㤨п 3 ζڤʸʤ) ʬŪˤ󶡤Ƥʤ ޤ


     set decimalsign locale; set decimalsign "."

ϡߤΥ˹äɤʾǤ⡢ƤϤФƻ Ѥ褦ꤷޤgnuplot ؿ gprintf() Ȥäƽ񼰲 ͤŪ˻ꤵ줿 '.' ˤʤޤ ()

95.21 ʻҾǡ (dgrid3d)

ޥ set dgrid3d ϡʻҾǡʻҾǡؤμǽ ͭˤΤΥѥ᡼ꤷޤʻҾǡι¤ˤĤ ξܺ٤ϡʲ: splot grid_data (97.2)

:

     set dgrid3d {<rows>} {,{<cols>}}
                 { splines |
                   qnorm {<norm>} |
                   (gauss | cauchy | exp | box | hann)
                     {kdensity} {<dx>} {,<dy>} }
     unset dgrid3d
     show dgrid3d

ǥեȤǤ dgrid3d ̵ˤʤäƤޤͭˤʤȡե ɤ߹ޤ 3 Υǡϡֻߤץǡ (ʻҾǡ) ǤȸʤޤʻҤϡդΤˡߤ Ϥˡȡrow_size/col_size ǻꤵι Ĥ褦ޤʻҤ x () y () ֤Ǥz ͤϻߤǡ z ͤνŤդʿѡޤϥץ ֤ȤƷ׻ޤѤС§Ūʴֳ֤γʻҤ졢 ƤγʻǸΥǡγ꤫ʶͤɾޤΥǡ ˤζͤ褵ޤ

ǥեȤοϹԤοΥǥեȤͤ 10 Ǥ

Υǡͤ׻뤿ΤĤΥ르ꥺबѰդ ơɲäΥѥ᡼ǤΤ⤢ޤ֤ϡʻ ˶ᤤǡۤɡγʻФƤ궯ƶͿޤ

splines 르ꥺϡ"Ĥ" 򸵤ˤַ׻Ԥޤ ɲåѥ᡼ޤ

qnorm 르ꥺϳƳʻϥǡνŤդʿѤ׻ޤ ϳʻεΥ norm εտǽŤդޤ(ºݤˤϡ dx, dy ƥǡȳʻȤκʬǤȤȡŤߤ dx^norm + dy^norm Ϳޤ2 Τ٤ΥΥࡢä 4, 8, 16 ˴ؤƤϡ νŤߤη׻ϥ桼åɵΥȤȤ (dx^2+dy^2)^norm/2 Τ褦 ˺ŬƤޤǤդǤʤȤȤǽǤ) Υ Τ٤ͤ򤿤Ĥɲåѥ᡼ȤƻǤޤΥ르ꥺ बǥեȤˤʤäƤޤ

ǸˡŤդʿѤη׻ѤˡĤʿ경Ťդؿ (kernel) ѰդƤޤ: z = Sum_i w(d_i) * z_i / Sum_i w(d_i), z_i i ܤΥǡͤǡd_i ϸߤγʻ i ܤΥǡΰ֤ εΥǤ٤ƤνŤդؿߤγʻ˶ᤤΥǡˤ 礭ʽŤߡΥǡˤϾŤߤդޤ

ʲνŤդؿѤǤޤ:

     gauss :     w(d) = exp(-d*d)
     cauchy :    w(d) = 1/(1 + d*d)
     exp :       w(d) = exp(-d)
     box :       w(d) = 1                     d<1 ξ
                      = 0                     ¾
     hann :      w(d) = 0.5*(1-cos(2*pi*d))   d<1 ξ
                 w(d) = 0                     ¾

5 Ĥʿ경ŤդؿΤĤѤ硢2 ĤޤǤ åѥ᡼ dx dy ǤޤϡΥη׻˺ɸΰ 򥹥ѴΤ˻Ȥޤ: d_i = sqrt( ((x-x_i)/dx)**2 + ((y-y_i)/dy)**2 ), ǡx,y ϸߤ ʻκɸǡx_i,y_i i ܤΥǡκɸǤdy Υǥե ͤ dx ǡΥǥեȤͤ 1 ˤʤäƤޤѥ᡼ dx dy ϡǡʻء֥ǡ켫Ȥñ̤ǡפδͿԤϰϤ ǽˤޤ

ץ󥭡 kdensity ϡŤդؿ̾θ (ץ ) ѴΥѥ᡼֤Τǡϥ르ꥺѹ ơʻѤ˷׻ͤŤߤ ( z = Sum_i w(d_i) * z_i ) Ǥϳ ʤ褦ˤޤz_i ٤ξ硢ϻ¾ 2 ѿνŤ դɾ褷ޤ: ( 5 ĤΤΰĤ) Ťդؿƥǡ ֤졢νŤߤ¤٤Ƥγʻɾ졢ƸΥǡ ˤγ餫ʶ̤褵ޤϡ1 Υǡ Ф smooth kdensity ץ󤬹ԤȤȤޤˤƱǤ ( kdensity2d.dem 򻲾ȤƤ)

ߴΤˡ鷺˰ۤʤ񼰤⥵ݡȤƤޤɤΥ ꥺŪ򤷤ʤä硢qnorm 르ꥺबꤵ졢 3 İʲΡ (,) ڤΥץѥ᡼ꤷϡ 򤽤줾Կ norm ͤǤȲᤷޤ

ץ dgrid3d ϡߤǡŤդʿѤǵ§ŪʳʻҤ ֤ѤñʻȤߤ˲᤮ޤ󡣤Ф줿ˡ ¸ߤޤΤǡñˡԽʬǤСgnuplot γǤ 褦ˡǥǡ٤Ǥ礦

ʲ⻲

dgrid3d.dem: dgrid3d Υǥ

scatter.dem: dgrid3d Υǥ

95.22 ѿ (dummy)

ޥ set dummy ϥǥեȤβѿ̾ѹޤ

:

     set dummy {<dummy-var>} {,<dummy-var>}
     show dummy

ǥեȤǤϡgnuplot plot Ǥϡ޲ѿ⡼ɡ뤤϶˺ ɸ⡼ɤǤ "t", Ǥʤ "x" Ωѿ (ѿ) ȤƱͤ splot Ǥϡ޲ѿ⡼ɤǤ (splot ϶˺ɸ⡼ɤǤϻȤޤ) "u" "v", Ǥʤ "x" "y" ΩѿȤޤ

ѿϡʪŪ˰̣Τ̾뤤Ϥ̾ȤƻȤ Ǥ礦㤨С֤δؿ褹:


     set dummy t
     plot sin(t), cos(t)

:

     set dummy u,v
     set dummy ,s

ϡ2 ܤѿ s Ȥޤѿ̾ǥեȤ᤹ͤ ˤϰʲΤ褦ˤƤ


     unset dummy

95.23 ʸ󥳡 (encoding)

ޥ set encoding ʸΥ󥳡 (encoding) 򤷤ޤ

:

     set encoding {<value>}
     set encoding locale
     show encoding

ͭ (value) ϰʲ̤Ǥ

  default     - Ϸ˥ǥեȤΥ󥳡ɤλѤ̿
  iso_8859_1  - ¿ Unix ơ MS-Windows ǻѲ
                ǽʺǤŪ衼åѥ󥳡ɡΥ󥳡
                ɤ PostScript  'ISO-Latin1' ȤΤ
                ΤǤ
  iso_8859_15 - 桼ޤ iso_8859_1 ΰ
  iso_8859_2  - /衼åѤǻѤ륨󥳡
  iso_8859_9  - (Latin5 ȤΤ) ȥ륳ǻѤ륨󥳡
  koi8r       - ɤȤ Unix Υʸ󥳡
  koi8u       - Unix Υ饤Υʸ󥳡
  cp437       - MS-DOS Υɥڡ
  cp850       - 衼åѤ OS/2 Υɥڡ
  cp852       - /衼åѤ OS/2 Υɥڡ
  cp950       - MS Ǥ Big5 (emf terminal Τ)
  cp1250      - /衼åѤ MS Windows Υɥڡ
  cp1251      - ӥ֥륬ꥢޥɥ˥ (8 ӥå)
  cp1252      - 衼åѤ MS Windows Υɥڡ
  cp1254      - ȥ륳 MS Windows Υɥڡ (Latin5 γĥ)
  sjis        - Shift_JIS ܸ쥨󥳡
  utf8        - ʸ Unicode ȥݥȤΡĹ (ޥ
                ) ɽ

ޥ set encoding locale ϡ¾ΥץȤϰ㤤ϸ Υ¹ԻδĶꤷ褦ȤޤƤΥƥǤ ϴĶѿ LC_ALL, LC_CTYPE, LANG Τ줫ˤä椵ޤ λȤߤϡ㤨 wxt, cairopdf ϷǡUTF-8 EUC-JP Τ褦 ʥޥХʸ󥳡ɤ̤ɬפǤΥޥɤդ ʤɤΥͭɽˤϱƶͿޤ ʲ⻲: set locale (95.42), set decimalsign (95.20)

̤ˡ󥳡ɤϽϷ˹Ԥʤɬפޤ Υ󥳡ɤϤɤʽϷǤ⥵ݡȤƤȤϸ¤餺ƽ Ϸ׵ᤵ줿ɤɸʸǤʤФޤ

95.24 ü (errorbars)

ޥ set errorbars ϡ (errorbar) ξü boxplot ˤĤȢҤξüΥޡ椷ޤ

:

     set errorbars {small | large | fullwidth | <size>} {front | back}
                   {line-properties}
     unset errorbars
     show errorbars

small 0.0 (ʤ)large 1.0 ƱǤꤷ ʤХǥեȤͤ 1.0 Ǥ

fullwidth ϡerrorbar ȼ boxplot histograms ˤ ߴϢޤ errorbar ξüбȢƱ ޤȢΤѹ뤳ȤϤޤ

front, back ϡɤ٤ĹΤĤ errorbar Τߤ Ϣޤ (boxes, candlesticks, histograms)

(errorbar) ϡǥեȤǤϴϢȢζƱ° 褷ޤѤѰդ°ѹǤޤ


    set errorbars linecolor black linewidth 0.5 dashtype '.'

95.25 ؿ (fit)

ޥ set fit ϡfit ޥѤΥץ椷ޤ

:

     set fit {nolog | logfile {"<filename>"|default}}
             {{no}quiet|results|brief|verbose}
             {{no}errorvariables}
             {{no}covariancevariables}
             {{no}errorscaling}
             {{no}prescale}
             {maxiter <value>|default}
             {limit <epsilon>|default}
             {limit_abs <epsilon_abs>}
             {start-lambda <value>|default}
             {lambda-factor <value>|default}
             {script {"<command>"|default}}
             {v4 | v5}
     unset fit
     show fit

ץ logfile ϡfit ޥɤνϤ񤭽Ф ޤ < filename> ϡñ䤫ŰǰϤɬפ ե̾ꤷʤä硢ޤ unset fit Ѥ ϡեϥǥեȤͤǤ "fit.log"ޤϴĶѿ FIT_LOG ͤ˥ꥻåȤޤͿ줿ե̾ / \ äƤ硢ϥǥ쥯ȥ̾Ȳᤵ졢եϤΥǥ 쥯ȥ "fit.log" Ȥʤޤ

ǥեȤǤϡΥե˽񤫤ϡ÷ϤˤϤ ޤset fit quiet Ϥ÷Ϥ򥪥դˤresults Ϻǽ ΤߤϤޤbrief ϡɲä fit Τ٤Ƥη֤˴ؤ 1 Ԥ󶡤ޤverbose ϡС 5 ǥǥեȤäܺ٤ʷ֤Ԥޤ

ץ errorvariables ON ˤȡfit ޥɤǷ׻줿 ġƤϤѥ᡼θΥѥ᡼̾ "_err" Ĥ ̾Υ桼ѿ˥ԡޤϼˡƤϤؿȥǡ 襰դξ˥ѥ᡼Ȥθ򻲾Ѥ˽ϤΤ˻Ȥ :


      set fit errorvariables
      fit f(x) 'datafile' using 1:2 via a, b
      print "error of a is:", a_err
      set label 1 sprintf("a=%6.2f +/- %6.2f", a, a_err)
      plot 'datafile' using 1:2, f(x)

ץ errorscaling ꤹ (ǥե)ѥ᡼η׻ ּ (reduced -square) ǿ̤ޤϡ̤Ȥ ּͤˤʤ롢ƤϤ׻ɸк (FIT_STDFIT) ǡ 󶡤뤳ȤƱˤʤޤץ noerrorscaling Ǥϡ ɾϡ̤ʤƤϤѥ᡼ɸкˤʤޤ ǡνŤߤꤷʤСѥ᡼θϾ˿̤ޤ

ץ prescale 򥪥ˤȡMarquardt-Levenberg 롼 ˡƥѥ᡼ͤ򤽤νͤ˽äƻ˥Ѵ ϡƥѥ᡼礭ˤʤ礭ʰ㤤ˡͭ Ǥͤ 0 ƤϤѥ᡼ˤϡ褷Ƥ ѴϹԤޤ

ȿθ³ͤϡץ maxiter ¤Ǥޤ 0 default Ȥȡϸ³ʤȤ̣ޤ

ץ limit ϡ«򸡽Ф뤿ΤäȤ⾮θ³ (1e-5) ΥǥեȤͤѹΤ˻Ȥޤĺ¤ο ̤ΨѲʤϡƤϤϡּ«פȽǤޤ

ץ limit_abs ϡĺ¤Ѳθ³ () ɲä ޤǥեȤ 0 Ǥ

르ꥺ˴ؤ̤򤷤硢 Marquardt-Levenberg 르ꥺɤΤäƤ硢˱ƶͿʲΥץѤǤޤ: lambda νͤϡ̾KưŪ ML-󤫤׻ޤɬפʤХץ start_lambda ȤäƤͿ뤳ȤǤޤ default ȤȡƤӼư꤬ͭˤʤޤ lambda_factor ϡоݤȤؿΦּ̣ͤꤲ /ȤϾ lambda ä/Ҥꤷ default ȤȡǥեȤΰҤǤ 10.0 ˤޤ

ץ script ϡfit ǤȤ˼¹Ԥ gnuplot ޥ ɤꤹΤǤʲ: fit (75)ϥǥեȤ replot Ķѿ FIT_SCRIPT ̤ͥϾǤ

ץ covariancevariables 򥪥ˤȡǽŪʥѥ᡼ ζʬ桼ѿ¸ޤƥѥ᡼ȤФƤζʬ ¸ѿ̾ϡ"FIT_COV_" ˺ǽΥѥ᡼̾ "_" 2 Υѥ᡼Ĥʤ̾ˤʤޤ㤨Хѥ᡼ "a" "b" Ƥϡζʬѿ̾ "FIT_COV_a_b" Ȥʤޤ

С 5 Ǥϡޥ fit ν񼰤ѹ졢 error ꤵƤʤñ̽Ť (unitweights) ǥեȤˤʤ ץ v4 gnuplot С 4 ΥǥեȤεư ޤʲ⻲: fit (75)

95.26 եȥѥ (fontpath)

fontpath ϡեȥեɤ߹Υեθ ɲޤΤȤpostscript ϷΤߤ fontpath 򥵥ݡȤƤޤե뤬ߤΥǥ쥯ȥ˸Ĥʤä 硢fontpath Υǥ쥯ȥ꤬ޤݡȤƤե եη˴ؤܤ terminal postscript ʸˤޤ

:

     set fontpath {"pathlist1" {"pathlist2"...}}
     show fontpath

ѥ̾ñΥǥ쥯ȥ̾ޤʣΥѥ̾ΥꥹȤȤϤ ʣΥѥʤѥꥹȤ OS ͭΥѥڤꡢ㤨 Unix ϥ (':'), MS-DOS, Windows, OS/2 Ǥϥߥ (';') Ƕڤ ޤshow fontpath, save, save set ޥɤϡΤ OS ͭΥѥڤ򥹥ڡ (' ') ֤ޤǥ쥯ȥ̾ ᡼ޡ ('!') ǽäƤ硢Υǥ쥯ȥΥ ֥ǥ쥯ȥ⸡ޤ

Ķѿ GNUPLOT_FONTPATH ꤵƤ硢Ƥ fontpath ɲäޤ줬ꤵƤʤ祷ƥ˰¸ǥե ȤͤѤޤǽ˥եȥѥȤäȤˡδĤΥ 쥯ȥ꤬¸ߤ뤫ƥȤ졢åȤޤäơֺǽ set fontpath, show fontpath, save fontpath 䡢ߥե Ѥ plot, splot ϡ֤ޤ򾯤 ǤûСĶѿ GNUPLOT_FONTPATH ꤷƤ Хǥ쥯ȥΥå OFF ˤʤޤǥեȤΥեȥ Ǥ뤫ϡshow fontpath Ǹ뤳ȤǤޤ

show fontpath ϡ桼 fontpath ȥƥ fontpath ̡ ɽޤsave, save set ޥɤϡ桼 fontpath Τߤ¸ޤ

gd 饤֥̤ƥե̾ǥեȤ˥ϥɥ饤Ф ؤƤϡեȸѥϴĶѿ GDFONTPATH 椵ޤ

95.27 ι߽ (format)

ɸιߤθФϡޥ set format ޤ set tics format ޤϸ̤˥ޥ set {}tics format ǽ񼰤Ǥޤ

:

     set format {<axes>} {"<format-string>"} {numeric|timedate|geographic}
     show format

ǡ< axes> () x, y, xy, x2, y2, z, cbޤϲ ꤷʤ (ξ礽ν񼰤Ϥ٤ƤμŬѤޤ) Τ줫 Ǥʲ 2 ĤΥޥɤƱǤ:

     set format y "%.2f"
     set ytics format "%.2f"

ʸĹ 100 ʸޤǡ¤ƤޤǥեȤν ʸ "% h" ǡLaTeX ϤνϷǤ "$%h$" Ǥ¾ "%.2f" "%3.0em" Τ褦ʽ񼰤ޤ뤳Ȥ¿Ǥ礦"set format" θ ˲Ĥ˼¹ԤȡǥեȤᤷޤ

ʸ "" ꤷ硢߼ȤɽޤФϤĤޤ ߼Ȥäˤϡ unset xtics ޤ set tics scale 0 Ѥ Ƥ

ʸǤϡʸ ( \ n) ĥʸ (enhanced text) ѤΥ åפȤޤ ξϡñ (') Ǥʤ (") Ȥä ʲ⻲: syntax (29) "%" ƬˤĤʤʸϤΤޤɽޤäơʸ˥ڡʸʤɤ뤳ȤǤޤ㤨 "%g m" ȤС ͤθ " m" ɽޤ"%" Ȥɽˤ "%g %%" 褦 2 ĽŤͤޤ

ߤ˴ؤܤˤĤƤϡʲ⻲: set xtics (95.108)ޤ ˡǽϤ˥ǥեȰʳξʬΥʸȤˤĤƤϡʲ: set decimalsign (95.20) ʲ⻲ȡ

쥯ȥ (Ż) ǥ (electron.dem).

95.27.1 Gprintf

ʸؿ gprintf("format",x) ϡgnuplot ޥɤ set format, set timestamp ʤɤƱͤΡgnuplot ȼν񼰻ҤȤޤ ν񼰻ҤϡɸŪ C δؿǤ sprintf() ΤΤƱ ǤϤޤgprintf() ϡϰĤĤޤ 󡣤Τˡgnuplot ˤ sprintf("format",x1,x2,...) ؿѰդ Ƥޤgnuplot ν񼰥ץΰˤĤƤϡʲ:format specifiers (95.27.2)

95.27.2 񼰻 (format specifiers)

Ѳǽʽ (/ե⡼ɤǤʤ) ϰʲ̤Ǥ:

٥οͽ񼰻
%f 꾮ɽ
%e, %E ؿɽ; ؿ "e", "E" Ĥ
%g, %G %e%E) %f ά
%h, %H %g "e%S" Ǥʤ "x10^{%S}" "*10^{%S}" Ĥ
%x, %X 16 ɽ
%o, %O 8 ɽ
%t 10 ʤβ
%l ߤпܤȤ벾
%s ߤпܤȤ벾; ñ (scientific power)
%T 10 ʤλؿ
%L ߤпܤȤؿ
%S ñ̤λؿ (scientific power)
%c ñʸ
%b ISO/IEC 80000 ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) β
%B ISO/IEC 80000 ˡ (ki, Mi, Gi, Ti, Pi, Ei, Zi, Yi) Ƭ
%P Фܿ

ñ ('scientific' power) ϡؿ 3 ܿǤ褦ʤΤǤ ñ̻ؿ ("%c") ʸؤѴ -18 +18 ޤǤλؿФ ݡȤƤޤϰϳλؿξ硢񼰤̾λؿ ޤ

ۤ˻ȤȤΤǤ뽤 ("%" Ƚ񼰻Ҥδ֤˽񤯤) ˤϡ ΤĤޤ: "-" Ͽ򺸵ͤˤ"+" οˤ Ĥ" " () ο "-" Ĥ٤οξ˶ ĤĤ"#" Ͼʲο 0 ǤäƤ⾮ĤϽᡢľ "0" (ʸǤʤ) Ƭ ˶ʬ 0 ᡢθ 񤤤Τ٤̣ޤ (ξϺǾ塢ξϾʲη)

Ƥν򥵥ݡȤƤʤ OS ⤢Ǥ礦դˤ ʳΤΤ⥵ݡȤ OS ⤢Ǥ礦路ϡŬڤʻ Ĵ١Ƽ¸ƤߤƤ

:

     set format y "%t"; set ytics (5,10)          # "5.0"  "1.0"
     set format y "%s"; set ytics (500,1000)      # "500"  "1.0"
     set format y "%+-12.3f"; set ytics(12345)    # "+12345.000  "
     set format y "%.2t*10^%+03T"; set ytic(12345)# "1.23*10^+04"
     set format y "%s*10^{%S}"; set ytic(12345)   # "12.345*10^{3}"
     set format y "%s %cg"; set ytic(12345)       # "12.345 kg"
     set format y "%.0P pi"; set ytic(6.283185)   # "2 pi"
     set format y "%.0f%%"; set ytic(50)          # "50%"


     set log y 2; set format y '%l'; set ytics (1,2,3)
     #"1.0", "1.0", "1.5" ɽ (3  1.5 * 2^1 ʤΤ)

ݤȻؿɬפȤʤ褦ʽ񼰤 9.999 ͤʿ񤫤 ꤬뤳Ȥޤ

Υǡǡ (time/date) ξ硢ʸ 'strftime'ؿ ('gnuplot' "man strftime" ȤƤߤƤ) ˴ؤͭ ԤɬפޤȤϽ񼰻ΰ˴ؤƤϡʲ:set timefmt (95.87)

95.27.3 ǡ (time/date specifiers)

ǡ⡼ (time/date mode) Ǥϡν񼰤ѤǤޤ:

ջ
%a ̾ξά (Sun,Mon,...)
%A ̾ (Sunday,Monday,...)
%b, %h ̾ξά (Jan,Feb,...)
%B ̾ (January,February,...)
%d (01-31)
%D "%m/%d/%y" δά (ϤΤ)
%F "%Y-%m-%d" δά (ϤΤ)
%k (0-23; 1 ޤ 2 )
%H (00-23; 2 )
%l (1-12; 1 ޤ 2 )
%I (01-12; 2 )
%j ǯ̻ (001-366)
%m (01-12)
%M ʬ (00-60)
%p "am" ޤ "pm"
%r "%I:%M:%S %p" δά (ϤΤ)
%R "%H:%M" δά (ϤΤ)
%S (ϤǤ 00-60 ϤǤϼ¿)
%s 1970 ǯǽ餫ÿ
%T "%H:%M:%S" δά (ϤΤ)
%U ǯ̻ (ȿ)
%w ֹ (0-6, = 0)
%W ǯ̻ (Ϸȿ)
%y (0-991969-2068 ǯβ 2 )
%Y (4 )

ɽ񼰤ˤϡƬ 0 뤿 "0" () ˤĤ뤳 ȤǤޤǾνꤹ뤿ˤĤ뤳Ȥ ޤ %S %t ٻĤΤǡλ/ʬ/ä ȤǤޤ

%tH ݥåؤŪλ (24 Ǥδᤷʤ)
%tM ݥåؤŪʬ
%tS ľ tH, tM ܤбÿ

95.27.3.1 (Examples)

ս񼰤:

x ͤ1976 ǯ 12 25 ο뾯λбÿǤ ꤷޤΰ֤μιߥ٥ʸϡʲΤ褦ˤʤޤ:


     set format x                 # ǥեȤǤ "12/25/76 \n 23:11"
     set format x "%A, %d %b %Y"  # "Saturday, 25 Dec 1976"
     set format x "%r %D"         # "11:11:11 pm 12/25/76"

񼰤:

ս񼰻ϡÿǤλ֤ͤ򡢤λפλ˥󥳡 ɤޤäơ 0 23 ޤǡʬ 0 59 ޤǤΤߤư ͤϡݥå (1970 ǯ 1 1 ) դ ޤÿǤλ֤ͤ򡢻 0 ФŪʻ/ʬ/äοͤ ƽϤˤϡֽ %tH %tM %tS Ѥޤ-3672.50 ä ϰʲΤ褦˽Ϥޤ


     set format x                 # ǥեȤǤ "12/31/69 \n 22:58"
     set format x "%tH:%tM:%tS"   # "-01:01:12"
     set format x "%.2tH hours"   # "-1.02 hours"
     set format x "%tM:%.2tS"     # "-61:12.50"

95.28 Function style

ΥޥɤηϸߤϿ侩Ƥޤ󡣰ʲ:set style function (95.78.5)

95.29 Functions

show functions ޥɤϥ桼ؿȤƤɽ ޤ

:

       show functions

gnuplot ˤؿȤλȤˤĤƤϡʲ:expressions (16) ʲ⻲

桼ؿǤΥץ饤 (spline.dem)

ؿʣѿ˻ (airfoil.dem)

95.30 ʻ (grid)

ޥ set grid ϳʻޤ

:

     set grid {{no}{m}xtics} {{no}{m}ytics} {{no}{m}ztics}
              {{no}{m}x2tics} {{no}{m}y2tics}
              {{no}{m}cbtics}
              {polar {<angle>}}
              {layerdefault | front | back}
              { {linestyle | ls <major_linestyle>}
                | {linetype | lt <major_linetype>}
                  {linewidth | lw <major_linewidth>}
                  {linecolor | lc <major_colorspec>}
                { , {linestyle | ls <minor_linestyle>}
                    | {linetype | lt <minor_linetype>}
                      {linewidth | lw <minor_linewidth>}
                      {linecolor | lc <minor_colorspec>} }
     unset grid
     show grid

ʻǤդμǤդ/Фͭ/̵ˤǤ ȾФǤߤν֤ݡ ȤϰϤǡ餫饤󥹥Ѥ뤳ȤǤޤ (ʲ: set style line (95.78.7))

ˡ2 Ǥ϶˺ɸʻҤȤȤǤޤǽʶ Фơ򤵤줿̤Ʊߤ濴; (ζ֤ set angles ˤä١ޤϥ饸ǻ ޤ)˺ɸʻҤϸߤ϶˺ɸ⡼ɤǤϼưŪˤʤ դƤ

set grid ˡɬפͭˤʤäƤʤФʤޤ gnuplot ϡ¸ߤʤФʻҤ̿ñ̵뤷ޤ Ǥ꤬ͭˤʤФФʻҤޤ

ʻФ򲿤ꤷʤСʻƱ郎Ȥ ǥեȤζ˺ɸγ٤ 30 ٤Ǥ

front ꤹȡʻϥդΥǡξޤback ꤵ줿ϳʻϥդΥǡβޤfront С̩ǡdzʻʤʤ뤳ȤɤȤǤޤ եȤǤ layerdefault ǡ 2D Ǥ back ƱǤ 3D ΥǥեȤϡʻҤȥդȤ 2 Ĥñ̤ʬΥʻ ϸˡȤǡޤϴؿ˽񤭤ޤhidden3d ⡼ɤǤϡ줬켫Ȥ¤Ӵ򤷤ƤޤΤǡʻν֤Υ ץ̵뤵졢ʻⱣˤޤΥץ ϡºݤˤϳʻǤʤset border ˤ붭Ȥ ι (ʲ: set xtics (95.108)) ˤƶڤܤޤ

z γʻ̤ޤμʬŪȢ ƤˤϤǤ礦ʲ: set border (95.6)

95.31 (hidden3d)

set hidden3d ޥɤ϶ (ʲ: splot (97)) DZԤ 褦˻ؼޤν르ꥺ˴ؤɲõǽ⤳Υ ޥɤǤޤ

:

     set hidden3d {defaults} |
                  { {front|back}
                    {{offset <offset>} | {nooffset}}
                    {trianglepattern <bitpattern>}
                    {{undefined <level>} | {noundefined}}
                    {{no}altdiagonal}
                    {{no}bentover} }
     unset hidden3d
     show hidden3d

gnuplot ̾ɽȤϰۤʤꡢǤͿ줿ؿޤϥǡ γʻ򡢼ºݤζ̤ζ̤ظˤäƱƤǤ ʤΤƱ褦˽ޤ줬ǽ뤿ˤϡζ̤ 'ʻҾ' (ʲ: splot datafile (97.1)) Ǥɬפꡢޤ with lines with linespoints ƤʤФޤ

hidden3d ͭʤȤϡʻǤʤʬξ (ʲ: set contour (95.16)) Ᵽޤʣ̤褷Ƥϡ ƶ̤ϼʬȤ¾ζ̤DZʬޤ̾ؤ ɽ (set contour surface) ϵǽޤ

gnuplot С 4.6 Ǥϡվ˶̤Ĥʤ֤Ǥ⡢ hidden3d points, labels, vectors, impulses 3 ˱ƶͿޤvectors ϡʤʬʬ (ʤ) Ȥɽޤγơ򤳤νŪ˽ Ȥϡwith ̤Υץ nohidden3d ɲäƤ

hidden3d ϡpm3d ⡼ɤ褵줿ɤ٤줿̤ˤϱƶͿ pm3d ζ̤ФƱͤθ̤ʤС set pm3d depthorder ȤäƤʣ pm3d ̤̾ hidden3d Ȥ߹碌ˤϡץ set hidden3d front ѤƤϡhidden3d ƤǤpm3d ̤ޤ Ĥ¾Ǥθ˶Ū褹ΤǤ

ؿͤϳʻҸΩθɾޤ뤳Ȥνʬ ϸġδؿ͡뤤ϥǡδ֤ϤΥ르ꥺˤä ֤ޤϡhidden3dnohidden3d 褹 Ǵؿθۤʤ뤳Ȥ̣ޤʤʤСԤξ ͤϳɸɾ뤫Ǥΰ㤤˴ؤˤĤƤϡ ʲ: set samples (95.76), set isosamples (95.34)

̤αʬõΤ˻Ȥ륢르ꥺϡΥޥɤ 椵뤤ĤɲåץäƤޤdefaults ꤹ ФϤ٤ơʲǽҤ٤褦ʥǥեȤͤꤵޤ defaults ꤵʤäˤϡŪ˻ꤵ줿ץ ߤƶʳΤΤϰͤѤޤäơ Υץͤ򤤤뤳Ȥʤñ set {no}hidden3d ΤߤDZ򥪥/դǤ뤳Ȥˤʤޤ

ǽΥץ offset '΢¦' 褹˱ƶͿ ޤ̾϶̤ɽ΢̤뤿ˡ΢¦ϡɽ¦ 礭ֹ郎Ȥޤoffset < offset> ˤäơɲä ͤ򡢥ǥեȤ 1 ȤϰۤʤʬͤѹǤޤnooffset offset 0 ̣ɽ΢ƱȤȤˤʤޤ

Υץ trianglepattern < bitpattern> Ǥ< bitpattern> 0 7 ޤǤοǡӥåȥѥȲᤵޤƶ̤ϻѷ ʬ䤵ޤΥӥåȥѥγƥӥåȤϤλѷγդɽ ꤷޤӥå 0 ϳʻҤοʿաӥå 1 ϳʻҤοľաӥ 2 ϡγʻҤ 2 Ĥλѷʬ䤵ȤгդǤǥե ȤΥӥåȥѥ 3 ǡƤοʿդȿľդɽг դɽʤȤ̣ޤгդɽ 7 ꤷޤ

ץ undefined < level> ϡƤʤ (礱Ƥǡ ޤ̤δؿ) ޤͿ줿 x,y,z ϰϤĶƤ ŬѤ륢르ꥺؼޤΤ褦ϡǤ ɽƤޤޤϥǡޤ ޤܤƤζǤƱͤ˼졢äƶ̤˷꤬ ޤ< level> = 3 ξ硢 noundefined Ʊǡɤ ΤƤޤ󡣤¾ξǤΤ Ȥʤ٤Ǥ< level> = 2 Ǥ̤ϼΤƤޤϰϤĶ ϼΤƤޤ< level> = 1 Ǥϡ줬ǥեȤǤϰ ĶΤƤޤ

noaltdiagonal ꤹȡundefined ͭΤȤ (ʤ < level> 3 Ǥʤ) ˵ʲξΥǥեȤǤμ谷ѹǤޤ϶̤γƳʻҾʬϰгˤä 2 Ĥλѷʬ ޤ̾ϤгƤʻҤФƱƤ ⤷ʻҤ 4 ĤγѤΤĤ undefined ˤȤ ƤơγѤ̾г˾äƤϡξλ ѷƤޤޤ⤷ǥեȤǤ altdiagonal ͭˤʤäƤ硢γʻҤˤĤƤ¾г 򤵤졢̤η礭Ǿˤʤ褦ˤޤ

bentover ץϺ٤ trianglepattern ȤȤ˵̤Τ 椷ޤʤꤷ勞ζ̤Ǥϡ ASCII ʸ˽񤤤 ˡ̤ 1 ĤγʻҤ 2 Ĥʬ줿ѷɽ΢ȿ¦ Ƥޤ (ʤλͳѷޤʤƤ ('bent over') ) ޤ:


                                                             C----B
         4 ѷ:     A--B      ɽ 4 ѷ:        |\   |
     ("set view 0,0")    | /|    ("set view 75,75" perhaps)  | \  |
                         |/ |                                |  \ |
                         C--D                                |   \|
                                                             A    D

̤γʻҤгդ < bitpattern> 2 bit ˤäƸ褦ˤϤʤ ƤϤʤ硢г CB Ϥɤˤ񤫤ʤȤˤʤꡢ줬 ̤ɽ򤷤ˤΤˤޤǥեȤ bentover ץϡΤ褦ʾ礽ɽ褦ˤޤ⤷ ʤʤ顢nobentover 򤷤Ƥ ʲ⻲

Υǥ (hidden.dem)

ʣʱΥǥ (singulr.dem).

95.32 Historysize

(侩) set historysize N ϡset history size N ƱǤ unset historysize ϡset history size -1 ƱǤ

95.33 ޥ (history)

:
  set history {size <N>} {quiet|numbers} {full|trim} {default}

gnuplot νλ˥ҥȥե¸Կhistory size ¤ޤset history size -1 Ȥȡҥȥե˽񤭽 Կ¤ʤʤޤ

ǥեȤǤϡޥ history ϳƥޥɤ˹ֹϤ history quiet ϡμ¹ԤФƤΤֹάޤ set history quiet ϡΤ٤Ƥ history ֹάޤ

ץ trim ϡߤΥޥɤФƱΤ뤳 ǡޥνʣԤο򸺤餷ޤgnuplot ΥС 5 Ǥϡ줬ǥեȤεưǤ

ǥեȤ: set history size 500 numbers trim

95.34 Ωץ (isosamples)

ؿ̤Ȥ褹θΩ (ʻ) ̩٤ϥޥ set isosamples ѹǤޤ

:

     set isosamples <iso_1> {,<iso_2>}
     show isosamples

ƶ̥դ < iso_1> Ĥ u-Ω < iso_2> Ĥ v-Ωޤ < iso_1> Τ߻ꤹС< iso_2> < iso_1> Ʊͤꤵޤ ǥեȤǤϡu, v 줾 10 ܤɸܲԤޤɸܿä ¿ФΤʥդޤ֤ޤ ѥ᡼ϡǡեˤϲƶͿޤ

ΩȤϡ̤ΰĤ޲ѿꤷơ⤦Ĥ޲ѿˤä ΤȤǤΩϡ̤ɽñˡͿޤ s(u,v) ޲ѿ u ꤹ뤳Ȥ u-Ω c(v) = s(u0,v) 졢޲ѿ v ꤹ뤳Ȥ v-Ω c(u) = s(u,v0) Ǥޤ

ؿζ̥դʤƤ硢set samples ƸΩɸܲο椷ޤʲ: set samples (95.76),set hidden3d (95.31)롼ϡؿɸܲϳƸΩθ ǹԤȲꤷƤΤǡؿζ̤β٤ѹȤ ϡisosamples Ʊ褦 samples ѹΤ˾ޤǤ礦

95.35 Jitter

:
     set jitter {overlap <yposition>} {spread <factor>} {wrap <limit>}
                {swarm|square}

:
     set jitter                    # 1 ʸ jitter
     set jitter overlap 1.5        # 1.5 ʸ jitter
     set jitter over 1.5 spread 0.5  # Ʊ塢 x ΰưȾʬ

ǡ 1 ġޤξκɸΥͤ¤Ƥ硢¿ ˸ߤο˾ä礬ޤjitter (ɤ餮) ϡ Ťʤ򡢤κɸˤ餷ͤͿ뤳ȤǤ˼˹ޤ ŤʤäƤȸʤͤϡʸñ̡뤤Ǥդκɸ ץȤäƻǤޤʲ: coordinates (12)

ǥեȤ jitter ưϡ x Τ߰ưޤϡ֥ӡ ॰ա(bee swarm plot) ȸƤФäΥѥޤ ץΥ square ϡư x ɸ˲äơ overlap ǻꤷΥϾʤȤΥ줿̡γؤˤ褦 y ɸ·ޤ

ʸñ̤ǤκΰưΥϡ wrap ¤򤫤ޤ

ŤʤȽȡɤ餮礭ϡǥեȤǤ 1 ʸñ ̤Ǥ뤳ȤդƤäƥդθܤϡϷΥե ȥХΨˤäѹƤޤޤ 򤱤ˤϡŤʤȽ y ɸϤñ ( first) ꤷΥȳ緸ŬڤͤĴƤʲ:coordinates (12), pointsize (95.68), jitter (95.35)

95.36 (key)

ޥ set key ϡΰγƥդФ륿ȥȥץ (ʬȢ) (ޤɽ) ͭˤޤεǽϡ set key off unset key Ȥ뤳Ȥ̵ˤǤޤθġ ܤˤĤƤϡб plot ޥɤǥ notitle Ѥ 뤳Ȥ̵ˤǤޤΥȥʸϡץ set key autotitle 䡢ġ plot splot ޥɾ title ɤǤޤܺ٤ϰʲ: plot title (84.11)

:

     set key {on|off} {default}
           {{inside | outside | fixed}
             | {lmargin | rmargin | tmargin | bmargin}
             | {at <position>}}
           {left | right | center} {top | bottom | center}
           {vertical | horizontal} {Left | Right}
           {{no}enhanced}
           {{no}opaque}
           {{no}reverse} {{no}invert}
           {samplen <sample_length>} {spacing <line_spacing>}
           {width <width_increment>} {height <height_increment>}
           {{no}autotitle {columnheader}}
           {title {"<text>"} {{no}enhanced} {center | left | right}}
           {font "<face>,<size>"} {textcolor <colorspec>}
           {{no}box {linestyle <style> | linetype <type> | linewidth <width>}}
           {maxcols {<max no. of columns> | auto}}
           {maxrows {<max no. of rows> | auto}}
     unset key
     show key

(key) ϳǤ vertical () horizontal () λ˽ äƽŤͤޤvertical ξ硢ϲǽʤ 2,3 ĤνĤȤ ޤʤľξ꤬֤ϳǤ 1 Ĥ¤٤ޤ μϿ¤ٻϤޤľιԿϡmaxrows Ȥä ¤Ǥޤhorizontal ξϡϲιԿʤ٤ʤ Ȥޤʿ maxcols ¤Ǥޤ

ǥեȤǤϡϥΰ¦αγѤ֤ޤ left, right, top, bottom, center, inside, outside, lmargin, rmargin, tmargin, bmargin (, above, over, below, under) ϡΰ¾ξؤμưŪ֤Τ˻Ѥޤ ɤ֤ܤؼ뤿 at < position> ޤξ硢 left, right, top, bottom, center Ʊͤδ碌ŪǻȤޤ ܤϡʲ: key placement (95.36.4)

դΥȥι· Left, Right (ǥե) ǻؼޤ ٥ʸȶΥץϺؤ뤳ȤǤޤ (reverse) ΤȤǰϤळȤǤޤ (box {...})Ȥϡ (linetype), (linewidth)뤤ѤΥ饤󥹥 (linestyle) ꤹ뤳ȤǤޤ

ʸϡǥեȤdzĥʸ⡼ (enhanced) ꤵ ޤϥץ {no}enhanced ѹǤΥȥ 䡢ġΥѹ뤳ȤǽǤ

ǥեȤǤϡϰĤΥդƱ˺ޤʤ ȥȥϡб륰դƱޤϡ դˤξǤ򤫤֤֤뤳Ȥ̣ޤ set key opaque ϡ򤹤٤ƤΥդ褬ä ξ硢ΰطʿɤĤ֤εȥȥ뤬 ޤäơ㼫ȤϤĤǤʤƤޤ Ȥˤʤޤset key noopaque ǥǥեȤǤޤ

ǥեȤǤϡǽΥ٥뤬ΰ־˸졢³ ٥뤬β¤ǹԤޤץ invert ϡǽΥ٥ ΰֲ֤³٥򤽤ξ¤٤ƹԤޤΥץ ϡΥ٥νĤ¤Ӥν֤Ѥ߾夲Υҥȥ (histograms) Ȣν֤˹碌ȤǤ礦

< height_increment> ϡȢι⤵˲ä긺餷ꤹ⤵ ( ʸʬ) ɽͤǤϼˡβȢǡ ¤Ӥβζ礭ΤΤǤ

ΤϤ륿ȥξˤĤ뤳ȤǤޤ (title "< text> ") ñ (') Ű (") ΰ㤤ˤĤƤϡʲ⻲: syntax (29) ȥι·ϥǥեȤǤ碌ǡϥ right left ѹ뤳ȤǤޤ

set key ΥǥեȤϡon, right, top, vertical, Right, noreverse, noinvert, samplen 4, spacing 1, notitle, nobox ǤȤϥǥեȤǤϥγȤƱΤȤ ޤset key default ȤȥǥեȤޤ

ϡ1 Ԥ 1 ʬĤοԤΤޤȤޤȤƽ񤫤ޤƹԤα ¦ˤ (reverse ȤäƤк¦ˤ) ζƱľΥ ץ뤬졢¾¦ˤ plot ޥɤʸ (title) ֤ޤιԤϡͶľκ¦ȱ¦ʬ뤫Τ ˿ľ󤵤ޤޥ set key ǻꤹɸϤβͶ ʬξüκɸǤplot Ǥľΰ֤ꤹ뤿 x y Ȥޤ

TeX, LaTeX ϤνϷ䡢ʸޤϷ ϡgnuplot ΰַΤʸɾ뤳Ȥ Ǥޤ󡣤ä򺸤֤ϡset key left Left reverse Ȥȹ礻ȤΤǤ礦

95.36.1 3 դ (3D key)

3 (splot) ֤ϡǥեȤǤ fixed ץ ѤޤϡǤ gnuplot ȤϰۤʤưǤ뤳դƤfixed ˤ֤ϡinside ˤ֤˻Ƥޤ פʰ㤤Ĥޤ3 դλžꥹ뤹 ȡȼʤäζѲޤ֤ inside ξ ϡѹȤˤζư뤿ᡢưޤ fixed ξϡѤ䥹ѹ̵뤷֤Τǡ դžƤ⡢ΰ֤ϥХΰĤξ˸ꤵ줿ޤޤ ʤޤ

ʤ2 դǤϡfixed ץϴ inside ƱǤ

splot 񤯾硢ǥեȤǤϰۤʤθġ Фơ̡ιܤޤѹˤϡʲ:set cntrlabel (95.12)

95.36.2 Υץ (key examples)

ʲϥǥեȤΰ֤ɽޤ:
     set key default

ʲɽʤޤ:

     unset key

ʲϥǥեȤ () ɸϤǤ (2,3.5,2) ΰ֤ɽ ޤ:

     set key at 2,3.5,2

ʲ򥰥դβɽޤ:

     set key below

ʲ򺸲ѤɽƥȤϺ˹·ǡȥĤ 3 γȤ񤭤ޤ:

     set key left bottom Left title 'Legend' box 3

95.36.3 μưȥ (key autotitle)

set key autotitle ϡγƥդplot ޥɤǻѤǡ եؿ̾ˤäꤹ褦ˤޤ줬ǥե εưǤset key noautotitle ϡμưŪʥդΥȥդ ̵ˤޤ ޥ set key autotitle columnheader ϡϥǡƬԤγ ΥȥƥʸȲᤷб襰դΥȥȤ ƻѤޤ褵̤ʣǡδؿǤϡ gnuplot Ϥɤ򥿥ȥ˻ȤФΤ狼ޤΤǡ 硢plot ޥɾǡ㤨аʲΤ褦Ū˥ȥꤹɬפޤ


     plot "datafile" using (($2+$3)/$4) title columnhead(3) with lines

: set key autotitle columnheader ȤȡȤ (key) unset key ̵ˤʤäƤǤ⡢1 ܤǡȤƤǤϤʤ ΥإåȤƽޤϡstats fit Τ褦 ʤޥɤФƤƱͤǤ

ޤξǤ⡢plot ޥɤŪ title notitle ɤꤹС set key autotitle ˤͥ ޤ

95.36.4 (key placement)

ǤϡưŪ֤̾򤷤ޤŪ ι䡢¾ξؤ西ȥ֤ˤĤƤϡʲ:multiple keys (95.36.6)

֤λȤߤ򤿤κǤפʳǰϡΰ衢ʤ⤫ ȤȤȡΰζȤδ֤; (margin) ͤ뤳ȤǤ ΰ˱äơ left/center/right (l/c/r) top/center/bottom (t/c/b) ϡ (key) 򤽤ΰ¦Τɤ 椷ޤ

inside Ǥϡϥ left (l), right (r), top (t), bottom (b), center (c) ˤäưʲοޤΤ褦ΰζ˸äƽϤޤ:


    t/l   t/c   t/r


    c/l    c    c/r


    b/l   b/c   b/r

outside ǤƱͤ˼ưŪ֤ޤΰζ ФơȤषܤФơȤ٤Ǥ礦 դζϡΰγξ뤿ˡ¦˰ ư뤳Ȥˤʤޤ¾Υ٥μ򤷤ޤ⤷ ϥǥХˤäƤϥ顼⤷ޤν Ϥ˹碌Ƥɤ趭ư뤫ϡ˽Ҥ٤ΰ֡ӽ ;夲˰¸ޤ4 濴·Υץ (center) ˴ ƤϡɤζưΤ˴ؤ뤢ޤϤޤ󤬡Ѥؤν ΥץˤĤƤϡŤ;夲 vertical ξϺޤϱ horizontal ξϾޤϲζ줾¦Ŭڤ ưޤ

; (margin) νϡŤ;夲ˤʤưŪ֤ǽ ˤƤޤlmargin (lm), rmargin (rm), tmargin (tm), bmargin (bm) ΤΰĤ̷⤷ʤ 1 ΥɤȤ߹ ƻѤ硢ʲοޤ˼㤬֤ޤ:


         l/tm  c/tm  r/tm


    t/lm                  t/rm


    c/lm                  c/rm


    b/lm                  b/rm


         l/bm  c/bm  r/bm

above over tmargin Ʊ̣ǤΥСȤθߴΤˡabove over l/c/r Ť;夲ΥɤʤǻѤȡcenter horizontal Ȥޤ below under bmargin Ʊ̣ǤߴΤˡ below under l/c/r Ť;夲ΥɤʤǻѤ center horizontal Ȥޤˡoutside ߴΤ t/b/c Ť;夲ΥɤʤСtop, right, vertical (Ĥޤ t/rm Ʊ) Ѥޤ

ΰ (< position> ) ϡΥСƱñ x,y,z ꤷƤ⤤ǤκǽΥץԤκɸκɽϤ򤹤뤿 5ĤΥ (first, second, graph, screen, character) ƬˤĤ뤳ȤǤޤܺ٤ϡʲ: coordinates (12)< position> Ϳ줿 left, right, top, bottom, center θ̤ϡ label ޥɤ֤ʸξƱ褦˴֤ΰ· Ѥޤʤleft< position> α֤ƺ 碌ǽϤޤ¾ξƱͤǤ

95.36.5 Υץ (key samples)

ǥեȤǤϡվγ (key) ˤ줾б륨 ȥޤΥȥˤϡ西ȥȡǻȤ ΤƱƱɤĤ֤°ˤ//Ȣ Υץ뤬ޤ font textcolor °ϡ˸ġ西ȥθܤ 椷ޤtextcolor "variable" ˥åȤȡγƥȥ ʸϡ襰դɤĤ֤ƱˤʤޤϡΤ gnuplot ΥǥեȤεưǤ

նΥץʬĹ samplen ǻǤޤĹ Ĺȡ< sample_length> *(ʸ) ¤ȤƷ׻ޤ sapmlen ϡվΥץΰ֤ˤ (⤷ץʬȤ 񤫤ʤƤ) ƶͿƤޤϡεϥץʬ ˽񤫤뤿Ǥ

Υ١饤ֳ֤ϡߤΥեȥФ1 Զ (single space) ˤʤäƤޤ set key spacing < line-spacing> ѹǤޤ

< width_increment> ϡʸĹ˲ä긺餷ꤹ (ʸʬ ) ɽͤǤϡ˳Ȥ񤭡ʸʸȤ ˤͭѤǤ礦gnuplot ϳȤ׻Ȥϡ٥ʸ ʸñ˿ʤΤǡΤ˻Ȥޤ

95.36.6 ʣν (multiple keys)

Image figure_multiple_keys
ƥդΥȥ򡢤٤ƼưŪ (key) ɽ ˡɽư֤뤳ȤǤޤˤꡢ㤨 ¿⡼ (multiplot) ǤγƥǤФɽ 1 ս˽ 󤷤ƺ뤳ȤǤ褦ˤʤޤ ʲϤΰ:
      set multiplot layout 3,2 columnsfirst
      set style data boxes
      plot $D using 0:6  lt 1 title at 0.75, 0.20
      plot $D using 0:12 lt 2 title at 0.75, 0.17
      plot $D using 0:13 lt 3 title at 0.75, 0.14
      plot $D using 0:14 lt 4 title at 0.75, 0.11
      set label 1 at screen 0.75, screen 0.22 "Custom combined key area"
      plot $D using 0:($6+$12+$13+$14) with linespoints title "total"
      unset multiplot

95.37 ٥ (label)

set label ޥɤȤȤˤäǤդθФ (label) 򥰥 ɽ뤳ȤǤޤ

:

     set label {<tag>} {"<label text>"} {at <position>}
               {left | center | right}
               {norotate | rotate {by <degrees>}}
               {font "<name>{,<size>}"}
               {noenhanced}
               {front | back}
               {textcolor <colorspec>}
               {point <pointstyle> | nopoint}
               {offset <offset>}
               {boxed}
               {hypertext}
     unset label {<tag>}
     show label

(< position> ) x,y x,y,z Τɤ餫ǻꤷɸϤ򤹤 ˤϤκɸ first, second, graph, screen, character Ĥޤܺ٤ϡʲ: coordinates (12)

(< tag> ) ϸФ̤뤿ͤǤꤷʤä ̤ѤΤΤǺǤ⾮ͤưŪ˳ƤޤߤθФ ѹȤϤΥѹܤꤷ set label ޥ ɤȤޤ

< label text> ʸǤ⹽ޤ󤷡ʸѿޤʸ ͤļǤ⹽ޤ󡣰ʲ: strings (27), sprintf (16.1), gprintf (95.27.1)

ǥեȤǤϡꤷ x,y,z ˸ФʸϤκü褦 ޤx,y,z 򸫽ФΤɤ·뤫ѹˤѿ < justification> ꤷޤˤϡleft, right, center 줫Ǥ줾ʸϤκ椬ꤷ褦 ֤褦ˤʤޤϰϤγˤϤ߽Ф褦ʻ ɸθФ¾ʸȽŤʤ礬ޤ

Ȣ٥򥵥ݡȤϷ⤢ޤʲ:set style textbox (95.78.11): ΤȤȢΥ٥ϡžʤʸ ¤Ƥޤ

rotate ꤹȥ٥ϽĽ񤭤ˤʤޤ (ϥɥ饤Ф бƤСǤ)rotate by < degrees> Ϳ줿ϡ Ŭ礷Ƥϥɥ饤Фϻꤵ줿٤ʸ񤳤Ȥޤ ǤʤϷǤϡľʸȤưޤ

եȤȤΥϡϷեȤ򥵥ݡȤƤ font "< name> {,< size> }" ŪǤޤǤʤϷ ϡǥեȤΥեȤȤޤ

̾ϡߤνϷݡȤƤС٥ʸƤʸ ˳ĥʸ⡼ (enhanced text mode) Ѥޤ noenhanced Ѥ뤳ȤǡΥ٥ĥʸ鳰 ȤǤޤϡ٥뤬㤨Х (_) ޤǤ ʤɤͭѤǤʲ: enhanced text (14)

front ͿȡФϥǡΥդξ˽񤫤ޤback Ϳ (ǥե)Фϥդβ˽񤫤ޤfront ȤȤǡ̩ʥǡˤäƸФƤޤȤ򤱤뤳 ޤ

textcolor < colorspec> ϸФʸοѹޤ< colorspec> rgb ޤϥѥåȤؤγΤ줫Ǥޤ ʲ: colorspec (21.1), palette (95.66)textcolor ϡtc ȾάǽǤ

  `tc default` ϡʸǥեȤˤޤ
  `tc lt <n>` ϡʸ <n> (line type)ƱΤˤޤ
  `tc ls <n>` ϡʸ line style <n> ƱΤˤޤ
  `tc palette z` ϡФ z ΰ֤бѥåȿˤʤޤ
  `tc palette cb <val>` ϡ (colorbar)  <val> οˤʤޤ
  `tc palette fraction <val>` (0<=val<=1) ϡ[0:1]  `palette` 
      Ĵ/顼ؤμбˤʤޤ
  `tc rgb "#RRGGBB"`, `tc rgb "0xRRGGBB"` ϡǤդ 24-bit RGB 
      ꤷޤ
  `tc rgb 0xRRGGBB` ƱǤ (16 ͤˤϰ)

< pointstyle> lt, pt, ps ȤȤͿ (ʲ: style (84.12))Ϳ줿ȡͿ줿οǸФ֤ (point) 褵졢ФʸϾưޤΥץ mouse ĥ줿ϷǤΥ٥֤ˡǥեȤǻѤ ƤޤФʸ᤯赡ǽ off (줬ǥե) ˤ ˤϡnopoint ѤƤ

ΰưϡǥեȤǤϡ< pointstyle> Ϳ pointsize ñ̤ 1,1 ǡ< pointstyle> ͿƤʤ 0,0 Ǥưϡ ɲä offset < offset> ǤǤޤǡ< offset> x,y ޤ x,y,z ηǤ˺ɸϤ򤷤ơ first, second, graph, screen, character Τ줫Ĥ뤳ȤǤ ޤܺ٤ϡʲ: coordinates (12)

⤷ (뤤Ϥʾ) ּǤ硢ɸ timefmt ν񼰤ˤäưǰϤޤ줿ʸͿɬפޤʲ: set xdata (95.103), set timefmt (95.87)

set label ˴ؤͭʥץϡ襹 labels Ǥͭ Ǥʲ: labels (47)ξ硢textcolor, rotate, pointsize °θ˥ variable ĤơͤǤʤ褦 ˤ뤳ȤǽǤξġΥ٥б°ͤϡusing ɲˤꤷޤ

95.37.1 Examples

:

(1,2) ΰ֤ "y=x" Ƚ񤯾:

     set label "y=x" at 1,2

Symbol եȤΥ 24 "" () 򥰥դο˽񤯾:

     set label "S" at graph 0.5,0.5 center font "Symbol,24"

Ф "y=x^2" αü (2,3,4) 褦ˤֹȤ 3 Ȥ :

     set label 3 "y=x^2" at 2,3,4 right

θФ·ˤ:

     set label 3 center

ֹ 2 θФ:

     unset label 2

ƤθФ:

     unset label

ƤθФ򥿥ֹɽ:

     show label

x ּǤ륰դ˸Фꤹ:

     set timefmt "%d/%m/%y,%H:%M"
     set label "Harvest" at "25/8/93",1

ǡȡƤϤ줿ѥ᡼ˤƤϤؿ褷 硢fit θǤ plot ˰ʲ¹Ԥޤ:

     set label sprintf("a = %3.5g",par_a) at 30,15
     bfit = gprintf("b = %s*10^%S",par_b)
     set label bfit at 30,20

ƤϤѥ᡼ΤĤؿɽ:

     f(x)=a+b*x
     fit f(x) 'datafile' via a,b
     set label GPFUN_f at graph .05,.95
     set label sprintf("a = %g", a) at graph .05,.90
     set label sprintf("b = %g", b) at graph .05,.85

Фʸ򾮤龯ư:

     set label 'origin' at 0,0 point lt 1 pt 2 ps 3 offset 1,-1

pm3d Ȥä 3 Υ顼̾Τΰ֤ˡ z ( 5.5) б򸫽ФʸˤĤ:

     set label 'text' at 0,0,5.5 tc palette z

95.37.2 ϥѡƥ (hypertext)

Ϸˤ (wxt, qt, svg, canvas, win) վΰ֤䥭 ХΤ¾ʬ˥ϥѡƥȤŽդ뤳ȤǤ ޤޥ򤽤ξ˻äƤȡʸޤȢݥåץ פޤϥѡƥȤ򥵥ݡȤʤϷǤϡϲ ɽޤ󡣥ϥѡƥȤŽդˤϡΥ٥ point °ͭˤɬפޤ :
     set label at 0,0 "Plot origin" hypertext point pt 1
     plot 'data' using 1:2:0 with labels hypertext point pt 7 \
          title 'mouse over point to see its order in data set'

Ūʼ (٤ͤѹβǽ): "image{< xsize> ,< ysize> }:< filename> { \ n< caption text> }" ηʸ ݥåץåץܥåDzեɽ褦ˤޤ ˤǥեȤΥ 300x200 ѹǤޤǧե ηϽϷˤäư㤤ޤ*.png Ͼ OK Ǥե ̾θ˽񤤤ʸϡ̾ΥϥѡƥȤƱͤɽޤ

95.38 (linetype)

ޥ set linetype ϳƼ˻ѤŪ (linetype) 뤳ȤǽˤޤΥޥɤΥץϡ "set style line" ΤΤƱǤ饤󥹥Ȱ㤦Ȥϡ set linetype ˤϱ³ŪʤȤǡ reset αƶ ޤ

㤨С 1 2 ϥǥեȤǤ֤ФǤʲΤ褦˺ޤ:


     set linetype 1 lw 2 lc rgb "blue" pointtype 6
     set linetype 2 lw 2 lc rgb "forest-green" pointtype 8

lt 1 ѤƤ뤹٤ƤΤΤ٤ (lt 1 ΰΥǥե) ˤʤޤϡlt 1 ˴Ťƺ줿 Ūʥ饤󥹥Τ褦ʤΤޤǤޤ

: Υޥɤ gnuplot С 4.6 ǿƳ줿Τǡ Τޤʥޥ "set style increment user" ֤ΤǸŤޥɤϸߤ侩Ǥ

λȤߤϡgnuplot ǻѤФĿŪʹߤꤹ ˤȤޤԤˤϡ¹Իե ~ /.gnuplot ˡ㤨 аʲΤ褦ʤѤΥޥɲä뤳Ȥ򤪴ᤷޤ:


     set linetype 1 lc rgb "dark-violet" lw 2 pt 1
     set linetype 2 lc rgb "sea-green"   lw 2 pt 7
     set linetype 3 lc rgb "cyan"        lw 2 pt 6 pi -1
     set linetype 4 lc rgb "dark-red"    lw 2 pt 5 pi -1
     set linetype 5 lc rgb "blue"        lw 2 pt 8
     set linetype 6 lc rgb "dark-orange" lw 2 pt 3
     set linetype 7 lc rgb "black"       lw 2 pt 11
     set linetype 8 lc rgb "goldenrod"   lw 2
     set linetype cycle 8

ȡʤ gnuplot ¹Ԥ٤Ϥͤ˽ ޤϤʤǤޤʤϡ ϥǥեȤ°³ޤ㤨 3 鳰С Ĥ pt 3, lw 1 Ȥʤޤʤץ륹ץȤκǽ 2,3 ιԤϡŤС gnuplot Ǥϥåפ뤿ݸǤ

ƱͤΥץȥեǡơޥ١οԤäꡢ 西ס뤤νϷѤ˿򥫥ޥꤹ뤳 ǽǤ

ޥ set linetype cycle 8 ϡ礭ֹФƤϿ ˴ؤ뤳Ѥ뤳Ȥ gnuplot ޤʤ (linetype) 9-16, 17-24 ФƤϡƱѤ ޤ° (pointtype, pointsize, pointinterval) ϡ ޥɤαƶϼޤunset linetype cycle Ϥεǽ̵ ޤ礭ֹ°ŪϡϾ ֹ°κѤͥ褵ޤ

95.39 2 Ȥб (link)

:
     set link {x2 | y2} {via <expression1> inverse <expression2>}
     unset link

ޥ set link ϡx x2 ޤ y y2 δ֤б ꤷޤ< expression1> ϡ 1 κɸ 2 ˼Ǥ < expression2> 2 κɸ 1 ˼Ǥ

:


     set link x2

ϡΥޥɤκǤñʷǡx2 ϰ (range) ⿭ (scale) x Ʊˤޤset xrange, set x2range set auto x ʤɤΥޥɤϡξ x ˤ x2 ˤѤ


     set link x2 via x**2 inverse sqrt(x)
     plot "sqrt_data" using 1:2 axes x2y1, "linear_data" using 1:2 axes x1y1

Υޥɤϡx x2 ΡȵбꤷƤޤ бϡx2 ιߥ٥ȡޥ x2 ɸΤ˻ бϡx2 Ϥǻꤵ줿ɸ褹Τ˻Ȥޤ бϡ x ɸˤΤͭǤ뤳ȤդƤy2 б硢< expression1> < expression2> ˤϲѿȤ y ɬפޤ

95.40 Lmargin

ޥ set lmargin Ϻ;Υ򥻥åȤޤܺ٤ϡʲ: set margin (95.46)

95.41 ɤ߹߸ѥ (loadpath)

loadpath ϡcall, load, plot, splot ޥɤΥǡ ե롢ޥɥեθѥɲޤե뤬ߤ ǥ쥯ȥ˸Ĥʤä硢loadpath Υǥ쥯ȥ꤬ ޤ

:

     set loadpath {"pathlist1" {"pathlist2"...}}
     show loadpath

ѥ̾ñΥǥ쥯ȥ̾ޤʣΥѥ̾ΥꥹȤȤϤ ʣΥѥʤѥꥹȤ OS ͭΥѥڤꡢ㤨 Unix ϥ (':'), MS-DOS, Windows, OS/2 Ǥϥߥ (';') Ƕڤ ޤshow loadpath, save, save set ޥɤϡOS ͭΥѥ ڤ򥹥ڡ (' ') ֤ޤ

Ķѿ GNUPLOT_LIB ꤵƤ硢Ƥ loadpath äޤshow loadpath ϡset loadpath GNUPLOT_LIB ͤ ̡ɽޤsave, save set ޥɤϡGNUPLOT_LIB ͤ ̵뤷ޤ

95.42 (locale)

locale {x,y,z}{d,m}tics դθꤷޤ

:

     set locale {"<locale>"}

< locale> ˤϥ󥹥ȡ뤵줿ƥǻȤȤνǤդθ ǤޤǽʥץˤĤƤϥƥΥɥȤ򻲾Ȥ Ƥޥ set locale "" ϡĶѿ LC_TIME, LC_ALL, LANG ͤꤷ褦Ȥޤ

˴ؤ locale ѹϡʲ: set decimalsign (95.20) ʸ󥳡ɤ򸽺ߤΥΤΤѹϡʲ:set encoding (95.23)

95.43 п (logscale)

:
     set logscale <axes> {<base>}
     unset logscale <axes>
     show logscale

ǡ< axes> () ϡx, x2, y, y2, z, cb, r Ǥդ Ȥ߹礻ǽǤ< base> ϡпǤ (ǥեȤ 10)ꤷʤäϡr ʳΤ٤ƤμоݤȤʤޤޥ unset logscale ϡ٤Ƥμпޤ пФƤĤιߤϡֳ֤ǤϤʤȤդƤ ʲ: set xtics (95.108)

:

x, z ξˤĤпꤹ:

      set logscale xz

y ˤĤ 2 Ȥпꤹ:

      set logscale y 2

pm3d plot Ѥ z ȿμпꤹ:

      set logscale zcb

z п:

      unset logscale z

95.44 ޥ (macros)

ߤΥС gnuplot ǤϡޥִϾͭǤޥɥ @< stringvariablename> ηʬʸϡʸѿ < stringvariablename> ˴ޤޤƥʸ֤ޤʲ: substitution (28)

95.45 3 ɸ (mapping)

ǡ splot ˵̺ɸɸͿ줿硢set mapping ޥɤ gnuplot ˤɤΤ褦˰ꤹΤ˻Ȥޤ

:

     set mapping {cartesian | spherical | cylindrical}

ǥեȤǤϥƥɸ (̾ x,y,z ɸ) Ȥޤ

̺ɸǤϡǡ 2 Ĥ 3 Ĥ (ޤϤθĿ using ȥ) ȤͿޤǽ 2 Ĥϡset angles ꤵ줿ñ Ǥ̳ (theta) ȶij (phi) (ʤ "" "") Ȥߤʤ ޤȾ r ϡ⤷ 3 ܤΥǡФ줬Ȥ졢⤷ʤ 1 ꤵޤѿ x,y,z Ȥбϰʲ̤Ǥ:


     x = r * cos(theta) * cos(phi)
     y = r * sin(theta) * cos(phi)
     z = r * sin(phi)

ϡ"˺ɸ" Ȥꡢष "ϳؾκɸ" (١) 뤳ȤդƤ (ʤphi z ȤʤѡȤ ƻפäijѡˤʤޤ)

ɸǤϡǡϤϤ 2 Ĥ 3 ĤͿ졢ǽ 2 Ĥ theta (set angle ǻꤵ줿ñ̤) z ȸʤޤȾ r ̺ɸξƱ͡3 ܤΥǡФ줬ʤ 1 ޤѿ x,y,z Ȥбϰʲ̤Ǥ:


     x = r * cos(theta)
     y = r * sin(theta)
     z = z

mapping θ̤ϡsplot ޥɾ using ˤե륿Ǽ¸ 뤳ȤǽǤ¿Υǡե뤬 mapping Ǥ礦mapping ȤäƤƤ⡢⤷եΥ ν֤ŬڤǤʤä using ɬפˤʤäƤޤޤ

mapping plot Ǥϲ⤷ޤ

world.dem: mapping Υǥ⡣

95.46 Ϥ; (margin)

margin (Ϥ;) Ȥϡΰζ饭Хΰֳ¦ޤ δֳ֤ΤȤǤ;礭ϼưŪˤȤޤޥ set margin ѹ뤳ȤǤޤshow margin ϸߤɽ ޤΰζ¦ǤޤǤδֳ֤ѹ ʲ: set offsets (95.59)

:

     set lmargin {{at screen} <margin>}
     set rmargin {{at screen} <margin>}
     set tmargin {{at screen} <margin>}
     set bmargin {{at screen} <margin>}
     set margins <left>, <right>, <bottom>, <top>
     show margin

< margin> ΥǥեȤñ̤ˤϡŬڤȻפ롢ʸι⤵Ȥ ޤͤ;Ū礭 (ޤ̵) gnuplot ˤäƼư׻ͤȤȤˤʤޤ3 Ǥ ; (lmargin) Τߤʸ礭ñ̤ȤǤޤ

at screen ϡ;λ꤬ΤΰФ Ǥ뤳Ȥ̣ޤϡ¿ (multiplot) ⡼ɤǤ 2D, 3D դγѤΤ·Τ˻Ȥޤ֤ϸߤ set origin set size ̵ͤ뤹褦ˤʤäƤơ¿Υ ֤̤ˡȤƻȤ뤳ȤտޤƤޤ

;̾ꡢθФθФΥȥ롢 աƶγˤ (key) Υ򸵤˷׻ ιߤǤʤˤĤƤ (㤨 set xtics axis ˤä)ι߼ȤȤθФ;η׻ ϴޤޤޤ󤷡;˽񤫤¾ʸΰ֤η׻ˤޤޤޤ ϡȶ˶ᤤ硢θФ¾ʸ񤭤 ǽ򼨺ޤ

95.47 Micro

ǥեȤǤϡιߥ٥˻ѤʳطϽϤΤν񼰻 "%c" ϡ֥ޥ(10^-6) 򼨤ƬȤƾʸ u Ȥ ޤޥ set micro ϡȤϰۤʤʸ (unicode U+00B5) Ѥ褦 gnuplot ˻ؼޤʸɽΤ˻ ѤХϡߤ encoding ˰¸ޤʲ:format specifiers (95.27.2), encoding (95.23)

ΥޥɤϻŪʤΤǡ¤ޤ٤ѹ ǽޤ

95.48 Minussign

gnuplot ϤۤȤɤνդϤ C Υ饤֥롼Ǥ sprintf() ǽޤgnuplot ˤȼν񼰲롼 gprintf() ⤢ꡢϼιʸ˻ȤƤޤC Υ ֥롼ϡ-7 Τ褦οɽˤϾ˥ϥեʸ (ASCII \ 055) ѤޤषŪǤϡȤϰۤʤѤΥޥ ʸ (Unicode U+2212) Ȥ 7 Τ褦ɽ¿ο͡ ϻפǤ礦 (: ʸǤ '7' Unicode Ρ֥ޥʥפ ȤƤ뤬Ǥ JIS ѥޥʥ 245D Ѥ)ޥ


    set minussign

ϡgprintf() ονϤˡϥե˥ޥʥʸ 褦ؼޤUTF-8 ǤϤ Unicode U+2212 б ޥХʸˤʤꡢWindow ɥڡ 1252 Ǥϡ 8 ӥåʸ ALT+150 ("en dash") ˤʤޤޥ set minussign ϡιߤΥ٥ȡgprintf Ū˸ƤӽФ 줿ʸ˱ƶͿޤ¾ξΥϥեޤʸ ϲƶͿޤ󡣰ʲ: gprintf (95.27.1)

LaTeX ϡ켫ȤǽȤߤäƤ뤿ᡢ ΥޥɤϡLaTeX ϤνϷѤƤ̵뤵뤳Ȥ դƤpostscript ϷѤ⡢gnuplot postscript 롼 ascii Υϥե󥳡 \ 055 minus Ȥ̾ΰۤʤʸѴΤǡΥޥɤɬפϤޤ

ΥޥɤϻŪʤΤǡ¤ޤ٤ѹ ǽޤ

(utf8 ):


    set minus
    A = -5
    print "A = ",A                 # ϥեޤʸ
    print gprintf("A = %g",A)      # U+2212 ʸޤʸ
    set label "V = -5"             # ϥեޤ٥
    set label sprintf("V = %g",-5) # ϥեޤ٥
    set label gprintf("V = %g",-5) # U+2212 ޤ٥

95.49 ⡼ (monochrome)

:
    set monochrome {linetype N <linetype properties>}

ޥ set monochrome ϡﷲ̤ˡ򤷤ޤ ΰ㤤ǤϤʤ/ѥΰ㤤ˤΤǤΥ ޥɤϡgnuplot ΰΥСΤϷ monochrome ץȤ󶡤ƤΤ֤ΤǡߴΤᡢνϷ "mono" ץꤹȡۤ set monochrome ƤӽФޤ 㤨С

    set terminal pdf mono

ϡʲƱǤ
    set terminal pdf
    set mono

⡼ (monochrome) ϡŪ RGB ѥåȿѤ ƤΥ顼˸ΤǤϤޤ󤬡ʲ⻲:set palette gray (95.66.4) ǥեȤǤ 6 Ĥ郎Ƥޤ°ѹ ꡢɲä뤳ȤϡեǤΥޥɤѤ뤳 ǤǤޤˤۤɤ줿ѹϡ顼ˤϱƶͿ 󤷡εդƱͤǤ顼ˤϡunset monochrome set color ȤƤ

95.50 ޥ (mouse)

ޥ set mouse ϡߤ÷ϷФƥޥǽͭ ˤޤ÷⡼ɤǤ̾ǥեȤǤͭˤʤäƤޤ ޥɤե뤫ɤ߹ޤϥǥեȤǤ̵ˤʤäƤ

ޥ⡼ɤ 2 ѰդƤޤ2 ⡼ɤϡplot ޥ splot 2 ͱ (ʤz βžѤ 0, 90, 180, 270, 360 ٤ set view set view map) ưޤΥ⡼ɤǤϡ ޥ֤פ졢ޥܥȤäƳ礷ư ǤޤդбΥȥ̤ʥåȥ ʤɤ򥯥å뤳ȤǡġΥդ򥪥/դڤؤ Ȥ򥵥ݡȤϷ⤢ޤ

splot ˤ 3 դФƤϡդλ (view) Ƚ̼ܤ ѹ줾ޥܥ 1 2 (ˤɥå) ǹԤޤܥ 2 οľΥɥå shift Ʊ˹Ԥȡz ΰֲΰ (xyplane) 岼ޤΥܥˤ < ctrl> 򲡤 ȡɸɽޤǡɽϾäޤ礭ʥǡ ФͭѤǤ礦

ޥ¿ (multiplot) ⡼Ǥ̵Ǥunset multiplot ¿褬뤹Сޥǽ ON ˤʤޤκѤ multiplot κǸ (replot 褵褦ʤ) ФƤΤ Ǥ

:

     set mouse {doubleclick <ms>} {nodoubleclick}
               {{no}zoomcoordinates}
               {zoomfactors <xmultiplier>, <ymultiplier>}
               {noruler | ruler {at x,y}}
               {polardistance{deg|tan} | nopolardistance}
               {format <string>}
               {mouseformat <int>/<string>}
               {{no}labels {"labeloptions"}}
               {{no}zoomjump} {{no}verbose}
     unset mouse

ץ noruler ruler ϡ구 (ruler) ǽ off, on ˤ ruler ˤϺɸͿƸꤹ뤳ȤǤޤruler on δ֡ruler θޥޤǤΥ桼ñ̤ǤεΥϢ³Ūɽ ޤǥեȤǤϡruler Υȥ륹å 'r' ˥ Ƥޤ

ץ polardistance ϡޥ뤫구 (ruler) ޤǤε Υ˺ɸǤɽ (Υӳ٤ޤϷ) 뤫ɤꤷ ϥǥեȤΥ '5' бޤ

ܥ 2 gnuplot α³Ūʥ٥ˤϡץ labels ѤޤǥեȤ nolabels ǡܥ 2 ñ˰ Ūʥ٥ޥ֤褷ޤ٥ϸߤ mouseformat ˽äƽ񤫤ޤlabeloptions ʸϡޥ set label ޥɤϤޤΥǥեȤ "point pointstyle 1" ǡϥ ٥֤˾ץ饹 (+) 褷ޤŪʥ٥ϡμ replotޤϥޥǤϸޤ󡣱³Ūʥ٥ϡ ξ Ctrl 򲡤ƥܥ 2 򥯥å뤳ȤǾäȤ ǤޤºݤΥ٥ΰ֤ˤɤ̶᤯ǥåʤФʤ ͤ pointsize Ƿꤵޤ

ץ verbose ON ξ硢¹Ի𥳥ޥɤɽޤ Υץϥɥ饤Хɥ 6 ǤĤȤ ON/OFF åǤޤǥեȤǤ verbose OFF ˤʤäƤޤ

ɥ饤Хɥ 'h' ǤĤȡޥȥûɽ ޤϡ桼Υʤ bind ޥɤˤ hotkeys (ʲ: bind (23.1)) ɽޤ桼 hotkeys ǥեȤΥ̵ˤޤ ʲ⻲: bind (23.1), label (95.37)

95.50.1 Doubleclick

֥륯åβ٤ϥߥ (ms) ñ̤Ϳޤϡܥ 1 ѤΤΤǡߤΥޥ֤򥯥åץܡ (clipboard) ˥ԡ Τ˻ȤϷޤǥեȤͤ 300 ms Ǥ 0 ms ꤹȥ󥰥륯åǤΥԡԤ褦ˤʤޤ

95.50.2 Mouseformat

ޥ set mouse format ϡsprintf() Фʸλǡޥ [x,y] ɸ襦ɥȥåץܡɤˤɤΤ褦ɽ뤫ꤷޤǥեȤ "% #g" Ǥ

set mouse mouseformat ϡܥ 1 ȥܥ 2 κѻ (ɸ򥯥 ץܡɤإԡޥ֤˰ŪĤ) ʸν ˻Ȥޤξ硢ʲɽˤ񼰥ץΰĤ򤷤ޤʸξϡ񼰥ץ 6 sprintf() νʸȤƻȤޤΤǡ2 Ĥμ¿λҤޤɬפޤ:

    `set mouse mouseformat "mouse x,y = %5.2g, %10.3f"`.

ʸޤդˤˤϡset mouse mouseformat "" Ȥޤ

ʲν񼰤ѲǽǤ:


0   ǥե (1 Ʊ)
1   κɸ                            1.23, 2.45
2   պɸ (0  1 ޤ)         /0.00, 1.00/
3   x = timefmt     y = ɸ         [(`set timefmt` ), 2.45]
4   x =         y = ɸ         [31. 12. 1999, 2.45]
5   x =         y = ɸ         [23:59, 2.45]
6   x = /   y = ɸ         [31. 12. 1999 23:59, 2.45]
7   `set mouse mouseformat` ˤ񼰡: "mouse x,y = 1.23,     2.450"

95.50.3 ޥ (scrolling)

2 դ 3 դξǡX Y ο̤ϥޥۥ ȤȤĴǤޤ< wheel-up> ϥ륢åפ (YMIN YMAX ξ Y ϰϤ 10 ѡȤäY2MIN Y2MAX ˤƱ ΤȤԤޤ)< wheel-down> ϥ󤷤ޤ < shift-wheel-up> Ϻ뤷 (XMIN XMAX ξ X2MIN X2MAX ξ򸺾)< shift-wheel-down> ϱ뤷ޤ < control-wheel-up> ϥդ濴˥।󤷡 < control-wheel-down> ϥॢȤޤ< shift-control-wheel-up> X X2 Τߤ˱äƥ।󤷡< shift-control-wheel-down> X X2 ˱äƤΤߥॢȤޤ

95.50.4 X11 ǤΥޥ (X11 mouse)

x11 νϷΥץ set term x11 < n> Ȥäʣ X11 ɥƤ硢ޥޥɤȥۥåȥεǽ ȤΤϸߤ襦ɥΤߤǤ¾Υɥ⺸ ޥκɸɽ̤ϤƤǤ礦

95.50.5 Zoom

(zoom) ϡ̾Ϻޥܥ򲡤ȤǹԤ졢ϰϤ ϥޥΥɥåǹԤޤȤϰۤʤޥܥ׵᤹ ¹ԴĶ⤢뤫⤷ޤ󡣸Υդϡեɥǥۥå 'u' 򥿥פ뤳ȤǤޤۥåȥ 'p' 'n' ϡ ˤɤޤ

ץ zoomcoordinates ϡκݤˡȤüˤκɸ 񤯤ɤꤷǥեȤǤ ON ˤʤäƤޤ

ץ zoomjump ON ξ硢ܥ 3 ˤϰϤ Ϥȡޥݥ󥿤ϼưŪ˾줿֤˰ưޤ ϡ (ޤ϶Ǥ) ϰϤ򤷤ƤޤȤ ΤǤ礦ǥեȤǤ zoomjump OFF Ǥ

95.51 ¿⡼ (multiplot)

ޥ set multiplot gnuplot ¿⡼ɤˤޤ ϡʣΥդƱڡƱ꡼󥦥ɥ٤ƱΤ ٤ɽޤ

:

     set multiplot
         { title <page title> {font <fontspec>} {enhanced|noenhanced} }
         { layout <rows>,<cols>
           {rowsfirst|columnsfirst} {downwards|upwards}
           {scale <xscale>{,<yscale>}} {offset <xoff>{,<yoff>}}
           {margins <left>,<right>,<bottom>,<top>}
           {spacing <xspacing>{,<yspacing>}}
         }
     set multiplot {next|previous}
     unset multiplot

Ϸ (terminal) ˤäƤϡޥ unset multiplot Ϳ ޤDzɽʤȤޤξ礳Υޥɤˤ ڡΤ褬Ԥʤ졢gnuplot ɸñ⡼ɤˤʤޤ ʳνϷǤϡ plot ޥɤ줾ɽ򹹿ޤ

ޥ clear ϡ˻ȤĹΰäΤ˻Ȥޤŵ Ūˤϡ礭դ˾ʥդ褦ʾɬפǤ

ѤθФ٥ȥϡˤơ󸽺ߤΥȸ˽ äƽ񤫤ޤ (餬 screen ɽϤƤʤ) ʳƤ set Τ褹٤ƤŬѤޤ⤷ 1 ٤ˤߤΤꤿʤ顢줬㤨 (timestamp) Ȥ顢set multiplot unset multiplot ǰϤޤ ֥å plotsplot, replot) ̿ΰĤ set time unset time ǤϤǤ

multiplot Υȥϡġ西ȥ뤬äȤƤ⡢Ȥ ΤΤǡڡξˤΤΥХΤˤ錄륹ڡ ݤޤ

layout ꤵƤʤ硢뤤Ϥɤַ򤷤ϡ ޥ set origin set size ֤ꤹɬפ ޤܺ٤ϡʲ: set origin (95.60), set size (95.77)

:

     set multiplot
     set size 0.4,0.4
     set origin 0.1,0.1
     plot sin(x)
     set size 0.2,0.2
     set origin 0.5,0.5
     plot cos(x)
     unset multiplot

ϡcos(x) Υդsin(x) ξѤ߽Ťͤɽޤ

set size set origin Τΰ򻲾Ȥϳ Ѥޤʲ⻲: set term size (9)趭·ʤ Сset margin ޥɤǡγ;򥵥Ʊ· ȤޤλѤ˴ؤƤϡʲ: set margin (95.46);򥵥 ʸñ̤Ūʿñ̤Ѥ뤳ȤդƤ äƻĤäڡ륰դɽǥХɽ˰¸ ޤ㤨Сץ󥿤ȥǥץ쥤ɽ¿ʬäΤˤʤǤ 礦

ץ layout ˤꡢˤ줾ͿƤ set size set origin ޥɤʤˡñʣդǤޤ ϼưŪ˹Ԥʤ졢ĤǤ⤽ѹǤޤ layout Ǥɽ < rows> Ԥ < cols> γʻҤʬ䤵졢ƳʻҤϡ θ³б̾Υץˤäƹ (rowsfirst)뤤 (columnsfirst) ƹԤޤ襰դѤ߾夲ϲ (downwards) ˡޤϾ (upwards) ˿Ӥ褦ˤǤޤ եȤ rowsfirst downwards Ǥ ޥ set multiplot next set multiplot previous ϡ쥤 ȥץѤƤΤߤ˴طޤnext ϡʻμ ΰ֤򥹥åפĤޤprev ϡľ褷֤ľ γʻҰ֤ޤ

scale ǿ̤offset ǰ֤ʿ԰ưԤʤȤǤ ޤscale offset y ͤά줿ϡx ͤ˻ ޤunset multiplot ˤ꼫ưֵǽϥդˤʤꡢ set size set origin ͤ set multiplot layout ξ֤ ޤ

:

     set size 1,1
     set origin 0,0
     set multiplot layout 3,2 columnsfirst scale 1.1,0.9
     [ ˤ 6 ĤޤǤ襳ޥ ]
     unset multiplot

Ǥ 6 Ĥ褬 2 ˾夫鲼ء鱦ؤƹ ޤϿʿ 1.1/2ľ 0.9/3 Ȥʤޤ

¾ˤ⡢Υ쥤Τ٤ƤΥդ˰ͤʥޡ򥪥ץ layout margins spacing ꤹ뤳ȤǤޤϰ Ȥɬפޤmargins ϡʻ֤ʣΤγ¦Ф ޡꤷޤ

spacing ϡܤʬմ֤η֤Ϳޤcharacter screen ñ̤ǻꤹ뤳ȤǤޤñͤꤹȡ x, y ξ˻Ѥޤ2 Ĥΰۤʤͤꤹ뤳ȤǤޤ

Ĥͤñ̤ʤСľΥޡΤΤѤޤ

:

     set multiplot layout 2,2 margins 0.1, 0.9, 0.1, 0.9 spacing 0.0

ξ硢ˤ륰դκζϡ꡼ɸ 0.1 ֤졢 ˤ륰դαζϥ꡼ɸ 0.9 ξ֤롢Ȥ ޤƥդη֤ 0 ˻ꤷƤΤǡ¦ζϽŤʤ

:

     set multiplot layout 2,2 margins char 5,1,1,2 spacing screen 0, char 2

ϡΥդζϡХκü 5 ʸξˡ ΥդαζϡХü 1 ʸξˤ褦ʥ ȤޤΥޡ 1 ʸʬι⤵Υޡ 2 ʸʬι⤵ˤʤޤմ֤οʿη֤Ϥޤ󤬡 ˤ 2 ʸʬι⤵֤ޤ

:

     set multiplot layout 2,2 columnsfirst margins 0.1,0.9,0.1,0.9 spacing 0.1
     set ylabel 'ylabel'
     plot sin(x)
     set xlabel 'xlabel'
     plot cos(x)
     unset ylabel
     unset xlabel
     plot sin(2*x)
     set xlabel 'xlabel'
     plot cos(2*x)
     unset multiplot

ʲ⻲

multiplot Υǥ (multiplt.dem)

95.52 Mx2tics

x2 () ξߤΰ set mx2tics 椵ޤʲ:set mxtics (95.53)

95.53 (mxtics)

x ξߤΰ set mxtics 椵ޤunset mxtics ˤäƤɽʤ뤳ȤޤƱͤ楳ޥɤƼ ѰդƤޤ

:

     set mxtics {<freq> | default}
     unset mxtics
     show mxtics

ν񼰤 mytics, mztics, mx2tics, my2tics, mrtics, mcbtics ФƤƱǤ

< freq> ֤Ρˤäʬ䤵֤ο ( ǤϤޤ) Ǥ̾ФƤϥǥեȤͤ 2 5 ǡˤäѲޤä֤ 1 ġޤ 4 Ĥξ꤬뤳Ȥˤʤޤdefault ꤹ뤳Ȥˤäƾ οϥǥեȤͤޤ

пǤ硢ʬ֤οϥǥեȤǤͭդʿ˥åȤ ޤ (10 ĤĹ򸵤ˤ)< freq> ͿƤФ餬ͥ褵 ޤпǤ̾ξ (㤨 1 10 ޤǤ 2, 3, ..., 8, 9 ι) ϡ9 Ĥʬ֤ޤ󤬡< freq> 10 Ȥ뤳ȤǤʤޤ

Ǥդΰ֤ꤹˤϡ("< label> " < pos> < level> , ...) set {x| x2| y| y2| z}tics ǻѤƤ< label> ("") ǡ< level> 1 ˤޤ

ޥ set m{x| x2| y| y2| z}tics ϡ꤬ͤδֳ֤ξˤΤ Ưޤ⤷Ƥ꤬ set {x| x2| y| y2| z}tics ˤäƼư ֤줿ϡξΥޥɤ̵뤵ޤưŪ ֤ȼưξ֤ϡset {x| x2| y| y2| z}tics set {x| x2| y| y2| z}tics add ȤȤȤǶ¸Ǥޤ

:

     set xtics 0, 5, 10
     set xtics add (7.5)
     set mxtics 5

ξ硢 0,5,7.5,10 1,2,3,4,6,7,8,9 ξ
     set logscale y
     set ytics format ""
     set ytics 1e-6, 10, 1
     set ytics add ("1" 1, ".1" 0.1, ".01" 0.01, "10^-3" 0.001, \
                    "10^-4" 0.0001)
     set mytics 10

ξ硢ϻꤵ줿񼰤ǡпŪ

ǥեȤǤϾɽϡǤϥդǡпǤϥˤʤ ƤޤϡФ axis| border {no}mirror λѾޤ˴ؤˤĤƤϡʲ:set xtics (95.108)

95.54 My2tics

y2 () ξߤΰ set my2tics 椵ޤʲ:set mxtics (95.53)

95.55 Mytics

y ξߤΰ set mytics 椵ޤʲ:set mxtics (95.53)

95.56 Mztics

z ξߤΰ set mztics 椵ޤʲ:set mxtics (95.53)

95.57 Nonlinear

:
     set nonlinear <axis> via f(axis) inverse g(axis)
     unset nonlinear <axis>

ΥץϻʳǤ (gnuplot ΰǥ꡼˺٤ Ѥ뤫⤷ޤ) Υޥɤϥޥ set link ˻Ƥޤ2 ĤΥ󥯤줿 ΰΤߤɽ㤤ޤ뼴ΤޤޤǤɽ 뼴˱褦ɸϡg(x) ŬѤƱƤ뼴κɸƤ졢 f(x) ɽ뼴κɸ򱣤Ƥбޤ

:


     set xrange [1:1000]
     set nonlinear x via log10(x) inverse 10**x

пƤơset log x Ʊ̤⤦Ĥ ˡǤξ籣Ƥ뼴ϡ[log10(xmin):log10(xmax)] ׻뤳 Ȥ [0:3] ȤϰϤޤѴȵѴϡξꤹ ɬפޤ

:


     set xrange [-3:3]
     set nonlinear x via norm(x) inverse invnorm(x)

ϳΨ ("ץӥå") x ʬ۴ؿ Phi(x) Υդ y ФľȤʤޤ

:


     logit(p) = log(p/(1-p))
     logistic(a) = 1. / (1. + exp(-a))
     set xrange [.001 : .999]
     set nonlinear y via logit(y) inverse logistic(y)
     plot logit(x)

ϥåȥ y x Ф logit(x) Υդľˤʤޤ

:


     f(x) = (x <= 100) ? x : (x < 500) ? NaN : x-390
     g(x) = (x <= 100) ? x : x+390
     set xrange [0:1000] noextend
     set nonlinear x via f(x) inverse g(x)
     set xtics add (100,500)
     plot sample [x=1:100] x, [x=500:1000] x

"Ǽ" ޤx ɸϺ 0 100 500 1000 ¤ӡδ֤ 10 ξʷ֤Ǥޤ100 < x < 500 δ Υǡ褵줺ϴ̤ư򤷤ޤ

95.58 ޷֥ (object)

ޥ set object ϡθ 2 褹٤ƤɽñΥ ֥Ȥޤ֥ȤϤĤǤǤޤ֥ Ȥηϡߤ rectangle (Ĺ)circle ()ellipse (ʱ) 򥵥ݡȤƤޤĹϡޥ set style rectangle ˤäꤵ줿° (ɤ٤) ǥե ȤƼѤޤġΥȤ̡Υ°褹뤳 ȤǽǤߤʱߤϡset style fill ˤɤ٤ Ѥޤ

:

   set object <index>
       <object-type> <object-properties>
       {front|back|behind} {clip|noclip}
       {fc|fillcolor <colorspec>} {fs <fillstyle>}
       {default} {lw|linewidth <width>} {dt|dashtype <dashtype>}
   unset object <index>

< object-type> ϡrectangle, ellipse, circle, polygon Τ ǤġΥ֥Ȥηϡηͭ⤤ĤäƤ ޤ

front ꤹȡ֥ȤϤ٤ƤǤ () 褵 ޤfront Ȼꤵ줿٥ϸ () ˤʤޤback ꤹȡ٤Ƥǡ٤ƤΥ٥θ֤ޤ behind ϡ back Ĺޤह٤ƤΤΤθ֤ äơ

   set object rectangle from screen 0,0 to screen 1,1 behind

ϡդڡΤطʤ˿ĤΤѤǤޤ

ǥեȤǤϡ֥ȤϡʤȤ 1 Ĥĺ꡼ɸ ͿƤʤ¤ꡢնǥåԥ󥰤ޤnoclip ꤹȡնǤΥåԥ󥰤̵ˤʤޤ꡼ Ф륯åԥ󥰤ϹԤޤ

֥Ȥɤ٤ο < colorspec> ǻꤷޤfillcolor fc ȾάǤޤɤ٤ < fillstyle> ǻꤷޤܺ ϡʲ: colorspec (21.1), fillstyle (95.78.4)default ꤹ ȡ°褬ºݤ˹ԤȤΥǥեȤ ޤʲ: set style rectangle (95.78.9)

95.58.1 Ĺ (rectangle)

:
   set object <index> rectangle
       {from <position> {to|rto} <position> |
        center <position> size <w>,<h> |
        at <position> size <w>,<h>}

Ĺΰ֤ϡгѤ˸礦 2 Ĥĺ (ȱ) ΰ֡ 濴ΰ֤Ȳ (< w> ) Ƚ (< h> ) ǻǤޤξ ΰ֤ϡκɸ (first, second)ΰкɸ (graph)꡼ɸ (screen) Τ줫ѤǤޤ (ʲ: coordinates (12)at center Ʊ̣Ǥ

:

   # ɸǰϤޤ줿ΰΤطʤ忧
   set object 1 rect from graph 0, graph 0 to graph 1, graph 1 back
   set object 1 rect fc rgb "cyan" fillstyle solid 1.0


   # Ѥ 0,0, Ѥ 2,3 ֤ͳѤ֤
   set object 2 rect from 0,0 to 2,3 fc lt 1


   # Ĥζ (ɤ٤ʤ) Ĺ֤
   set object 3 rect from 0,0 to 2,3 fs empty border rgb "blue"


   # ĺϰưʤޤޡɤ٤ȿǥեȤѹ
   set object 2 rect default

꡼ɸĹγѤꤹȡϸߤΥΰü 뤳ȤǽǤ¾ξĹϥ˼ޤ褦˥ åԥ󥰤ޤ

95.58.2 ʱ (ellipse)

:
   set object <index> ellipse {at|center} <position> size <w>,<h>
       {angle <orientation>} {units xy|xx|yy}
       {<other-object-properties>}

ʱߤΰ֤ϡ濴ꤷθȹ⤵ (缴) ꤷ  at center Ʊ̣Ǥ濴ΰ֤λˤϡ κɸ (first, second)ΰкɸ (graph) ɸ (screen) Τ줫ѤǤޤ (ʲ: coordinates (12)) 缴ĹϡκɸͿʤФޤʱߤθ (orientation) ϡʿʱߤμ缴Ȥδ֤γ٤ǻꤷޤ٤Ϳ ʤСǥեȤʱߤθ˻Ȥޤ (ʲ:set style ellipse (95.78.10)) units ϡʱߤμν̼ܤ˻ Ѥޤunits xy ϡ缴 x ñ̤ǡ y ñ̤Ƿ׻ ޤunits xx ξȤ x ñ̤ǽ̼ܤunits yy ξ Ȥ y ñ̤ˤʤޤ ǥեȤ xy Ǥset style ellipse units ǤĤǤ Ǥޤ

: x y ν̼ܤʤ ( units xy ξ) žμ缴Ϥʤޤ

set object ellipse size < 2r> ,< 2r> set object circle < r> Ȥϡ ̤ˤƱȤˤϤʤʤȤդƤcircle Ⱦ¤Ͼ x ñ̤Ƿפ졢ä x y ν̼ܤäꡢΥ ڥ椬 1 ǤʤƤ⡢˱ߤޤunits xy ƤС'set object ellipse' Ǥϡǽ < 2r> x ñ̤ǡ < 2r> y ñ̤Ƿפޤ x y ν̼ܤƱ ǡΥڥ椬 1 ǤΤ߱ߤ뤳Ȥ̣ ޤunits xx yy ˥åȤСޥ set object ǻꤷľ¤Ʊñ̤Ƿ׻Τǡʱߤ ڥꥵƤ⤽Υڥݻޤ

95.58.3 (circle)

:
   set object <index> circle {at|center} <position> size <radius>
       {arc [<begin>:<end>]}
       {<other-object-properties>}

ߤΰ֤ϡ濴ꤷθȾ¤ꤷޤ at center Ʊ̣Ǥΰ֤Ⱦ¤ˤϡx κɸΰ кɸ (graph)꡼ɸ (screen) Τ줫ѤǤ ޤ (ʲ: coordinates (12))ΤξǤ⡢Ⱦ¤ϼա ꡼οʿν̼ܤФƷפ졢ʿȿľν̼ܤˤ 줬äƤ⡢̤ߤˤʤ褦ľޤߤ򥰥դκ ɸ (ĤޤʿȿľΥ뤬㤦ˤϤ줬ʱߤ ɽ褦ˤ) ϡ set object ellipse äƤ

ǥեȤǤϡʱߤ褵ޤץ arc ˳ϳѤ λѤ٤ñ̤Ȥƻꤹȱ߸̤褷ޤ߸̤ϡȿײ ޤ

ʲ⻲: set object ellipse (95.58.2)

95.58.4 ¿ѷ (polygon)

:
   set object <index> polygon
       from <position> to <position> ... {to <position>}

ޤ
       from <position> rto <position> ... {rto <position>}

¿ѷΰ֤ϡĺΰ֤Ϳ뤳ȤǻǤޤϡ κɸ (first, second)ΰкɸ (graph)꡼ ɸ (screen) Τ줫ѤǤޤŪʺɸ (rto) ϡκɸϤĺƱɸϤǤʤФޤ󡣰ʲ: coordinates (12)

:

   set object 1 polygon from 0,0 to 1,1 to 2,0
   set object 1 fc rgb "cyan" fillstyle solid 1.0 border lt -1

95.59 հ֤Ĵ (offsets)

եåȤϡư̼ܤ줿դΥǡμ˶ζ֤ Ȥߤ󶡤ޤեåȤϡx1,y1 2 plot ޥɤ ߤǰ̣ޤ

:

     set offsets <left>, <right>, <top>, <bottom>
     unset offsets
     show offsets

ƥեåȤޤϿȤΥǥեȤͤ 0 Ǥ ǥեȤǤϡΥեåȤ x1 Ʊñ̤ǻꤷ岼Υ åȤ y1 Ʊñ̤ǻꤷޤ "graph" Ѥ뤳 ȤǼϰϤФȤƥեåȤꤹ뤳ȤǤޤ ΥեåȤͤϡϰϤꤵ줿ؿФޤ㤨β ΥեåȤ y κǾͤ꾮ͤˤޤƤϰ ǤΥեåȤϡư̼ܡ뤤ϥåԥ󥰤Ȥλפ̷ ̤ǽޤư̼ܵǽ鼴ϰϤĴꤿ ϡ"set auto fix" ꤹȤǤ礦

:

     set auto fix
     set offsets graph 0.05, 0, 2, 2
     plot sin(x)

sin(x) Υդ y ϰϤ [-3:3] ˤʤޤϡؿ y ϰϤ [-1:1] ˼ư̼ܤޤľΥեåȤ줾 2 Ǥ뤿Ǥx ϰϤ [-11:10] ˤʤޤϥǥե Ȥ [-10:10] ǤϰϤ 0.05 γФ뤿Ǥ

95.60 հ֤λ (origin)

ޥ set origin ϥ꡼Ƕθ (ʤ դȤ;) Τ˻ѤޤκɸϤϥ꡼ɸ (screen) ͿޤκɸϤ˴ؤˤĤƤϡʲ:coordinates (12)

:

     set origin <x-origin>,<y-origin>

95.61 (output)

ǥեȤǤϡդɸϤɽޤޥ set output νϤꤵ줿եǥХ˥쥯Ȥޤ

:

     set output {"<filename>"}
     show output

ե̾ϰǰϤޤʤФʤޤ󡣥ե̾ά줿 ϡľ set output dz줿ե뤬졢ʽϤ ɸ (STDOUT) ޤ(⤷set output "STDOUT" Ȥ Ϥ "STDOUT" Ȥ̾Υե뤫⤷ޤ ! [" ʤ" ȤΤϡ㤨 x11 wxt ʤɤ terminal (Ϸ) Ǥ set output ̵뤵뤫Ǥ])

set terminal set output ξꤹ硢set terminal ˻ꤹǤϡ terminal ǤϡOS ɬפ ե饰򥻥åȤ뤳Ȥ뤫Ǥ㤨СХʥե ̡ open ޥɤɬפȤ褦 OS ʤɤ˳ޤ

ѥפ򥵥ݡȤĶǤϡѥ׽ϤͭѤǤ㤨аʲ̤Ǥ:


     set output "|lpr -Plaser filename"
     set term png; set output "|display png:-"

MS-DOS Ǥϡset output "PRN" ȤɸΥץ󥿤˽Ϥޤ VMS ǤϽϤǤդΥסǽʥǥХ뤳Ȥޤ

95.62 ޲ѿ⡼ (parametric)

set parametric ޥɤ plot splot ΰ̣̾δؿ 褫޲ѿɽ (parametric) ؿѹޤunset parametric Ȥи⡼ɤޤ

:

     set parametric
     unset parametric
     show parametric

2 դˤƤϡ޲ѿɽؿϤҤȤĤ޲ѿФ 2 ĤδؿޤȤƤ plot sin(t),cos(t) Ȥ뤳Ȥˤ Ʊߤޤ (ڥ椬ꤵƤСʲ:set size (95.77))gnuplot ϡξδؿ޲ѿˤ plot Τ ͿƤʤХ顼åФޤ

3 դˤƤ̤ x = f(u,v), y = g(u,v), z = h(u,v) ޤä 3 ĤδؿȤǻꤹɬפޤȤƤϡ cos(u)*cos(v),cos(u)*sin(v),sin(u) Ȥ뤳ȤˤäƵ̤ޤ gnuplot ϡ3 δؿ޲ѿˤ splot ΤͿ ƤʤХ顼åФޤ

ˤäɽǤؿϡñ f(x) δؿ񤹤뤳Ȥ ʤޤʤʤС2 (3 ) δؿ x, y (, z) ͤΩ˷׻ 뵭ҤǤ뤫Ǥºݡt,f(t) ΥդϡܤδؿΤ褦 ʹؿѤ x ͤ׻ f(x) ˤä륰 դǤƱͤˡ3 Ǥ u,v,f(u,v) ϡf(x,y) Ǥ

޲ѿɽؿϡx δؿy δؿ (z δؿ)ν˻ꤷ ϶̤޲ѿӤѰ뤳ȤαդƲ

ˡset parametric λϡѿѰѤ뤳ȤŤ ޤ̾ f(x) f(x,y) xrangeyrange (zrange) ΤФơ޲ѿ⡼ɤǤϤ˲äơtrange, urange, vrange ѤޤѰ set trange, set urange, set vrange ˤäľܻꤹ뤳Ȥ⡢plot splot ǻꤹ뤳ȤǤޤ Ǥϡ޲ѿΥǥեȤѰ [-5:5] ȤʤäƤޤ ŪˤϤΥǥեͤäͭդʤΤѹͽǤ

95.63 ʿ輴 (paxis)

:
     set paxis <axisno> {range <range-options> | tics <tic-options>}
     show paxis <axisno> {range | tics}

ޥ set paxis ϡʿԺɸ p1, p2, ... ΰĤ˺Ѥ Ȱʳϡset xrange set xtics ƱǤʲ:parallelaxes (50), set xrange (95.107), set xtics (95.108)range tics ޥɤؤ ̾ΥץϡʿԺɸ襹ˤϰ̣ΤʤΤ⤢ޤ ٤ƤĤޤ

95.64 Plot

ޥ show plot ϸߤ襳ޥɡʤ replot ޥ ǺƸ롢ľ˹Ԥ줿 plot splot ޥɤɽޤ

˥ޥshow plot add2history ϡθߤ襳ޥɤ history ˽񤭽Фޤϡreplot Ȥäľ襳ޥ ˶ɲä硢ƥޥɹΤ򤹤Խ Ǥ

95.65 Pm3d

pm3d splot ΰĤΥǡѥåȤ˳դ줿 3 4 ǡ򡢥顼/οϿ/̤Ȥ褷ޤϤ륢 르ꥺѤƤơϥǡʻҾǤäƤ⡢ǡ οäƤ褦ʻҾΥǡǤäƤ⡢뤳Ȥʤ Ǥޤ

(ץǤդνͿ뤳ȤǤޤ):

     set pm3d
     set pm3d {
                { at <position> }
                { interpolate <steps/points in scan, between scans> }
                { scansautomatic | scansforward | scansbackward | depthorder }
                { flush { begin | center | end } }
                { ftriangles | noftriangles }
                { clip1in | clip4in }
                { corners2color
                  { mean|geomean|harmean|rms|median|min|max|c1|c2|c3|c4 }
                }
                { {no}lighting {primary <fraction>} {specular <fraction>}}
                { hidden3d {<linestyle>} | nohidden3d }
                { implicit | explicit }
                { map }
              }
     show pm3d
     unset pm3d

splot ޥɤ with pm3d ꤷ硢ޤϥǡؿ襹 (style) Ū pm3d ˥åȤƤ硢뤤ϡ pm3d ⡼ɤ set pm3d implicit ȤʤäƤϡpm3d Υ顼 ̤褵ޤ 2 Ĥξϡplot ޥɤǻꤷ ܤ p3md ̤ɲä褷ޤ㤨С

     splot 'fred.dat' with lines, 'lola.dat' with lines

ϡƥǡޤˤܤ pm3d ̤ξ褷ޤ ץ explicit ON (ޤ implicit OFF) ξϡ° with pm3d ꤵ줿Τߤ pm3d ̤Ȥ褵ޤ㤨
     splot 'fred.dat' with lines, 'lola.dat' with pm3d

ϡ'freq.dat' ޤ (Τߤ)'lola.dat' pm3d ̤褵 ޤ

gnuplot εưϤΥ⡼ɤ explicit ˤʤäƤޤŪ ƸߴΤˡޥ set pm3d; (ʤץꤷʤ ) set pm3d at X ...at ǽΥץξ) ϥ⡼ɤ implicit ѹޤޥ set pm3d; ϡ¾ ץ򤽤ΥǥեȤξ֤ꤷޤ

ǥեȤΥǡ/ؿ襹 pm3d ˤϡ㤨

     set style data pm3d

Ȥޤξ硢ץ implicit explicit ϸϤ

ĤˤƤϡϥޥɥ饤Ϳ줿褵 뤳ȤդƤäˡ񤭤ƤǤΰ򱣤Ƥޤǽ褦ʶ̤ɤĤ֤κݤ˴ؿǤ礦

p3md οդϡ3 Ĥΰۤʤ top, bottom, surface Τ ޤϤ٤Ƥ˹Ԥޤʲ: pm3d position (95.65.3)ʲΥޥɤϡۤʤä⤵ 3 Ĥοդζ̤ޤ:

     set border 4095
     set pm3d at s
     splot 10*x with pm3d at b, x*x-y*y, x*x+y*y with pm3d at t

ʲ⻲: set palette (95.66), set cbrange (95.138), set colorbox (95.14)Ƥ ǥե demo/pm3d.dem ⻲ͤˤʤǤ礦

95.65.1 Pm3d Υ르ꥺ (algorithm)

ޤϿ/̤ɤΤ褦ΤˤĤƵҤޤϥǡ ϡؿɾ뤫ޤ splot data file ޤ ̤ϡ (Ω) η֤ǹޤpm3d 르ꥺǤϡ ǽǸФ줿٤礦 2 ȡǸФ줿¾ 2 ֤ΰ褬 4 z (ޤɲä줿 'color' Ѥ͡ ʲ: using (84.3.8)) ˽äƳ (ޤ 顼) ɤޤǥե ȤǤ 4 ĤγѤͤʿͤȤޤϥץ corners2color ѹǤޤʤζ̤ˤϡ٤礦 2 򺹤ƤϤʤơο㤤ƤϤ ޤ󡣤󡢺ǤɤΤοƱȤǤ¾ˤϲ ɬפǤϤޤ (㤨ХǡϳʻҾǤɬפʤ)¾ˤ⤳ pm3d 르ꥺϡϤ줿 (¬줿뤤Ϸ׻줿) ΰ γˤϲʤȤĹ꤬ޤ

̤οŤϡʲΤ褦ϥǡ˴ؤƹԤޤ:

1. ؿޤ 1 Ĥ 3 ĤΥǡ󤫤ʤǡ splot: ˽Ҥ ͳѷ 4 ĤγѤ z ɸʿ (ޤ corners2color) 顢 ϰ [0:1] Ϳ zrange ޤ cbrange ϰ [min_color_z,max_color_z] ؤбˤꡢ/顼ͤޤ ͤϡľܳοϿѤγͤȤƻȤȤǤޤ 줿ͤ򥫥顼б뤳ȤǤޤϡʲ: set palette (95.66)

2. 2 Ĥ 4 ĤΥǡ󤫤ʤǡ splot: /顼ͤϡz ͤ˺ǸκɸȤäޤΤǡ z ɸΩ ʤΤˤʤޤ 4 ǡ˻ȤȤǤޤ

¾:

1. ʪؼԤδ֤Ǥϡgnuplot ʸ䥽˸ 'iso_curve' ( Ω) Ȥդ⡢Ǹڤ ' (scan)' Ȥդ Ƥޤ1 ٤¾εϿˤ꿧Ͽޤɾ롢Ȥ ΤϤ̣Ǥ

2. 'gray' 'color' (scale) ϡ餫Ѳ륫顼ѥåȤ ΡϢ³ѿǤμͻҤ襰դ٤Ĺ ɽޤʸǤϤ "顼ܥå (colorbox)" ȸƤӡ ѿ򥫥顼ܥåѿȸƤӤޤʲ: set colorbox (95.14),set cbrange (95.138)

95.65.2 ǥ (lighting)

ǥեȤǤϡpm3d ογƤϡ̤ˤϰ¸ޤ ξ֤ set pm3d nolighting бޤ ޥ set pm3d lighting ϡξ 50% θˤñʸǥ򤷤ޤϤ뤵Ф뤽θ ζ٤ set pm3d lighting primary < fraction> ĴǤޤȿ (specular) ޤޤٹ礤ϡΨ꤬Ǥޤ:
    set pm3d lighting primary 0.50 specular 0.0   # ϥ饤Ȥʤ
    set pm3d lighting primary 0.50 specular 0.6   # ϥ饤

95.65.3 Pm3d ΰ (position)

ζ̤̤ŷ (ξϳ/顼ʿϿ) ̾ z ɸ (/顼) ȤǤޤϡץ at ˡb, t, s 6 ĤޤǤȹ礻ʸĤƻꤹ뤳 ǹԤޤ㤨 at b ̤Τߤ褷ޤat st Ϻǽ˶ ̤Ƽŷ̤˿Ͽޤޤat bstbst ... ܤ áʤΤϻȤޤ

ɤ줿ͳѷϡ鼡ؤ褵ƹԤޤ̤褹 (at s)λͳѷΤΤ˽Ťʤ (񤭤) ޤ (gnuplot ɤ 줿¿ѷ֤νŤʤߺѤ׻褦ʲ۸¥ġǤϤ ޤ) ǽǡǽǸؤ륹 åץ scansforward scansbackward ƤߤƤ ǥեȤ scansautomatic ǡ gnuplot Ȥν ¬ޤǡץ depthorder ϻͳѷν˺ ޤɤĤ֤Ͽ¤Ѥ줿ǹԤ졢ˤ꤫ ʤʣʶ̤ǤŪʤΤˤ뤳ȤǤޤܺ٤ϡʲ:pm3d depthorder (95.65.4)

95.65.4 ν (scanorder)

ǥեȤǤϡpm3d ɤ٤̤ͳѷϡ餬̤ ʻ˱äƽв񤦽֤ɤ٤ޤν֤ϡץ scansautomatic| scansforward| scansbackward Ǥޤ (scan) ץϡ̤ˤϱ̽ȤξΩޤ

2 Ϣ³οƱǤʤä硢ͳѷμϤ ξκǽ餫 (flush begin) ˤ뤫Ǹ夫 (flush end) ˤ뤫椫 (flush center) ˤ뤫ꤷʤФޤ flush (center| end) scansautomatic ȤξΩä flush center ޤ flush endscansautomatic ꤵ 줿硢̵ scansforward ѹޤ

2 Ϣ³οƱǤʤä硢ġ­ ˡκǸ˿ѷɤ򥪥ץ ftriangles ϻؼޤϳ餫ʿϿޤζΤ˻Ȥޤ

gnuplot ϡ̤ɤ٤ˤƤϡα̽ϹԤޤ󤬡 Ƥϱᤤؽ˻ͳѷǤɤ٤ȤǽʬʤǤ ˤʤޤΥ⡼ɤϡʲΥץȤȤǤޤ:

     set pm3d depthorder hidden3d

ץ depthorder ɤ٤ͳѷؤλؼǡץ hidden3d Ʊͤ˶ (⤷ʤ) ؤλؼǤŪʥץ Ǥ set hidden3d ϡpm3d ̤ˤϱƶʤȤդƤ

95.65.5 åԥ (clipping)

ͳѷ x,y ɸ˴ؤ륯åԥ󥰤 2 ĤˡǹԤޤ clip1in: ƻͳѷƤ 4 ƤʤФʤ餺ʤ ⤽Τ 1 x, y ϰϤˤޤäƤʤФʤޤ clip4in: ƻͳѷƤ 4 x, y ϰϤˤޤäƤʤФ ޤ

95.65.6 γ

3 Υǡ (x,y,z) ξ:

Ťϥ顼ܥåƱͤ set palette Ƿꤵ ĤǤϰĤΥѥåȤΤߤ¸ߤޤĤζ̤ ʤѥåȤ褹ˤϡorigin sizemutiplot ȤȤǹԤޤϥɥ饤ФѤǤ뿧ȤԤƤޤ ˤ set palette maxcolors ȤȤ˺줺ˡ

褵 pm3d ͳѷˤϰĤγ/顼ͤбޤ (Ͽ ۤǤϤʤ̵ϤοǤ)ͤϡcorners2color < option> ˽ä 4 ĤγѤ z ɸ׻ޤ 4 Υǡ (x,y,z,color) ξ:

4 ܤ˥ǡͿ硢̤̾˥ѥåȤ˳Ƥ볥 ĴͤȤߤʤޤġλͳѷκ̿ϾƱͤ˹Ԥޤͤ z ͤȤڤΥޤ̤κ̿ץˤꡢ4 ܤΥǡ RGB Ϳ뤳ȤǤޤʲ: rgbcolor variable (21.1.3)ξ硢 襳ޥɤϰʲΤ褦ˤɬפޤ:


     splot ... using 1:2:3:4 with pm3d lc rgb variable

Ϳ줿Фơμ 4 ĤʿѲ줿 (x,y) ɸ Ѥƻͳѷäơλͳѷοɤ롢Ȥä褦 ¾襢르ꥺब뤫⤷ޤ ϡ᡼ (2 γʻ) ФƤ image rgbimage ˤäƴ˹ԤʤƤޤ

z ͤϰϤȶ̤οͤϰϤϡz cb ˴ؤ set log Ʊ͡ set zrange set cbrange ˤäΩĴ뤳Ȥդ Ͽޤ cb ΤߤĴᤵޤʲ⻲: set view map (95.94),set colorbox (95.14)

95.65.7 Corners2color

pm3d ̤γƻͳѷοϡ 4 Ĥĺοͤ˴ŤƳƤ ޤ< option> 'mean' (ǥե)'geomean', 'harmean', 'rms', 'median' ǡ̤Υ顼ʿ경˴ĤμͿ'min','max' 줾Ǿͤ͡򤷤ޤϱҤʡ뤤ϵ޷ʥԡ ͤĤ褦ʥԥ륤᡼俧ϿޤȤˤɬפޤ Τ褦ʾˤϡषץ 'c1', 'c2', 'c3', 'c4' Ȥäơ ͳѷογˤĤγѤ z ɸȤ褦ˤФǤ礦 ɤγѤ 'c1' бΤΤ뤿ˤϲ󤫼¸Ƥߤɬפ Ǥ礦θ˰¸Ƥޤ pm3d 르ꥺϡ顼̤ϥǡϰϤγˤʤ ǡץ 'c< j> ' ϡʻҤ 2 ĤΤؤ˱äԥ뤬ɤλ ѷοˤͿʤȤ̤⤿餷ޤ㤨Сpm3d 르 ꥺ 4x4 ΥǡγʻҤŬѤ륹ץ demo/pm3d.dem ( 󸫤Ƥ) Ǥϡ(4-1)x(4-1)=9 ʤĹޤ

95.65.8 Border

ץ set pm3d border {line-properties} ϡƻͳѷζ ͳѷ褵Ƥ褦褷ޤ̾盧ϡŪʱ Ԥˡץ depthorder ȤȤ˻Ѥޤpm3d դ ϡŪʥץ set hidden3d ϲθ̤ޤʤȤդ ƤǥեȤ° () 򡢥 border θ ˥ץȤƸˤĤޤΥǥեͤϡθ splot ޥɤѹǤޤ

侩:


     set pm3d at s depthorder border lw 0.2 lt black
     unset hidden3d
     unset surf
     splot x*x+y*y linecolor rgb "blue"   # ʤȹ

: 侩Υץ set pm3d hidden3d N ޤȤޤ set pm3d border ls N ƱǤ

95.65.9 Interpolate

ץ interpolate m,n ϡ٤ܤ뤿˳ʻ֤ ֤ޤǡФƤϡϿζ̤餫ˤζ ޤؿФƤϡ֤ϤۤȤɰ̣Ϥ 󤫤顢ؿξ samples isosamples Ȥäɸ äΤǤ礦

m, n ФƤϳƻͳѷޤϻѷϡ줾 m n ֤ޤ m, n Ǥ֤٤ϡʤȤ | m| , | n| 褵褦򤵤ޤ̤ʳʻҴؿȸʤȤǤ

: interpolate 0,0 ϡưŪ˺Ŭֶ򤷤ޤ

: corners2color Ǵʿ (geomean) Τ褦ɾꤵ ƤȤƤ⡢ߤο֤Ͼ֤ǹԤޤ

95.65.10 侩ʥץ

Υޥɤˤϥץ {transparent| solid} ȤƤޤ ߤϡƱ̤򤽤줾 set grid {front| layerdefault} ˤä ȤǤޤ

켰Υޥ set pm3d map ϰʲΰϢΤΤƱͤǤ:set pm3d at b; set view map scale 1.0; set style data pm3d;set style func pm3d;

95.66 ѥå (palette)

ѥåȤϡpm3d ǡ顼¿ѷ顼ҥȥࡢ ۤطʡ¾Ƥ롢뤤ϼΤɤĤ֤ǻ 롢εǤǤϤϳ餫 "Ϣ³Ū" 顼䳥 ĴΥѥåȤ̣ޤñ˥ѥåȤȸƤ֤Ȥˤޤ

顼ѥåȤϡ¿ѷοɤĤ֤ȳ餫ʿΥѥåȤ򥵥ݡ ȤϷɬפȤϸߡpm3d ǰɽϷ ǻѲǽǤͤϰϤϡset cbrange set log cb Ω ĴǽǤ顼ѥåΤ colorbox ɽޤ

:

     set palette
     set palette {
                { gray | color }
                { gamma <gamma> }
                {   rgbformulae <r>,<g>,<b>
                  | defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) }
                  | file '<filename>' {datafile-modifiers}
                  | functions <R>,<G>,<B>
                }
                { cubehelix {start <val>} {cycles <val>} {saturation <val>} }
                { model { RGB | HSV | CMY | YIQ | XYZ } }
                { positive | negative }
                { nops_allcF | ps_allcF }
                { maxcolors <maxcolors> }
              }
     show palette
     show palette palette <n> {{float | int}}
     show palette gradient
     show palette fit2rgbformulae
     show palette rgbformulae
     show colornames

set palette (ʤץʤǤ) ǥեȤͤꤷ ʳξ硢ץǤդνͿ뤳ȤǤޤ show palette ϡߤΥѥåȤ°ɽޤ

show palette gradient ϡѥåȤθ (gradient) (줬 ŬڤǤ) ɽޤshow palette rgbformulae ϡѤ ѤǤ롢ͤ饫顼ؤѴɽޤ show colornames ϡǧǤ뿧̾ɽޤ

show palette palette < n> ϡ< n> ĤΥŪʿĥѥåȤΡ ߤΥѥåȤˤäƷ׻ RGB ͤȤȥѥåȤɽ򡢲 ̡ޤ set print ǻꤵ줿ե˽񤭽Фޤǥե ιɽϡɲäΥץ float ޤ int ˤäơ3 [0..1] μ¿ͤˤ뤫 [0..255] ͤˤ뤫򤽤줾Ǥ ˡ gnuplot Υ顼ѥåȤOctave Τ褦¾β ꥱϤȤǤޤ¾ˤ⡢ޥ test palette ǡߤΥѥåȤ R,G,B ʬб (profile) 褷ͤ ֥å $PALETTE ˻Ĥ뤳ȤǤޤ

ʲΥץϡդ°ꤷޤ

ΥѥåȤѤޤϡgray color ˤʤޤ㤨С pm3d 顼̤Ǥϡϰ [min_z,max_z] ϰ [0:1] б Ƥơ̻ͳѷ 4 ĤγѤ z ɸʿͤ򤳤ϰϤб 뤳Ȥdzʬγ (gray) ޤͤϡ ĴοϿޤǤγͤȤľܻȤȤǤޤ顼οϿޤ ϡγͤ (R,G,B) ؤѴʤ [0:1] ([0:1],[0:1],[0:1]) ؤμȤޤ

Ūˡ2 ΰۤʤѲǽǤ: 1 Ĥϳ饫顼 βŪʸ⤦ĤΥŪбɽ֤ˤΤǤ palette rgbformulae palette functions ŪʸѤǡ palette defined palette file ɽѤǤpalette rgbformulae postscript ϤΥ򾮤뤳ȤǤޤ

ޥ show palette fit2rgbformulae ϡߤ set palette ˺ ɤб set palette rgbformulae 򸫤ĤФޤ rgbformulae ѥåȰʳФƤ̣ޤΥޥɤϼ ˡѥåȤ rgbformulae gnuplot ƱʪȤäƤ볰ץ ࡢ㤨 zimg ʤɤˤȤäͭѤǤ (

http://zimg.sourceforge.net

)

set palette gray ϡĴΤߤΥѥåȤˤ set palette rgbformulae, set palette defined, set palette file, set palette functions ϥ顼ѥåȤˤޤѥåȤľ Υ顼ѥåȤءset palette color ǴñǤޤ

set palette gamma < gamma> ˤ뼫ưŪʥϡΥѥå (set palette gray) ȡcubehelix 顼ѥåȷ˹Ԥޤ gamma = 1 ξϡθٸۤޤʲ:test palette (100)

Ϸ¿ϡͭ¸ĤοݡȤƤޤ (㤨 gif 256 )ǥեȤ gnuplot ￧ƤλĤͭ ΰϡǥեȤǤ pm3d Ѥ¸ޤäơʣΥѥå Ѥ褦 multiplot ϡǽΥѥåȤ٤Ƥͭʿ ȤƻѤƤΤǡԤƤޤǤ礦Τ褦¤ϡʬ N set palette maxcolors < N> ȤȤǴ¤Ǥޤ ΥץϡN ĤΥŪʿϢ³ŪʥѥåȤֳ֤ʥ 󥰤򤷤ޤֳ֤ N ĤΥȤϡĤϢ ³ŪʥѥåȤ set palette defined ѤƤ

RGB ֤ȤԤΤ˾ˤäȤͭѤʿ֤ǤȤϸ¤ʤ Ȥͳǡ֤ model ȤȤǡRGB, HSV, CMY, YIQ, XYZ Τ줫ѹǤޤRGB ʳο֤Ǥset palette defined ɽǿ̾ȤȡϤʿˤʤޤ Ƥ RGB Ѥ˽񤤤Ƥޤ줾ο֤ǡ㤨 R H, C, Y, X ΤȤ̣뤳ȤդƤ (G, B Ʊ)

Ƥο֤ǡƤͤ [0,1] ¤Ƥޤ

RGB ֡СĤCMY Ͽ忧 (Cyan) (Magenta) (Yellow) HSV Ͽ (Hue) (Saturation) (Value) 򤽤줾̣ޤ YIQ ƾȥ顼ƥ (the U.S. Commercial Color Television Broadcasting) λȤä顼ǥǡRGB Ͽ򸵤ˤ ƤޤƥӤФߴäƤޤXYZ CIE ('Commission Internationale de l'Eclairage'; ݾѰ) ǥ 3 ĤθɷͤǤ ǥΤܤˤĤƤϰʲ򻲾ȤƤ:

http://en.wikipedia.org/wiki/Color_space

95.66.1 Rgbformulae

rgbformulae Ѥˤ 3 ĤŬڤʳƴؿФɬפޤ rgbformulae < r> ,< g> ,< b> ̤ƹԤޤȤȤ ƴؿΰ show palette rgbformulae Ǹ뤳ȤǤ ǥեȤ 7,5,15 ǡ¾ȤƤ 3,11,6, 21,23,3, 3,23,21 ʤɤޤ3,-11,-6 Τ褦ͤϡդΥ顼 ̣ޤ (ʤ1-gray 򤽤δؿޤ)

RGB ο֤ǤϡĤɤƸޤ:

  7,5,15   ... Ū pm3d (---)
  3,11,6   ... --
  23,28,3  ...  (--); ¾Ȥ߹碌ƤߤƤ
  21,22,23 ... ٿ (---)
  30,31,32 ... Υ顼ɽ (----)
  33,13,10 ...  (---)
  34,35,36 ... AFM ٿ (---)

HSV ֤ǤΥե륫顼ѥå:

  3,2,2    ... ---忧---

rgbformulae Ȥ̾ǸƤФƤƤ⡢̤ꡢδؿϼº ˤ < H> ,< S> ,< V> ޤ < X> ,< Y> ,< Z> , ... Ȥäʬꤹ뤫 ⤷ʤȤȤդƤ

ޤοȿžˤ positive negative ȤäƤ

¾οηϤФǤɤ rgbformulae νϡʲΥޥɤǸĤ뤳ȤǤ뤳ȤФƤƤ

  show palette fit2rgbformulae

95.66.2 Defined

RGB ؤб palette defined ȤȤǼưǤ : (gradient) RGB ͤͿ뤿Ѥޤ ۤϡ[0,1] γͤ [0,1]x[0,1]x[0,1] RGB ֤ؤΡʬŪ ʼǤ֤˻Ȥ볥ͤ RGB ͤȤꤹɬ פޤ:

:

     set palette  defined { ( <gray1> <color1> {, <grayN> <colorN>}... ) }

< grayX> [0,1] ˳Ƥ٤ͤǡ< colorX> Ϥб RGB Ǥ顼ͤ 3 ˡǻꤹ뤳ȤǤޤ:


    <color> :=  { <r> <g> <b> | '<color-name>' | '#rrggbb' }

֡СĤбǶڤ줿 3 Ĥ (줾 [0,1] ) Ǥ줿̾ޤϰǤ줿 X λΤ 줫ǤۤǤϡ 3 ηͳȤ߹碌뤳 Ǥޤ֤Ȥ RGB ǤʤΤ򤵤줿翧̾ "red" äΤˤʤǤ礦ѤǤ뿧̾ show colornames Ǥ ΰ򸫤뤳ȤǤޤ

< r> Ƚ񤤤Ƥ⡢HSV ֤ǤϤ < H> ʬCIE-XYZ ֤Ǥ < X> 򡢤Ȥä褦򤵤줿顼ǥ˰¸ự㤦Ȥ Ƥ

< gray> ͤϼ¿ξ¤٤ɬפޤͤϼưŪ [0,1] Ѵޤ

åĤθۤʤ set palette defined Ȥ硢RGB ֤ˤ餫ꤵ줿ե륹ڥȥ뿧ۤѤޤۤ ɽˤ show palette gradient ѤƤ

:

Υѥå (ΩʤŪ) ˤ:

     set palette model RGB
     set palette defined ( 0 "black", 1 "white" )

IJ֤Υѥå (Ƥ) ˤ:

     set palette defined ( 0 "blue", 1 "yellow", 2 "red" )
     set palette defined ( 0 0 0 1, 1 1 1 0, 2 1 0 0 )
     set palette defined ( 0 "#0000ff", 1 "#ffff00", 2 "#ff0000" )

Τ褦ʥѥåȤˤ:

     set palette defined ( 0 "blue", 3 "green", 6 "yellow", 10 "red" )

HSV ֤ǤΥե륫顼ڥȥ:

     set palette model HSV
     set palette defined ( 0 0 1 1, 1 1 1 1 )
     set palette defined ( 0 0 1 0, 1 0 1 1, 6 0.8333 1 1, 7 0.8333 0 1)

MATLAB ǻȤǥեȥѥåȤζ:

     set pal defined (1 '#00008f', 8 '#0000ff', 24 '#00ffff', \
                      40 '#ffff00', 56 '#ff0000', 64 '#800000')

ֳ֤ʾοΥѥåȤˤ:

     set palette model RGB maxcolors 4
     set palette defined ( 0 "yellow", 1 "red" )

'̿' (餫ǤϤʤ gray = 1/3, 2/3 ķӤ):

     set palette model RGB
     set palette defined (0 "dark-green", 1 "green", \
                          1 "yellow",     2 "dark-yellow", \
                          2 "red",        3 "dark-red" )

95.66.3 Functions

γƤ R(gray), G(gray), B(gray) 3 ĤδؿͿˤ set palette functions < Rexpr> , < Gexpr> , < Bexpr> ȤäƤ 3 Ĥδؿѿϡ[0,1] ͤѿ gray Ǥꡢ ͤ [0,1] ˼ɬפޤ < Rexpr> ϡHSV ֤򤵤ƤϡH ͤɽǤʤ ʤȤդƤ (¾μޤ¾ο֤ǤƱͤǤ)

:

ե륫顼ѥåȤˤ:

     set palette model HSV functions gray, 1, 1

⿧ؤɤѥå:

     set palette model XYZ functions gray**0.35, gray**0.5, gray**0.8

Υѥå:

     gamma = 2.2
     color(gray) = gray**(1./gamma)
     set palette model RGB functions color(gray), color(gray), color(gray)

95.66.4 Gray

set palette gray ϡ0.0 = 1.0 = ؤγĴ (쥤 ) ѥåȤڤؤޤĴѥåȤ顢ľΥ顼ѥå ˤޤ᤹ˤϡset palette color ȤΤñǤ

95.66.5 Cubehelix

ץ "cubehelix" Ϥѥå²ޤϡ Ĵͤ 0 1 äΤȼʤ̣θ٤ñĴäΤƱ ˡ (hue) ɸ࿧Ĥ˽äѲޤ
     D A Green (2011) http://arxiv.org/abs/1108.5083

start ϡĤ˱ä饸ñ̤Ƿꤷޤ cycles ϡѥåȤϰϤϤäƿĤ򲿲뤫ꤷޤ saturation () 礭ȡꤢ䤫ʿˤʤޤ1 礭 ٤ϡġ RGB ʬ򥯥åԥ󥰤뤳Ȥˤʤꡢ٤ñĴǤ ʤʤäƤޤޤset palette gamma ѥåȤ˱ƶͿޤ ǥեͤϰʲ̤Ǥ
     set palette cubehelix start 0.5 cycles -1.5 saturation 1
     set palette gamma 1.5

95.66.6 File

set palette file ϴŪ set palette defined (< gradient> ) Ʊ ǡ < gradient> ǡե뤫ɤ߹ޤޤ4 (gray, R,G,B) ޤ 3 (R,G,B) Υǡ using ǡե뽤Ҥ ä򤵤ɬפޤ3 ξ硢ֹ椬 gray ͤȤƻ ޤ gray ϰϤϼưŪ [0,1] ˥Ѵޤ ե̾ΥǡեȤɤޤΤǡƤΥǡե ҤȤޤ 㤨 HSV ֤򤵤ƤˤϡR ϼºݤˤ H ؤ ȤդƤ

ˤäơ< filename> '-' ξϡǡ饤ǰ ³Ϳ졢Ĥ e ΤߤιԤǤ줬λ뤳Ȥ̣ޤ

(gradient) ɽˤ show palette gradient ѤƤ

:

RGB ΥѥåȤ [0,255] ϰϤɤ߹:

     set palette file 'some-palette' using ($1/255):($2/255):($3/255)

Υ (---) ѥå:

     set palette model RGB file "-"
     0 0 1
     0 1 0
     1 1 0
     1 0 0
     e

ХʥѥåȥեƱͤ˥ݡȤƤޤʲ:binary general (84.2.1)R,G,B double Υǡ 64 Ĥ 3 Ȥե palette.bin ˽Ϥɤ߹:

     set palette file "palette.bin" binary record=64 using 1:2:3

95.66.7 (gamma correction)

ۿФ륬 set palette gamma < gamma> ON ˤ ޤ< gamma> ΥǥեȤ 1.5 ǡ¿νϷŬڤ Ǥ

ϡcubehelix 顼ѥåȷˤŬѤޤ¾ο ˤŬѤޤ󡣤Ūʿؿ˥Τ 񤷤ޤ

:

     set palette model RGB
     set palette functions gray**0.64, gray**0.67, gray**0.70

֤줿ۤȤäƥԤˤϡŬʥ顼֤ͤ ꤷޤ


     set palette defined ( 0 0 0 0, 1 1 1 1 )

㤨аʲꤷƤ:


     set palette defined ( 0 0 0 0, 0.5 .73 .73 .73, 1 1 1 1 )

ޤϡ֤ "" ֤˽ʬɤŬ礹ޤǤɤ ֤õƤ

95.66.8 Postscript

postscript եΥ򾮤Ūǡε͡ ƤǤϤʤĤη׻줿 RGB εͤΥե˽񤫤 ʬؿ postscript ľܥɲ졢pm3d ľ إåȤƤޤ/g /cF 򻲾ȤƤ̾綠 򤽤˽񤯤Ȥϡ3 ĤμΤߤȤ˰̣ޤ multiplot 䤽¾ͳ postscript եΤѴؿ ľܼԽȻפΤޤ󡣤줬ǥեȤΥץ nops_allcF Ǥץ ps_allcF ȤȡƤθ postscript ե˽񤫤ޤĤΥǡۤʤ̤˰ۤ ѥåȤȤŪ postscript եԽ ˡΥץ˴ؿĤǤ礦εǽϡorigin sizemultiplot ȤȤǼ¸ǤǤ礦

pm3d ̤ PostScript եؽ񤤤Ƥ硢gnuplot ° awk ץ pm3dCompress.awk ȤȤǡΥե륵 50% ޤǾǤ뤫⤷ޤ󡣥ǡͳѷγʻҾˤʤäƤ ϡץ pm3dConvertToImage.awk ȤȤǤ礭ʰ Ψǽޤ ˡ:

   awk -f pm3dCompress.awk thefile.ps >smallerfile.ps
   awk -f pm3dConvertToImage.awk thefile.ps >smallerfile.ps

95.67 Pointinterval Ȣ (pointintervalbox)

° pointintervallinespoints ǻȤޤ pointinterval ͡㤨 -N Ȥȡε N ˽񤭡 ƳεθȢ (ºݤˤϱ) ʬطʿɤĤ֤ƾ ޤޥ set pointintervalbox Ϥξäΰ礭 (Ⱦ) 椷ޤϥǥեȤȾ (= pointsize) ФΨǤ

95.68 (pointsize)

ޥ set pointsize ǻȤ礭ѹޤ

:

     set pointsize <multiplier>
     show pointsize

ǥեȤ 1.0 ܤǤǡϤǤϡ礭ݥȥ 䤹Ǥ礦

ĤФݥȥ plot ޥɤξǤѹǤޤ ܺ٤ϡʲ: plot with (84.12)

ݥȥϡɬƤνϷǥݡȤƤ櫓 ǤϤʤȤդƤ

95.69 ˺ɸ⡼ (polar)

ޥ set polar ϥդˡ xy ľɸϤ˺ɸϤ ѹޤ

:

     set polar
     unset polar
     show polar

˺ɸ⡼ɤǤϡѿ (t) ϳ٤ɽޤt ΥǥեȤϰϤ [0:2*pi] Ǥñ̤Ȥ٤򤵤Ƥ [0:360] Ȥʤޤ (ʲ: set angles (95.1))

ޥ unset polar ˡǥեȤ xy ľɸϤᤷ

set polar ޥɤ splot ǤϥݡȤƤޤsplot ФƱͤεǽ˴ؤƤϡʲ: set mapping (95.45)

˺ɸ⡼ɤǤ t οΰ̣ r=f(t) Ȥʤꡢt ϲžѤȤʤޤ trange ϴؿ () 椷rrange, xrange, yrange Ϥ줾 쥰դ x,y ϰϤ椹뤳ȤˤʤޤϰϤ rrange ϼưŪꤵ뤫ޤŪǤޤܺ٤˴ؤ Ƥϡʲ: set rrange (95.74), set xrange (95.107)

:

     set polar
     plot t*sin(t)
     set trange [-2*pi:2*pi]
     set rrange [0:3]
     plot t*sin(t)

ǽ plot ϥǥեȤγ٤ϰϤ 0 2*pi Ȥޤư ȥդΥϼưŪ˿̤ޤ2 ܤ plot ϳ٤ ĥդΥ 3 ¤ޤ x,y Τ줾 [-3:3] ¤뤳Ȥˤʤޤ

set size square Ȥ gnuplot ϥڥ (IJ) 1 ΤDZߤ (ʱߤǤʤ) ߤ˸褦ˤʤޤ ʲ⻲

˺ɸΥǥ (polar.dem)

˺ɸǡ (poldat.dem)

95.70 Print ޥɤν (print)

ޥ set print print ޥɤνϤե˥쥯 ޤ

:

     set print
     set print "-"
     set print "<filename>" [append]
     set print "|<shell_command>"
     set print $datablock [append]

ѥ᡼ʤ set print ϡϤ < STDERR> ޤ"-" Ȥ < filename> < STDOUT> ̣ޤappend ե饰ϥե ɲ (append) ⡼ɤdzȤ̣ޤѥפ򥵥ݡȤץ åȥۡǤϡ< filename> "| " ǻϤޤäƤ顢< shell_command> ؤΥѥפޤ

ޥ print оݤ̾դǡ֥åǤ⹽ޤ󡣥ǡ ֥å̾ '$' ǻϤޤޤʲ: inline data (19)

95.71 PostScript եѥ (psdir)

ޥ set psdir < directory> ϡpostscript Ϸ prologue.ps ʸ󥳡ѤΥեõΤ˻Ѥ븡ѥ椷ޤ λȤߤϡ̤˥˥ޥ prolog ե뷲ڤؤ Τ˻Ȥޤν֤ϰʲΤ褦ˤʤäƤޤ
     1) `set psdir` ꤷϤΥǥ쥯ȥ
     2) Ķѿ GNUPLOT_PS_DIR ǻꤷǥ쥯ȥ
     3) Ȥ߹ޤ줿إåޤϥǥեȤΥƥǥ쥯ȥ
     4) `set loadpath` ǻꤷǥ쥯ȥ

95.72 ˺ɸư¼ (raxis)

ޥ set raxis unset raxis ϡư¼ʻ x ʬ Υ褹뤫ɤڤؤޤߤ rrange κǾͤ 0 Ǥ (Ƽư̼ܤǤʤ) 硢դȼãʤȤ򼨤 ݤ˺ɸդ濴ޤϡդζƱ 褵ޤʲ: polar (95.69), rrange (95.74), rtics (95.75), set grid (95.30)

95.73 Rmargin

ޥ set rmargin ϱ;Υ򥻥åȤޤ ܺ٤ϡʲ: set margin (95.46)

95.74 Rrange

ޥ set rrange ϶˺ɸ⡼ɤΥդưϰϤꤷ xrange yrange ξꤷƤޤޤξԤϡ [-(rmax-rmin) : +(rmax-rmin)] ˤʤޤθ xrange yrange ѹƤ (㤨г礹뤿) rrange ѹʤ Τǡǡ rrange ˴ؤƥåԥ󥰤줿ޤޤȤʤޤrmin ˴ؤ뼫ư̼ܤϾ rmin = 0 Ȥʤޤ : rmin ͤꤹȡͽ̷̤ǽޤ

95.75 Rtics

ޥ set rtics ϡư¼˱ä֤ޤϡ ɸ⡼ɤǤΤɽޤȤθФϸα¦  mirror ϡκ¦ˤޤ¾Υ ɤ˴ؤäˤĤƤϰʲ: polar (95.69), set xtics (95.108),set mxtics (95.53)

95.76 ץ (samples)

ؿޤϥǡ֤˴ؤǥեȤΥץ󥰿ϡޥ set samples ѹǤޤġΥդϰ (sampling range) ѹϡʲ: plot sampling (84.9)

:

     set samples <samples_1> {,<samples_2>}
     show samples

ǥեȤǤϥץ 100 ꤵƤޤͤ䤹 Τ褬ޤ٤ʤޤΥѥ᡼ϥǡե ˤϲαƶͿޤ󤬡/Υץ󤬻ȤƤ Ϥθ¤ǤϤޤ2 ˤĤƤ plot smooth 3 ˴ؤƤϡʲ: set dgrid3d (95.21)

2 Υ褬ԤʤȤ < samples_1> ͤΤߤطޤ

ʤǶ褬ԤʤȤϡsamples ͤϸΩɾ 륵ץλˤʤޤ v-Ω < samples_1> ĤΥ u-Ω < samples_2> ĤΥץޤ< samples_1> Τ߻ꤹȡ< samples_2> ͤ < samples_1> Ʊͤꤵޤ ʲ⻲: set isosamples (95.34)

95.77 ΰ襵 (size)

:
     set size {{no}square | ratio <r> | noratio} {<xscale>,<yscale>}
     show size

< xscale> < yscale> ΤγΨǡΤȤϥդȥ ٥;ʬޤߤޤ

פ:

     gnuplot ΰǤǤϡ`set size` ͤ򡢽Ϥΰ
     (Х) Υ椹ΤˤȤäƤϷ⤢
     ٤ƤνϷä櫓ǤϤޤǤ
     ߤϡۤȤɤνϷʲΥ롼˽ޤ:

set term < terminal_type> size < XX> , < YY> ϡϥեΥ ޤ "Х" Υ椷ޤѥ᡼ͭͤ ĤƤϡġνϷΥإפ򻲾ȤƤǥեȤǤϡ դϤΥХΤ褵ޤ

set size < XX> , < YY> ϡ輫Τ򥭥ХΥФŪ ̤ޤ1 꾮ͤꤹȡդϥХΤ ᤺1 礭ͤꤹȡդΰʬΤߤХ Τ˹礦褦褵ޤ1 礭ͤꤹȡ Ǥ꤬뤫⤷ʤȤդƤ

ratio ϡꤷ < xscale> , < yscale> ϰǡդΥ (IJ) < r> ˤޤ (< r> x ĹФ y Ĺ)

< r> ͤˤȤΰ̣ϰäޤ< r> =-1 ΤȤx y ñ (Ĥޤ 1) ĹƱˤʤ褦ꤵޤ set view equal xy ƱǤʲ: set view equal (95.94.2) < r> =-2 ΤȤy ñĹ x ñĹ 2 ꤵޤ< r> ͤ˴ؤưʲƱͤǤ

gnuplot ꤵ줿ڥΥդȽ񤱤뤫򤵤 Ϸ˰¸ޤդΰϽϤλꤵ줿ʬˤȼ ޤꡢڥ椬 < r> Ǥ褦ʺĹȤʤޤ ( Ŭ;Ĥޤ)

set size square set size ratio 1 Ʊ̣Ǥ

noratio nosquare Ϥ⥰դ򤽤νϷ (terminal) Ǥ ǥեȤΥڥᤷޤ< xscale> < yscale> ϤΥǥ Ȥ (1.0) ˤᤷޤ

ratio square 3 Ǥϰ̣ޤ󤬡set view map Ѥ 3 2 ͱƤˤϱƶͿޤ ʲ⻲:set view equal (95.94.2)ϡ3 x y ŪƱ ޤ

:

դߤΥХ褦礭ꤷޤ:

     set size 1,1

դ̾Ⱦʬ礭ˤޤ:

     set size square 0.5,0.5

դι⤵ 2 ܤˤޤ:

     set size ratio 2

95.78 襹 (style)

ǥեȤ襹ϡset style data set style function ǤޤؿǡΥǥեȤ襹ġѹ ˡˤĤƤϡʲ: plot with (84.12)ΰΤϡʲ: plotting styles (II), plot with (84.12)

:

     set style function <style>
     set style data <style>
     show style function
     show style data

ǤǤΥǥեȥǤޤ

:

     set style arrow <n> <arrowstyle>
     set style boxplot <boxplot style options>
     set style circle radius <size> {clip|noclip}
     set style ellipse size <size> units {xy|xx|yy} {clip|noclip}
     set style fill <fillstyle>
     set style histogram <histogram style options>
     set style line <n> <linestyle>
     set style rectangle <object options> <linestyle> <fillstyle>
     set style textbox {opaque|transparent} {{no}border} {fillcolor}

95.78.1 (set style arrow)

ƽϷηΥǥեȤνäƤơϥޥ test ǻȤǤޤset style arrow ηη ǻȤȤˤƱ򷫤֤ƻꤷʤ Ƥ⥤ǥåǻȤǤ褦ˤޤ

:

     set style arrow <index> default
     set style arrow <index> {nohead | head | heads}
                             {size <length>,<angle>{,<backangle>} {fixed}}
                             {filled | empty | nofilled | noborder}
                             {front | back}
                             { {linestyle | ls <line_style>}
                               | {linetype | lt <line_type>}
                                 {linewidth | lw <line_width}
                                 {linecolor | lc <colorspec>}
                                 {dashtype | dt <dashtype>} }
     unset style arrow
     show style arrow

< index> ǡΥ (arrowstyle) ꤷޤ

default ꤹȡƤ arrow ѥ᡼ϤΥǥե Ȥͤˤʤޤ

< index> arrowstyle ¸ߤ硢¾Ƥ¸줿ޤޡͿ 줿ѥ᡼Τߤѹޤ< index> ¸ߤʤСꤵ ʤäͤϥǥեȤͤˤʤޤ

nohead ꤹ뤳ȤǡΤʤ𡢤ʤʬ񤯤ȤǤ ޤξʬ̤ˡͿޤǥեȤǤ 1 Ĥ褬ĤƤޤheads λʬξü褬ޤ

size < length> ,< angle> ޤ size < length> ,< angle> ,< backangle> Ǥޤ< length> γƻޤĹǡ< angle> λޤ𼴤ʤ (ñ̤) Ǥ < length> ñ̤ x ƱǤ < length> first, second, graph, screen, character Ĥ뤳ȤѹǤޤ ܺ٤ϡʲ: coordinates (12)

ǥեȤǤϡȤƤûϾޤϡsize ޥɤθ fixed ȤȤ̵ˤǤޤ

< backangle> ϡθʬ𼴤Ȥڤ (< angle> Ʊ ñ̤) ˤʤޤ뤬 nofilled ξϤ̵뤷 ޤ

filled ꤹȡβ () ɤĤ ޤnoborder ꤹȡɤĤ֤ޤ ޤ󡣤ξ硢ü٥ȥνԥåξ֤졢 ΤȤƾʤޤϡζ ϱΤǡ noborder Ȥ٤ǤɤĤ֤ϡ ƤνϷݡȤƤȤϸ¤ޤ

ϥ桼饤󥹥ΥꥹȤ֤ȤǤޤ (ʲ: set style line (95.78.7))ѰդƤ < line_type> (ǥ ȤΥ饤󥹥ΥꥹȤֹ) < linewidth> (ǥե ܿ) ȤäƤ뤳ȤǤޤ

桼ѤΥ饤󥹥뤬򤵤줿硢° ( ) ϡñ¾ set style arrow ޥɤŬֹ lt, lw ʤɤꤷƤ⡢ѹϤǤʤȤդƲ

front ꤹȡϥդΥǡξޤback ꤵ줿 (ǥե) ϥդΥǡβޤfront ȤС̩ǡ𤬸ʤʤ뤳ȤɤȤǤޤ

:

褬ʤܤˤ:

     set style arrow 1 nohead lw 2
     set arrow arrowstyle 1

¾ˤĤƤϡʲ: set arrow (95.2)

95.78.2 Boxplot (boxplot)

ޥ set style boxplot ˤꡢ襹 boxplot Υ쥤ȤѹǤޤ

:

     set style boxplot {range <r> | fraction <f>}
                       {{no}outliers} {pointtype <p>}
                       {candlesticks | financebars}
                       {separation <x>}
                       {labels off | auto | x | x2}
                       {sorted | unsorted}

boxplot Ȣϡ˥ǡʬ̤軰ʬ̤ͤϰϤˤ äƤޤȢĹȢҤθ³ϡ2 ĤΰۤʤˡǤ ޤǥեȤǤϡȢҤϡȢΤ줾ü顢ʬϰϤ 1.5 (ʤȢθ̩ʿľι⤵) ϰϤˤޤDZĹ ޤȢҤ줾ϡǡΤ° y ͤǽλ 褦ˡ᥸˸äڤΤƤޤʬϰϤ 1.5 ͤʤ⤢ޤ顢ȢҤϤܾ̾ϰϤû ⤢ޤΥǥեȤϰʲбޤ

     set style boxplot range 1.5

⤦ĤˡȤơȢҤγ (fraction) ꤹ 뤳ȤǤޤξ硢ϰϤϥ᥸ͤ顢ǡλ ʬϤޤǡоΤ˱ĹޤΤȤ⡢ġȢҤϥ üޤǤ¤ޤǡ 95% Ϥˤ ʲΤ褦ˤޤ

     set style boxplot fraction 0.95

ȢҤϰϤγˤǤդϡoutliers ȸʤޤǥե ǤϤϤҤȤĤҤȤı (pointtype 7) ޤץ nooutliers Ϥ̵ˤޤ

ǥեȤǤ boxplot candlesticks Ȼ褷ޤ financebars Ȼ褹뤿Υץ⤢ޤ

boxplot using ꤬ 4 ܤľ硢ͤϤѿΥ Ūʥ٥ͤǤȸʤޤξ硢ΰѿΥ٥ο Ʊʣ boxplot ޤ boxplot ٤礦 ƱΤεΥϥǥեȤǤ 1.0 (x ñ̤) Ǥδֳ֤ϥץ separation ѹǤޤ

ץ labels ϡ boxplot (줾ǡΤʬ б) ΤɤˡɤΤ褦˥٥Ĥ뤫ꤷޤǥե ȤǤϰҤͤʿ (x x2 Τ줫 plot ǻȤƤ) ٥˽Ϥޤϥץ labels auto бޤ ץ labels x, labels x2 ˤäơŪ x x2 ˤ 줾Ϥ뤳ȤǤޤlabels off ǥդˤ뤳ȤǤ ޤ

ǥեȤǤϡѿΰۤʤ٥б boxplot 󲽤Ϥ ǡեˤΥ٥뤬֤褷ޤεưϥ unsorted бޤץ sorted Ѥȡ ޤ٥򼭽˥Ȥν boxplot 褷ޤ

ץ separation, labels, sorted, unsorted ϡplot 4 ܤλͿΤ߸Ϥޤ

ʲ: boxplot (33), candlesticks (35), financebars (40)

95.78.3 ǡ襹 (set style data)

ޥ set style data ϥǡФǥեȤ襹 ѹޤ

:

     set style data <plotting-style>
     show style data

ܤˤĤƤϡʲ: plotting styles (II)show style data ߤΥǥեȤΥǡ襹ɽޤ

95.78.4 ɤ٤ (set style fill)

ޥ set style fill ϡboxes, histograms, candlesticks, filledcurves ǤˤǤΥǥեȤΥ˻ ޤΥǥեȤϡġɤ٤ (fillstyle) ꤹ뤳ȤǾ񤭤Ǥޤʲ: set style rectangle (95.78.9)

:

     set style fill {empty
                     | {transparent} solid {<density>}
                     | {transparent} pattern {<n>}}
                    {border {lt} {lc <colorspec>} | noborder}

ǥեȤɤĤ֤ (fillstyle) empty Ǥ

ץ solid ϡϷݡȤƤ硢οǤΥ٥ ɤԤޤѥ᡼ < density> ɤĤ֤ζɽƤ < density> 0.0 ʤȢ϶< density> 1.0 ʤȢϤϸߤ ȴƱɤޤϷˤäƤϡζϢ³Ū ѲΤ⤢ޤ¾ΤΤϡʬŪɤĤ֤δ ĤΥ٥Ƥ˲᤮ޤ󡣥ѥ᡼ < density> Ϳ ʤäϥǥեȤ 1 ˤʤޤ

ץ pattern ϡϥɥ饤ФˤäͿѥǤ Ĥ֤ԤޤѤǤɤĤ֤ѥμȿϽϥɥ饤 Ф˰¸ޤɤĤ֤ boxes ʣΥǡ褹 礽ΥѥϡʣζˤμƱͭ͡ ѥ򡢥ѥ < n> ϤƼŪѤޤ

ץ empty ϡȢɤĤ֤ޤ󤬡줬ǥեȤǤ

95.78.4.1 Set style fill border

border ϡɤ٤֥Ȥ򸽺ߤȿμǰ 褦ˤޤοϡlinetype linecolor ɲûꤹ Ǥޤnoborder ϡʤ褦ˤޤ :
    # ɤ٤϶ȾʬƱ
    set style fill solid 0.5 border
    # ɤ٤ȾʬƩᡢϼι ( -1)
    set style fill transparent solid 0.5 border -1
    # ߤοǤΥѥɤ٤ 5 ο
    plot ... with boxes fillstyle pattern 2 border lt 5
    # 忧 (cyan) Ǥΰɤ٤
    plot ... with boxes fillcolor "cyan" fs solid border linecolor "blue"

: fill border () °ϡǥեȥ⡼ɤ closed (Ķ) with filledcurves ΥդˤƶͿޤ

95.78.4.2 Ʃ (set style fill transparent)

ĤνϷϡɤĤ֤ΰ transparent (Ʃ) ° ݡȤƤޤtransparent solid ΰɤĤ֤Ǥϡdensity (̩) ѥ᡼ϥեͤȤƻѤޤĤޤꡢ̩ 0 ϴ Ʃ̩ 1 ϴƩ̣ޤtransparent pattern Ĥ֤ǤϡѥطʤƩƩΤ줫Ǥ

Ϸ solid pattern pm3d
gif no yes no
jpeg yes no yes
pdf yes yes yes
png TrueColor index yes
post no yes no
svg yes no yes
win yes yes yes
wxt yes yes yes
x11 no yes no

ƩɤĤ֤ΰޤ॰դ򸫤äꤹΤˤϡ̤¤ ꤦ뤳ȤդƤ㤨Сpng ϷǤϡ"truecolor" ץ󤬻ꤵƤˤΤƩɤ٤ѤǤޤ PDF եˤƩΰ褬ҤƤƤ⡢PDF ɽեȤ äƤϤɽǤʤȤ⤢ꤨޤºݤ PostScript 󥿤ǤϤʤΤˡGhostscript/gv ǤϥѥɤĤ֤ΰ ɽǤޤ

95.78.5 ؿ襹 (set style function)

ޥ set style function ϴؿФǥեȤ襹 (lines, points, filledcurves ʤ) ѹޤʲ:plotting styles (II)

:

     set style function <plotting-style>
     show style function

95.78.6 Set style increment

: Υޥɤ侩Ǥ˿ޥ set linetype ѤƤϡѤΤΰŪŬ򸡺 ǤϤʤKΤޤʲ: set linetype (95.38)

:

     set style increment {default|userstyles}
     show style increment

ǥեȤǤϡƱվμϡߤνϷǥǥեȤ ƤμΤΤǹԤޤ set style increment user 򤹤ȡǥեȤǤ ʤ桼饤󥹥ֹΤΤѤ뤳ȤǤޤ

:


     set style line 1 lw 2 lc rgb "gold"
     set style line 2 lw 2 lc rgb "purple"
     set style line 4 lw 1 lc rgb "sea-green"
     set style increment user


     plot f1(x), f2(x), f3(x), f4(x)

ϡؿ f1, f2, f4 Ͽ˥桼줿饤󥹥褵 ޤ桼饤󥹥뤬Ĥʤϡˤ ǥեȤ郎Ѥޤ㤨СǤϡf3(x) ϥǥ Ȥ 3 褵ޤ

95.78.7 (set style line)

֤ˤϤΤΥǥեȤν礬ꡢϥޥ test Ǹ뤳ȤǤޤset style line 礭򡢸ġθƤӽФǡξꤹˡñ ʤֹǻȤǤ褦ˤ餫ΤǤ

:

     set style line <index> default
     set style line <index> {{linetype  | lt} <line_type> | <colorspec>}
                            {{linecolor | lc} <colorspec>}
                            {{linewidth | lw} <line_width>}
                            {{pointtype | pt} <point_type>}
                            {{pointsize | ps} <point_size>}
                            {{pointinterval | pi} <interval>}
                            {{dashtype | dt} <dashtype>}
                            {palette}
     unset style line
     show style line

default ϡƤΥ饤󥹥ѥ᡼򤽤Ʊ index (linetype) ꤷޤ

< index> linestyle ¸ߤ硢¾Ƥ¸줿ޤޡͿ 줿ѥ᡼Τߤѹޤ< index> ¸ߤʤСꤵ ʤäͤϥǥեȤͤˤʤޤ

Τ褦ˤĤ饤󥹥ϡǥեȤη (, ) ̤ʤΤ֤뤳ȤϤʤΤǡ饤󥹥롢ǥեȤη ɤȤޤ饤󥹥ϰŪʤΤǡޥ reset ¹ԤФĤǤ⤽ϾäޤKΤϡ ʲ: set linetype (95.38)

ϡ index ͤǥեȤȤޤ index ͤФ ºݤεηϡϷˤäưۤʤޤ

礭ϡߤνϷΥǥեȤ礭Ф Ǥ (Ǥ < point_size> ϡޥ set pointsize Ϳ ˤϱƶʤȤդƤ)

pointinterval ϡ linespoints ǥδ ֤椷ޤǥեȤ 0 Ǥ (٤Ƥ褵)㤨С set style line N pi 3 ϡ郎 N礭ϸߤνϷ ΥǥեȤǡwith linespoints ǤǤ 3 褵 褦ʥ饤󥹥ޤδֳ֤ͤˤȡϴ ֤ͤξƱǤεβˤʤ񤫤ʤ褦ˤ (ϷˤäƤ)

Ƥν֤ linewidth pointsize 򥵥ݡȤƤ櫓Ǥ ޤ󡣤⤷ݡȤƤʤϤΥץ̵뤵 ޤ

Ϸ˰¸ʤ linecolor < colorspec> linetype < colorspec> lc, lt) Τ줫ȤäƳƤ뤳ȤǤޤ 硢 RGB 3 ȤͿ뤫gnuplot λĥѥåȤο̾ ΥѥåȤФ뾮ꡢޤ cbrange ؤθߤΥѥåȤб Ф͡Τ줫Ϳޤʲ: colors (21), colorspec (21.1),set palette (95.66), colornames (95.15), cbrange (95.138)

set style line < n> linetype < lt> ϡϷ˰¸/Υ ȿξ򥻥åȤޤset style line < n> linecolor < colorspec> set style line < n> linetype < colorspec> ϡߤ/Υѥ ѹ˿ꤷޤ

3 ⡼(splot ޥ) Ǥϡ"linetype palette z" ξάȤ ̤˥ palette ȤȤƤޤοͤϡ splot z ɸ (⤵) б뤤϶̤˱äƳ餫 ޤ

: ʲǤϡֹ 1, 2, 3 ФǥեȤ򤽤줾֡СĤȤǥեȤη򤽤줾ѷǤȤޤΤȤ ʲΥޥ


     set style line 1 lt 2 lw 2 pt 3 ps 0.5

ϡ饤󥹥ȤơФǥǥեȤ 2 ܤ ѷȾʬޤޤʲΥޥ


     set style function lines
     plot f(x) lt 3, g(x) ls 1

ϡf(x) ϥǥեȤǡg(x) ϥ桼Ф褷 Ʊͤˡޥ


     set style function linespoints
     plot p(x) lt 1 pt 3, q(x) ls 1

ϡp(x) ֤ǷФ줿ǥեȤλѷǡq(x) ФǷФ ѷ褷ޤ


     splot sin(sqrt(x*x+y*y))/sqrt(x*x+y*y) w l pal

ϡpalette ˽äƳ餫ʿȤäƶ̤褷ޤϤ ݡȤϷǤȤưʤȤդƤ ʲ⻲: set palette (95.66), set pm3d (95.65)


     set style line 10 linetype 1 linecolor rgb "cyan"

ϡRGB 顼򥵥ݡȤ뤹٤ƤνϷǡ饤󥹥 10 ˼ ο忧Ƥޤ

95.78.8 ߥ (set style circle)

:

     set style circle {radius {graph|screen} <R>}
                      {{no}wedge}
                      {clip|noclip}

Υޥɤϡ襹 "with circles" ǻȤǥեȤȾ ꤷޤϡǡ 2 Υǡ (x,y) Ϳʤä 硢뤤ϴؿΤȤŬѤޤǥեȤϡʲΤ褦ˤʤäƤޤ: "set style circle radius graph 0.02"nowedge ϡ α߸ʬ濴˸ 2 ܤȾ¤ʤ褦ˤޤǥե Ȥ wedge ǤΥѥ᡼ϴʱߤФƤϲ⤷ޤ clip ϱߤ趭ǥåԥ󥰤ޤnoclip Ϥ̵ˤ ޤǥեȤ clip Ǥ

95.78.9 Ĺ (set style rectangle)

ޥ set object 줿Ĺˤ̡ΥǤ ̤Υ򤷤ʤСΥ֥Ȥϥޥ set style rectangle ˤǥեȤѤޤ

:

   set style rectangle {front|back} {lw|linewidth <lw>}
                       {fillcolor <colorspec>} {fs <fillstyle>}

ʲ: colorspec (21.1), fillstyle (95.78.4)fillcolor fc ȾάǤޤ

:

   set style rectangle back fc rgb "white" fs solid 1.0 border lt -1
   set style rectangle fc linsestyle 3 fs pattern 2 noborder

ǥեȤϡطʿǤɤ٤ǡϹˤʤäƤޤ

95.78.10 ʱߥ (set style ellipse)

:

     set style ellipse {units xx|xy|yy}
                       {size {graph|screen} <a>, {{graph|screen} <b>}}
                       {angle <angle>}
                       {clip|noclip}

Υޥɤϡʱߤľ¤Ʊñ̤Ƿ׻뤫ɤ椷ޤ ǥեȤ xy ǡʱߤμ缴 ( 1 ) ľ¤ x (ޤ x2) Ʊñ̤Ƿ׻ ( 2 ) ľ¤ y (ޤ y2) ñ̤ ׻ޤΥ⡼ɤǤϡʱߤξϡ輴Υڥ˰ ¸ޤxx yy ꤹС٤ƤʱߤξƱñ̤Ƿ ޤϡ褵ʱߤξϡžƤޤޤ ʿľΰν̼ܤѹˤʤʤ뤳Ȥ ̣ޤ

ϡobject Ȥ줿ʱߡޥ plot ˤä褵 ʱߤξ˱ƶͿŪǤunits ͤϡ衢 ֥Ǥޤ

ʱߤΥǥեȤΥ⡢ size Ǥޤǥե ȤΥϡ2 ΤߤΥǡޤϴؿ plot ̿ŬѤޤ 2 Ĥͤϡʱߤ (2 Ĥμ缴2 Ĥ˸礦) 缴ľ¤ ľ¤ȤƻѤޤ

ǥեȤϡ"set style ellipse size graph 0.05,0.03" Ǥ

ǸˤʤޤǥեȤθ򥭡 angle Ǥ ϡʱߤμ缴ȥդ x ȤʤѤǡñ̤٤Ϳ ɬפޤ

clip ʱߤ趭ǥåԥ󥰤ޤnoclip Ϥ̵ ޤǥեȤ clip Ǥ

ʱߤ object ˴ؤƤϰʲ⻲: set object ellipse (95.58.2)2 襹˴ؤƤϰʲ: ellipses (37)

95.78.11 ʸܥå (set style textbox)

: set style textbox {opaque| transparent}{{no}border {< bordercolor> }}

                       {fillcolor <color>}
                       {margins <xmargin>,<ymargin>}

Υޥɤϡ° boxed ˤ label ɽ椷ޤȢդʸ 򥵥ݡȤʤϷϤΥ̵뤷ޤ : ߤμϻŪǡͤѹ뤫⤷ޤ ĤνϷ (svg, latex) ǤμԴǤ ޤۤȤɤνϷϡžʸȢդǤޤ

95.79 (surface)

ޥ set surface 3 (splot) ˤΤߴطޤ

:

     set surface {implicit|explicit}
     unset surface
     show surface

unset surface ˤ splot ϡؿǡեФ ʤʤޤϼˡ̤ ΤߤͭѤǤξǤ set contour ޤ̾ޤ¾ΤΤ̾Τޤޤǡ Ĥδؿǡեζ̤Τߤ򥪥դˤˤϡsplot ޥɾ ǥ nosurface ꤷƤʻҤɽ unset surface; set contour base ȤȤǤ礦 ʲ⻲: set contour (95.16)

3 ǡȤ (ʻ) ǧȡgnuplot ϥǥեȤ ϳʻҶ̤׵ᤷƤΤȤơۤ with lines 襹 Ѥޤʲ: grid_data (97.2)ޥ set surface explicit εǽϥեʬΥ줿ǡ֥åǵҤ ΩΤߤ褷ޤξǤ⡢splot Ū with surface гʻҶ̤褵ޤ

95.80 ơ֥ǡ (table)

table ⡼ɤͭʾ硢plot splot ޥɤϡߤνϷ Фºݤؤ X Y {Z} R ͤʣ󤫤ʤ ɽΥƥȽϤԤʤޤʸ R ϡ 3 ΤΰĤ : ͭϰˤ "i"ϰϳξ "o"̤ (undefined) ξ "u" Ǥǡν񼰤ϡιߤν (ʲ: set format (95.27)) ˤäƷޤꡢϰĤζǶڤޤ ϡѤΤ¸ȤǤ ˡϡ֤줿ǡ¸ΤˤȤȤǤޤ (ʲ: set samples (95.76), set dgrid3d (95.21))

:

     set table {"outfile" | $datablock} {append}
     plot <whatever>
     unset table

θɽνϤϡե "outfile" ꤷƤФ˽ ФޤǤʤɸϤߤ set output ꤹ Τ˽Ϥޤoutfile ¸ߤϡappend ɤ ꤹɲýϡꤷʤФνϤ񤭤ޤ¾ˡɽ Ϥ̾դǡ֥å˥쥯Ȥ뤳ȤǤޤǡ å̾ '$' ǻϤޤޤʲ⻲: inline data (19)ߤνϷ ɸŪ᤹ˤϡunset table Ū˹Ԥʤɬפޤ

ϥǡΥ¸ν (ʿ경2 ϰϤΥå) 򤱤뤿ᡢ뤤ɽϤ䤹ˤϡ̾襹 "table" ɤȤȤǤޤ:


    set table
    plot <file> using 1:2:3:4:5:6:7:8:9:10 with table

95.81 Ϸ (terminal)

gnuplot Ͽ¿Υեå򥵥ݡȤƤޤޥ set terminal Ȥä gnuplot νϤоݤȤʤμ ե롢ޤϽ֤˥쥯Ȥˤ set output ȤäƤ

:

     set terminal {<terminal-type> | push | pop}
     show terminal

< terminal-type> ά gnuplot ѲǽʽϷΰ ɽޤ< terminal-type> λˤû̷Ȥޤ

set terminal set output ξȤ硢set terminal ǽ ˤǤϡOS ˤäƤϡ줬ɬפȤե饰 åȤϷ뤫Ǥ

ĤνϷϤɲåץޤ < term> Фľ set term < term> < options> ǻѤ줿 ץϵ졢θ set term < term> ꥻåȤ뤳 ȤϤޤ󡣤㤨аͭѤǤĤΰۤʤϷ ؤ硢Υץ򷫤֤ɬפϤޤ

ޥ set term push ϡߤνϷȤ set term pop ˤäޤǵƤޤ save term, load term ۤƱǤե륷ƥؤΥϹԤ鷺ä㤨Ф ϡ˥ץåȥۡ˰¸ʤǽϷŪ˻Ȥ ޤgnuplot εư塢ǥեȡޤ startup ե˽񤫤 ϷưŪ˵ (push) ޤäơŪ˽Ϸ 뤳ȤʤǤդΥץåȥۡǥǥեȤνϷ set term pop ˤä롢ȤưԤץȤ 򼺤鷺˽񤯤Ȥޤ

ܺ٤ϡʲ: complete list of terminals (106)

95.82 ϷؤΥץ (termoption)

ޥ set termoption ϡ߻ѤƤϷο񤤤򡢿 set terminal ޥɤȯԤʤѹ뤳Ȥǽˤޤ ޥɰĤФưĤΥץΤߤѹǤޤƤˡ ѹǤ륪ץϤ¿Ϥޤ󡣸߻Ѳǽʥץ ϰʲΤΤΤߤǤ


    set termoption {no}enhanced
    set termoption font "<fontname>{,<fontsize>}"
    set termoption fontscale <scale>
    set termoption {linewidth <lw>}{lw <lw>}

95.83 (tics)

ޥ set tics ϡƤμιߤȥ٥٤椷

unset tics Ǿäset tics ꤬Ĥޤ (ǥե )ġμϡȤ̤Υޥ set xtics, set ztics ʤɤȤäǤޤ

:

     set tics {axis | border} {{no}mirror}
              {in | out} {front | back}
              {{no}rotate {by <ang>}} {offset <offset> | nooffset}
              {left | right | center | autojustify}
              {format "formatstring"} {font "name{,<size>}"} {{no}enhanced}
              { textcolor <colorspec> }
     set tics scale {default | <major> {,<minor>}}
     unset tics
     show tics

ץϡġμ (x, y, z, x2, y2, cb) ˤŬѤǤޤ:

     set xtics rotate by -90
     unset cbtics

ιߤ°ϡ٤ƥդζ (ʲ: set border (95.6)) Ʊ ΤȤäޤ

tics back ޤ front ϡ2D (splot Բ) ˤΤ ٤Ƥμ 1 ŬѤޤϡǤŤʤä Ǥ̤˽Ф֤椷ޤ

axis border gnuplot (ι߼ȤȤθФ) 򡢤줾켴ˤĤΤˤĤΤؼޤˤ Ƥᤤ硢axis ѤȶɽƤ (ʲ:set border (95.6)) θФʸ򶭳γ˽ФƤޤǤ礦 缫ưŪʥ쥤ȥ르ꥺˤ;褯ʤΤȤ äƤޤޤ

mirror gnuplot ȿ¦ζƱ֤ˡФΤʤ Ϥ褦ؼޤnomirror ϡʤƤ̤Τ Ԥʤޤ

in out ιߤ¦¦ڤѤޤ

set tics scale ϡιߤ礭椷ޤǽ < major> ͤˤϡưŪ졢ޤ桼Ǥ (٥ 0) ꤷ2 ܤ < minor> ͤˤϡưŪ졢ޤ桼 Ǥ뾮 (٥ 1) ꤷޤ< major> ΥǥեȤ 1.0 ǡ< minor> ΥǥեȤ < major> /2 ǤͤɲäС 2, 3, ... 礭ˤʤޤset tics scale default ǥ եȤ礭ޤ

rotate ϡʸ 90 ٲžƽϤ褦Ȥޤϡʸ βž򥵥ݡȤƤϥɥ饤 (terminal) Ǥϼ¹Ԥޤ norotate Ϥ򥭥󥻥뤷ޤrotate by < ang> ϳ < ang> žԤʤޤϤĤνϷ (terminal) ǥݡȤ Ƥޤ

x y ΥǥեȤ border mirror norotate ǡx2, y2 border nomirror norotate ǥեȤǤz ΥǥեȤ nomirror Ǥ

< offset> x,y ޤ x,y,z ηǤ˺ɸϤ򤷤ơ first, second, graph, screen, character Τ줫 Ĥ뤳ȤǤޤ< offset> ϡθФʸΥǥե ΰ֤Τ餷֤ǡΥǥեȤñ̷Ϥ character Ǥ ܺ٤ϡʲ: coordinates (12)nooffset offset OFF ˤޤ

ǥեȤǤϸФ٥ϡ̤褦ˡȲžѤ˰¸ ֤˼ưŪ·ޤˤʤСŪ left, right, center Υɤˤ·ѹǤޤ autojustify ǥǥեȤεưޤ

ץʤ set tics ϡ 1 Ф (mirror) ¦ ιߤǥեȤεưޤ¾ƤΥץ ϡľͤݻޤ

(٥ΤĤ) ¾˴ؤƤϡʲ: set xtics (95.108) ˴ؤƤϡʲ: set mxtics (95.53)Υޥɤϡ ƼΩ󶡤ޤ

95.84 Ticslevel

ߤϿ侩Ƥޤ󡣰ʲ: set xyplane (95.109)

95.85 Ticscale

ޥ set ticscale ϸߤϿ侩Ƥޤ set tics scale ȤäƤ

95.86 ॹ (timestamp)

ޥ set timestamp ϸߤλդ򥰥դ;ɽޤ

:

     set timestamp {"<format>"} {top|bottom} {{no}rotate}
                   {offset <xoff>{,<yoff>}} {font "<fontspec>"}
                   {textcolor <colorspec>}
     unset timestamp
     show timestamp

ʸ (format) ϡ񤫤դȻν񼰤˻Ѥޤǥե Ȥ asctime() Ѥ "%a %b %d %H:%M:%S %Y" Ǥ (̾ ʬá4 )top bottom Ȥäơդ֤ 塢Τ;ˤ뤫Ǥޤ (ǥեȤϺ) rotate ϡդľ˽񤭽Фޤ < xoff> < yoff> Ϥ (offset) ̣ˤäƤŬڤʰַ᤬Ԥޤ< font> դ񤫤եȤꤷޤ

timestamp ˾ά̾ time ȤäƤ⹽ޤ

:

     set timestamp "%d/%m/%y %H:%M" offset 80,-2 font "Helvetica"

դνʸ˴ؤܤˤĤƤϡʲ: set timefmt (95.87)

95.87 ǡϽ (timefmt)

ΥޥɤϡǡηˤʤäƤˡλǡ ŬѤޤϥޥ set *data time ͿƤʤȰ ̣ޤ

:

     set timefmt "<format string>"
     show timefmt

ʸ (< format string> ) gnuplot ǡǡե ɤΤ褦ɤफؼޤͭʽ񼰤ϰʲ̤Ǥ:

ǡ񼰻
%d , 1-31
%m , 1-12
%y ǯ, 0-99
%Y ǯ, 4
%j 1 ǯβ, 1-365
%H , 0-24
%M ʬ, 0-60
%s Unix epoch (1970-01-01, 00:00 UTC) ÿ
%S (ϤǤ 0-60 ϤǤϼ¿)
%b ̾ (Ѹ) 3 ʸά
%B ̾ (Ѹ)

ǤդʸʸǻѤǤޤ§˽äƤɬפޤ \ t () ǧޤХåå + 8 ʿ ( \ nnn) Ϥ줬 ʸѴޤǤʬΥʸʤ硢%d, %m, %y, %H, %M, %S Ϥ줾 2 οɤ߹ߤޤ%S Ǥɤ߹ߤǾ ΥեɤˤĤƤϡξĤο򾮿û Ȳᤷޤ%Y 4 塢%j 3 οɤ߹ߤޤ%b 3 ʸ %B ɬפʬʸ׵ᤷޤ

(ڡ) ΰϤ㤤ޤʸ 1 Ĥζϡե 0 ġ뤤 1 İʾζʸɽޤʤ "%H %M" "1220" "12 20" "12 20" Ʊ褦ɤߤޤ

ǡʸνޤꤽ줾ϡusing n:n ΰİĤ ȥȤޤä 11:11 25/12/76 21.0 3 Υǡǧ ޤ򤱤뤿ˡǡޤޤ gnuplot ϡ ʤ using ꤬ʤΤǤȲꤷޤ

եǡ̾ޤǤ硢ʸǤӽʤФޤ󤬡"%a", "%A", "%b", "%B" Ǥɽ뤳ȤϤǤޤgnuplot Ͽͤޤ顢ڤ ǡνϤ¾Υץξܺ٤˴ؤƤϡʲ: set format (95.27)

2 %y ɤ硢69-99 2000 ǯ̤00-68 2000 ǯʸȸʤޤ: ϡUNIX98 λͤ˹碌ΤǤδ Ϥǰ㤤Τǡ2 ܼͤŪˤޤǤ

¾ξˤĤƤϡʲ⻲: set xdata (95.103), time/date (30)

:

     set timefmt "%d/%m/%Y\t%H:%M"

ϡgnuplot դȻ֤֤ʬΥƤ뤳Ȥ򶵤ޤ ( ʤΥǡ衼Ƥ֤äΤɤʣΥ ѴƤޤ ? ʸϥե˼ºݤˤʪȰפƤʤФʤޤ) ʲ⻲

ǡ (time data) ǥ⡣

95.88 եȥ (title)

ޥ set title ϡξο˽񤫤西ȥ ޤset title set label üʤΡȤߤʤޤ

:

     set title {"<title-text>"} {offset <offset>} {font "<font>{,<size>}"}
               {{textcolor | tc} {<colorspec> | default}} {{no}enhanced}
     show title

< offset> x,y ޤ x,y,z ηǻꤷϡȥͿ 줿ͤưޤ˺ɸϤ򤷤ơ first, second, graph, screen, character Τ줫Ĥ뤳ȤǤ ޤܺ٤ϡʲ: coordinates (12)ǥեȤǤ character ɸ ϤȤޤ㤨С"set title offset 0,-1" ϥȥ y ΰ֤Τѹ礶äѤ˸ä 1 ʸʬι⤵ȥ򲼤˲ ޤ1 ʸ礭ϡեȤȽϷξ˰¸ޤ

< font> ϥȥ뤬񤫤եȤꤹΤ˻Ȥޤ< size> ñ̤ϡɤνϷ (terminal) ȤäƤ뤫ˤäѤޤ

textcolor < colorspec> ϡʸοѹޤ< colorspec> ϡ rgb ޤϥѥåȤؤγΤ줫Ǥޤʲ:colorspec (21.1), palette (95.66)

noenhanced ϡĥʸ (enhanced text) ⡼ɤͭˤʤäƤ Ǥ⡢ȥĥʸʤ褦ˤޤ

set title ѥ᡼ʤǻȤȥȥõޤ

ХååʸκѡڤʸϤñŰ 㤤ˤĤƤϡʲ: syntax (29)

95.89 Tmargin

ޥ set tmargin Ͼ;Υ򥻥åȤޤܺ٤ϡʲ: set margin (95.46)

95.90 Trange

ޥ set trange ϡ޲ѿ⡼ɡ뤤϶˺ɸ⡼ɤǤ x,y ͤ׻Τ˻Ȥ޲ѿϰϤꤷޤܺ٤ϡʲ:set xrange (95.107)

95.91 Urange

set urange set vrange ϡsplot ޲ѿ⡼ɤ x,y,z ׻Τ˻Ȥ޲ѿϰϤꤷޤܺ٤ϡʲ:set xrange (95.107)

95.92 Variables

show variables ޥɤϥ桼ѿѿθߤͤΰ ɽޤgnuplot ϡGPVAL_, MOUSE_, FIT_, TERM_ ǻϤޤ̾ ѿƤޤ

:

     show variables      # GPVAL_ ǻϤޤΰʳѿɽ
     show variables all  # GPVAL_ ǻϤޤΤޤƤѿɽ
     show variables NAME # NAME ǻϤޤѿΤߤɽ

95.93 Version

ޥ show version ϸߵưƤ gnuplot ΥС󡢺ǽ ԤȡFAQ info-gnuplot ᡼󥰥ꥹȡХݡ Υ᡼륢ɥ쥹ɽޤŪ˥ץबƤФƤȤ ꡼ˤξɽޤ

:

     show version {long}

long ץͿȡ˥ڥ졼ƥ󥰥ƥࡢgnuplot 󥹥ȡΥѥ륪ץ󡢥إץե֤ꡢ (Ƥ) ͭѤʥ᡼륢ɥ쥹ɽޤ

95.94 (view)

ޥ set view splot λγ٤ꤷޤϡ 3 ɸɤΤ褦 2 β (screen) Ƥ뤫 椷ޤϡ褵줿ǡβžȽ̼ܤͿƤޤ ͱƤݡȤƤޤ3 ͱơ 2 ŪϿ޾ ؤ 2 ľͱƤݡȤƤޤ

:

     set view <rot_x>{,{<rot_z>}{,{<scale>}{,<scale_z>}}}
     set view map {scale <scale>}
     set view {no}equal {xy|xyz}
     set view azimuth <angle>
     show view

< rot_x> < rot_z> ϡ̤Ƥ벾Ū 3 ɸϤ ž (ñ̤) ǡǽ (ʤžԤʤ) οʿ x, οľ y, ̼Ȥ˿ľʼ z Ȥʤ Ƥޤǽ x μ < rot_x> žޤˡ z μ < rot_z> žޤ

ޥ set view map ϡդϿޤΤ褦ɽΤ˻Ȥޤ (contour) Υդ䡢pm3d ⡼ɤˤ 2 ʬ ʤɤ with image षͭѤǤԤǤϡϥǡΥե 륿Ѥ zrange ꡢӿϰϤν̼ܤ˴ؤ cbrange Ŭڤ˹ԤȤդƤ

< rot_x> [0:180] ϰϤ¤ƤơǥեȤǤ 60 ٤Ǥ < rot_z> [0:360] ϰϤ¤ƤơǥեȤǤ 30 ٤Ǥ < scale> splot ΤοΨ椷< scale_z> z ο̤Τߤ ԤʤޤΨΥǥեȤϤɤ 1.0 Ǥ

:

     set view 60, 30, 1, 1
     set view ,,0.5

ǽ 4 ĤƤǥեȤͤˤƤޤ2 ĤϽ̾Ψ Τߤ 0.5 ѹƤޤ

95.94.1 Azimuth


     set view azimuth <angle-in-degrees>

azimuth ϡ3 (splot) z θ˱ƶޤǥ Ȥ azimuth = 0 ǡդ z ϥ꡼οʿФƿ ľʿ̤˴ޤޤ롢ʤz 2 ͱƤ꡼αľ ʤޤ0 Ǥʤ azimuth ϻ볦˴ؤƲžz μͱƤϱ ľǤϤʤʤޤazimuth = 90 Ǥ z ϱľǤϤʤʿ ˤʤޤ

95.94.2 Equal_axes

ޥ set view equal xy x y ñ̤ĹŪ ʤ褦˽̼ܤ碌դڡٹ礦褦ˤν̼ܤ ޤޥ set view equal xyz ϡ z x y ˹ 褦ˤޤߤ z ϰϤ趭ϰϤ˹礦ݾڤϤ ޤ󡣥ǥեȤǤϡ3 ĤμΩͭΰ褦˿̤ ޤ

ʲ⻲: set xyplane (95.109)

95.95 Vrange

ޥ set urange set vrange ϡsplot ޲ѿ (ѥ᡼ ) ⡼ɤ x, y, z ͤ׻Τ˻Ȥ޲ѿϰϤꤷ ޤ ܺ٤ϡʲ: set xrange (95.107)

95.96 X2data

ޥ set x2data x2 () Υǡ () ޤܺ٤ϡʲ: set xdata (95.103)

95.97 X2dtics

ޥ set x2dtics x2 () ѹޤܺ٤ϡ ʲ: set xdtics (95.104)

95.98 X2label

ޥ set x2label x2 () θФꤷޤܺ٤ϡʲ: set xlabel (95.105)

95.99 X2mtics

ޥ set x2mtics ϡx2 () 1 ǯγƷꤷޤܺ٤ϡ ʲ: set xmtics (95.106)

95.100 X2range

ޥ set x2range x2 () ɽʿϰϤꤷޤ ޥɥץΤ٤ƤˤĤƤϡʲ: set xrange (95.107)ʲ⻲: set link (95.39)

95.101 X2tics

ޥ set x2tics x2 () ΡФդ Ԥʤޤܺ٤ϡʲ: set xtics (95.108)

95.102 X2zeroaxis

ޥ set x2zeroaxis ϡ̤ x2 () (y2 = 0) ܺ٤ϡʲ: set zeroaxis (95.131)

95.103 Υǡ (xdata)

Υޥɤ x Υǡβ椷ޤ¾μ줾ˤ ƱͤΥޥɤǽޤ

:

     set xdata time
     show xdata

ydata, zdata, x2data, y2data, cbdata ˤƱ񼰤ƤϤ ޤ

time ץϥǡñ̤ǡǤ뤳Ȥޤ ߤ gnuplot ϻߥä¸ޤ

ץʤξϡǡβˡ̾ηᤷޤ

95.103.1 ǡ (time)

set xdata time ϡx ɸߥ٤ǡǤ뤳Ȥ̣ ޤset ydata time ȤƱͤΥޥɤ⤢ޤ

ǡϤȽϤβˤϡ̡ν񼰵ޤե뤫 ϥǡϡΤѤ timefmt Ȥޤ plot timecolumn() ؿȤäɤ߹ߤޤϵϡ (range) ꤹȤ˻֤ͤѤݤˤŬѤޤʲ: set timefmt (95.87), timecolumn (16.1)

:


    set xdata time
    set timefmt "%d-%b-%Y"
    set xrange ["01-Jan-2013" : "31-Dec-2014"]
    plot DATA using 1:2

ޤ
    plot DATA using (timecolumn(1,"%d-%b-%Y")):2

ϡʤ˱äΥ٥䡢ޥǤκɸϤˤĤ ƤϡǥեȤǤϡäǤ狼ɽʸؤѴ ϡؿ 'strftime' (unix ǤĴ٤ˤ "man strftime" ȥפ Ƥ) Ȥޤgnuplot ϤŬ˰̣Τ񼰤ɽ 褦Ȥޤset format x set xtics format Τ줫Ȥ ƥޥ뤳ȤǤޤ ̤ʻֽ񼰻Ҥ˴ؤƤϡʲ: time_specifiers (95.27.3)¾ξ ˤĤƤϡʲ⻲: time/date (30)

95.104 (xdtics)

ޥ set xdtics x ιߤѴޤ (0=Sun, 6=Sat)6 ۤ 7 ˤ;꤬Ȥޤunset xdtics θФǥեȤηᤷޤ¾μˤƱȤԤʤƱ ͤΥޥɤѰդƤޤ

:

     set xdtics
     unset xdtics
     show xdtics

ydtics, zdtics, x2dtics, y2dtics, cbdtics ˤƱ񼰤 Ϥޤޤ

ʲ⻲: set format (95.27)

95.105 ٥ (xlabel)

ޥ set xlabel x θФꤷޤ¾μˤ⸫Ф ꤹƱͤΥޥɤޤ

:

     set xlabel {"<label>"} {offset <offset>} {font "<font>{,<size>}"}
                {textcolor <colorspec>} {{no}enhanced}
                {rotate by <degrees> | rotate parallel | norotate}
     show xlabel

Ʊ񼰤 x2label, ylabel, y2label, zlabel, cblabel ˤŬ Ѥޤ

< offset> x,y ޤ x,y,z ηǻꤷϡФͿ 줿ͤưޤ˺ɸϤ򤷤ơ first, second, graph, screen, character Τ줫Ĥ뤳ȤǤ ޤܺ٤ϡʲ: coordinates (12)ǥեȤǤ character ɸ ϤȤޤ㤨С"set xlabel offset -1,0" ϸФ x ֤Τѹ礶äѤ˸ä 1 ʸʬФ򺸤ˤ餷 1 ʸ礭ϡեȤȽϷξ˰¸ޤ

< font> ϸФ񤫤եȤꤹΤ˻ȤޤեȤ < size> (礭) ñ̤ϡɤʽϷȤ˰¸ޤ

noenhanced ϡĥʸ (enhanced text) ⡼ɤͭˤʤäƤ Ǥ⡢٥ʸĥʸʤ褦ˤޤ

ФõˤϡץĤ˼¹Ԥޤ: "set y2label"

θФΥǥեȤΰ֤ϰʲ̤Ǥ:

xlabel: x θФϥդβο

ylabel: y θФϥդκοǡʿ˽񤫤뤫ľ ˤʤ뤫ϽϷ¸

zlabel: z θФϼɽϰϤǡФο椬 z ο

cblabel: (color box) μθФȢ˱ä·졢Ȣ ʿʤ鲼ˡľʤ鱦

y2label: y2 θФ y2 αΰ֤ϡϷ¸ y Ʊͤε§Ƿꡣ

x2label: x2 θФϥդξǡȥϲϡ ʸȤСˤʣιԤʤ西ȥ x2 θФ 뤳Ȥǽ:


     set title "This is the title\n\nThis is the x2label"

ŰȤ٤Ǥ뤳ȤդƤξ硢 2 ĤιԤƱեȤȤޤ

2 ξ x, x2, y, y2 Υ٥ (ž) ϡ rotate by < > ꤹ뤳ȤѹǤޤ3 x, y Υ٥ϥǥեȤǤϿʿˤʤäƤޤ rotate parallel ꤹ뤳ȤǼʿԤˤ뤳ȤǤޤ

⤷ΰ֤ΥǥեȤΰ֤ʤʤС set label ȤäƤΥޥɤʸɤ֤뤫äȼͳ Ǥޤ

ХååʸκѡڤʸϤñŰ 㤤˴ؤܤˤĤƤϡʲ: syntax (29)

95.106  (xmtics)

ޥ set xmtics x θФѴޤ1=Jan (1 )12=Dec (12 ) Ȥʤޤ12 ۤϡ12 dzäޤ Ѵޤunset xmtics ϥǥեȤθФޤ ¾μФƤƱ򤹤ƱͤΥޥɤѰդƤޤ

:

     set xmtics
     unset xmtics
     show xmtics

x2mtics, ymtics, y2mtics, zmtics, cbmtics ˤƱ񼰤Ŭ ޤ

ʲ⻲: ޥ set format (95.27)

95.107 ϰϻ (xrange)

ޥ set xrange ɽʿϰϤꤷޤ¾μ ˤƱͤΥޥɤ¸ߤޤ˺ɸǤư r, ޲ѿ t, u, v ˤ¸ߤޤ

:

     set xrange [{{<min>}:{<max>}}] {{no}reverse} {{no}writeback} {{no}extend}
                | restore
     show xrange

< min> < max> ޤ '*' ǡ'*' ϼư̼ܵǽ ̣ޤǡξ硢ϰϤ set timefmt ν񼰤˽äʸ ǰϤɬפޤ< min> < max> άϡ ߤͤѹޤ󡣼ư̼ܵǽ˴ؤܺ٤ϲ˽Ҥ٤ޤʲ⻲: noextend (95.3)

yrange, zrange, x2range, y2range, cbrange, rrange, trange, urange, vrange Ʊ񼰤Ѥޤ

x x2 뤤 y y2 ϰϤ󥯤륪ץˤĤƤ ʲ: set link (95.39)

ץ reverse ϡư̼ܤμդˤޤ㤨Сǡ ͤϰϤ 10 100 ǤȤϡset xrange [100:10] Ȥ ΤƱ褦˼ư̼ܤޤreverse ϡư̼ܤǤϤʤФ Ƥϵǽޤ: ѹϡС 4.7 Ƴޤ

ư̼ܵǽ: < min> (ƱͤΤȤ < max> ˤŬѤޤ) ꥹ "*" ξϼư̼ܵǽˤʤޤξΤͤˡ < lb> ޤϾ < ub> ޤϤξ¤Ϳޤ񼰤ϰʲ̤Ǥ

     { <lb> < } * { < <ub> }


     0 < * < 200

< lb> = 0, < ub> = 200 ȤʤޤΤ褦Ǥϡ< min> ϼư ܤޤκǽŪͤ 0 200 δ֤ˤʤޤ ( '< ' Ǥξüͤޤߤޤ)¤¤ꤷʤϡ '< ' άǤޤ< ub> < lb> 꾮ϡ¤ϥդˤʤꡢʼ ư̼ܤˤʤޤ εǽϡư̼ܤɤϰϤ¤¬ǡ䡢 ͤΥåԥ󥰡ޤϥǡۤɤϰϤɬפȤƤʤƤ ϰϤݾڤΤͭѤǤ礦

ץ writeback ϡset xrange ƤХåե ư̼ܵǽˤ줿ϰϤ¸ޤϡĤδؿƱ ɽϰϤϤΤΤĤΤΤꤵ Ǥwriteback κѤϡplot μ¹˵ǽΤǡ ޥɤ˻ꤹɬפޤǸ¸ʿϰϤ set xrange restore Ǥޤ夲ޤ


     set xrange [-10:10]
     set yrange [] writeback
     plot sin(x)
     set yrange restore
     replot x/2

ξ硢y ϰ (yrange) sin(x) ͰȤƺ줿 [-1:1] ˤʤꡢx/2 Ͱ [-5:5] ̵뤵ޤ嵭Τ줾Υޥɤθ show yrange ¹ԤСDzԤʤƤ뤫򤹤 ˤʤǤ礦

2 ˤơxrange yrange ϼϰϤꤷtrange ϡ޲ѿ⡼ɤ޲ѿϰϡ뤤϶˺ɸ⡼ɤγ٤ϰϤ ꤷޤƱͤ 3 ޲ѿ⡼ɤǤϡxrange, yrange, zrange ϰϤurange yrange ޲ѿϰϤޤ

˺ɸ⡼ɤǤϡrrange 褵ư¤ϰϤꤷޤ< rmin> ư¤ؤɲäȤƺѤ < rmax> ư¤ڤΤƤ (clip) 褦˺Ѥ< rmax> ۤư¤Ф褵ޤxrange yrange ϱƶޤϰϤϡդ r(t)-rmin Υ դǡθФˤϤ줾 rmin ä褦ʤΤǤ뤫Τ褦 ˥åȤޤ

ƤϰϤʬŪˡޤŪ˼ư̼ܤޤǡ ʤСѥ᡼ѿμư̼ܵǽϰ̣ʤǤ礦

ϰϤ plot Υޥɥ饤ǤǤޤޥɥ饤Ϳ 줿ϰϤñˤ plot ޥɤǤȤ졢set ޥɤ ꤵ줿ϰϤϤθǡޥɥ饤ϰϤꤷƤʤ ƤǻȤޤ splot ƱǤ

:

x ϰϤǥեȤͤˤޤ:

     set xrange [-10:10]

y ϰϤä褦ˤޤ:

     set yrange [10:-10]

z κǾͤˤϱƶͿ (ư̼ܤ줿ޤ)ͤΤ 10 ꤷޤ:

     set zrange [:10]

x κǾͤϼư̼ܤȤͤѹޤ:

     set xrange [*:]

x κǾͤư̼ܤȤޤκǾͤ 0 ʾˤޤ

     set xrange [0<*:]

x ϰϤư̼ܤȤޤƤ 10 50 ϰϤݻޤ (ºݤϤ礭ʤǤ礦):

     set xrange [*<10:50<*]

ư̼ܤǺϰϤ -1000 1000ʤ [-1000:1000] Ǽư ܤޤ:

     set xrange [-1000<*:*<1000]

x κǾͤ -200 100 δ֤Τɤˤޤ:

     set xrange [-200<*<100:]

95.108 (xtics)

x (ФΤĤ) ޥ set xtics Ǥޤ unset xtics Ǿäset xtics (ǥեȤξ֤) ꤬Ĥޤy,z,x2,y2 ԤʤƱͤΥޥɤ ޤ

:

     set xtics {axis | border} {{no}mirror}
               {in | out} {scale {default | <major> {,<minor>}}}
               {{no}rotate {by <ang>}} {offset <offset> | nooffset}
               {left | right | center | autojustify}
               {add}
               {  autofreq
                | <incr>
                | <start>, <incr> {,<end>}
                | ({"<label>"} <pos> {<level>} {,{"<label>"}...) }
               {format "formatstring"} {font "name{,<size>}"} {{no}enhanced}
               { numeric | timedate | geographic }
               { rangelimited }
               { textcolor <colorspec> }
     unset xtics
     show xtics

Ʊ񼰤 ytics, ztics, x2tics, y2tics, cbtics ˤŬѤ ޤ

axis border gnuplot (ι߼ȤȤθФ) 򡢤줾켴ˤĤΤˤĤΤؼޤˤ Ƥᤤ硢axis ѤθФʸ򶭳γ˽Ф ޤǤ礦ξ缫ưŪʥ쥤ȥ르ꥺˤ; 褯ʤΤȤʤäƤޤޤ

mirror gnuplot ȿ¦ζƱ֤ˡФΤʤ Ϥ褦ؼޤnomirror ϡʤƤ̤Τ Ԥʤޤ

in out ιߤ¦¦ڤѤޤ

ιߤΥ scale ĴǤޤ< minor> λ꤬ά 줿ϡ 0.5*< major> ˤʤޤǥեȤΥϡ ꤬ 1.0 Ǿ꤬ 0.5 ǡ scale default ǸƤӤޤ

rotate ϡʸ 90 ٲžƽϤ褦Ȥޤϡʸ βž򥵥ݡȤƤϥɥ饤 (terminal) Ǥϼ¹Ԥޤ norotate Ϥ򥭥󥻥뤷ޤrotate by < ang> ϳ < ang> žԤʤޤϤĤνϷ (terminal) ǥݡȤ Ƥޤ

x y ΥǥեȤ border mirror norotate ǡx2, y2 border nomirror norotate ǥեȤǤz ˤϡ {axis | border} ץ̵ǡǥեȤ nomirror Ǥz ߥ顼ʤ顢¿ʬ set border ǤΤζ֤ ɬפǤ礦

< offset> x,y ޤ x,y,z ηǻꤷޤ˺ɸϤ 򤷤ơ first, second, graph, screen, character 줫Ĥ뤳ȤǤޤ< offset> ϹʸΥǥեȤΰ ΤɽǥեȤκɸϤ character Ǥܺ٤ϡʲ: coordinates (12)nooffset Ϥ餷̵ˤޤ

:

xtics ˶Ť:

     set xtics offset 0,graph 0.05

ǥեȤǤϸФ٥ϡ̤褦ˡȲžѤ˰¸ ֤˼ưŪ·ޤˤʤСŪ left, right, center Υɤˤ·ѹǤޤ autojustify ǥǥեȤεưޤ

ץʤ set xtics ¹Ԥȡ꤬ɽ֤Ǥ СϥǥեȤζޤϼǤʤв⤷ 󡣤˻ꤷδֳ֡ (ȸФ) ݻޤ

ΰ֤ϡǥեȡޤϥץ autofreq ꤵƤ мưŪ˷׻ޤǤʤС 2 Ĥηǻꤵ :

żŪ < start> , < incr> , < end> ϡ < start> < end> δ֤ < incr> δֳ֤ɽޤ< end> ꤷʤС̵ Ȥߤʤޤ< incr> ͤǽǤ< start> < end> ξ ꤵƤʤ硢< start> -硢< end> +Ȥߤʤ졢 < incr> ܤΰ֤ɽޤпξ硢δֳ (ʬ) ϡܿȤƻѤޤ

< start> < incr> 򡢿ͤθ˻ꤹ (㤨 rotate by < angle> Ȥ offset < offset> θ)gnuplot ιʸ ϡͤ餽 < start> < incr> ͤΰԤȤ ְ㤤Ȥޤ򤹤ˤϡΤ褦ʾϡ0-< start> 0-< incr> Τ褦˻ꤷƤ

:

     set xtics border offset 0,0.5 -5,1,5

Ǹ ',' ΤȤǼԤޤ
     set xtics border offset 0,0.5 0-5,1,5


     set xtics offset 0,0.5 border -5,1,5

ʤСȻؼ̤ˡ򶭳ˡ긫Фʸ 0,0.5 ʸʬ餷ơstart, increment, end 򤽤줾 -5,1,5 ꤷ

set grid Υץ 'front', 'back', 'layerdefault' ⡢x ν˱ƶޤ

:

0, 0.5, 1, 1.5, ..., 9.5, 10 ΰ֤

     set xtics 0,.5,10

..., -10, -5, 0, 5, 10, ...

     set xtics 5

1, 100, 1e4, 1e6, 1e8

     set logscale x; set xtics 1,100,1e8

Ū ("< label> " < pos> < level> , ...) ηϡǤդΰ֡ 뤤ϿǤʤФǽˤޤηǤϡϰ ֤ονͿɬפϤޤ󡣳ϰ (pos) ȸФ (label) ޤФɬܤǤϤޤ󡣸ФŰ Ϥޤ줿ʸǤ뤳ȤդƤϡ"hello" Τ褦ʸ ʸǤ⹽ޤ󤷡"%3f clients" Τ褦ˤΰ֤Ѵ ʸޤǤ⹽ޤ󤷡ʸ "" Ǥ⹽ޤ󡣤 ˤĤƤϡʲ: set format (95.27)⤷ʸͿʤ СǥեȤοθФѤޤ

ŪʷǤ 3 ܤΥѥ᡼Ȥƥ٥Ǥޤǥե ȤΥ٥ 0 ạ̇̄٥ 1 ξϾ ޤ٥ϡˤϷ褷դޤȾ gnuplot ưŪޤ桼Ū˻Ǥޤ ٥뤬 2 ʾϡ桼Ū˻ꤷʤФʤ餺ư⤤ͥ٤ޤƥ٥ιߤ礭 ϡset tics scale 椷ޤ

:

     set xtics ("low" 0, "medium" 50, "high" 100)
     set xtics (1,2,4,8,16,32,64,128,256,512,1024)
     set ytics ("bottom" 0, "" 10, "top" 20)
     set ytics ("bottom" 0, "" 10 1, "top" 20)

2 ܤǤϡƤ꤬Фդޤ3 ܤǤϡü ΤФդޤ4 ܤΡФΤʤϾ ˤʤޤ

̾Ū (ư) ֤Ϳ줿硢ưŪ ϻȤޤ󡣵դˡset xtics auto Τ褦ʤΤꤵ줿 ϡ˼ưꤷϾäƤޤޤμư ȼưŪ¸ˤϥ add ѤƤ ɲäΥ˽񤫤ʤФޤ

:

     set xtics 0,.5,10
     set xtics add ("Pi" 3.14159)

ϼưŪιߤ x 0.5 ֳ֤ǤĤޤФΤȤ ŪʸФɲäޤ

ꤷƤ⡢ɽΤϤޤϰϤΤΤǤ

θФν (ޤϾά) set format 椵ޤ set xtics (< label> ) ηŪʸФʸ󤬴ޤޤ ƤʤǤ

(Фդʤ) ϡset mxtics ޥɤǼưŪɲä 뤫ޤϰ֤ư set xtics ("" < pos> 1, ...) ηͿ ȤǤޤ

ߤθ () ϡ򼴤ξǤäƤ⡢ ˤäƷꤵޤ (ʲ: set border (95.6))

95.108.1 Xtics timedata

֤դǤÿȤݻƤޤ

: ͤͤϡϻ timefmt ǻꤷ񼰤Ѥÿ ѴޤФ֤伴ϰϤ timefmt Dzᤵǡ ǰϤͿޤ < start> , < incr> , < end> Ȥ硢< incr> ñ̤ͿʤФ ޤϥǡβˤ timefmt ȤäƤϰϤ ΰ֤ϡset xdata time ѹޤ

: ٥ϡset format set xtics format Τ ǻꤵ줿̤ν񼰤ȤäޤǥեȤǤϡ̾ οͽ񼰻Ǥǧޤ (set xtics numeric)¾ˡ ɸ (set xtics geographic) 䡢ǡ (set xtics time) Υץ 󤬤ޤ

: Ǥ gnuplot ȤθߴΤᡢޥ set xdata timeۤ set xtics time ¹Ԥޤset xdata unset xdataϰۤ set xtics numeric إꥻåȤޤϤθ set xtics ƤӽФȤѹǤޤ

:

     set xdata time           # ϥǡβ
     set timefmt "%d/%m"      # ϥǡɤ߹ߤν
     set xtics timedate       # Ͻ񼰤β
     set xtics format "%b %d" # ٥ǻȤ
     set xrange ["01/12":"06/12"]
     set xtics "01/12", 172800, "05/12"


     set xdata time
     set timefmt "%d/%m"
     set xtics format "%b %d" time
     set xrange ["01/12":"06/12"]
     set xtics ("01/12", "" "03/12", "05/12")

ξȤ "Dec 1", "Dec 3", "Dec 5", ޤ2 ܤ "Dec 3" ϸФդޤ

95.108.2 Geographic

set xtics geographic ϡx ͤ٤ñ̤ɸǤ뤳Ȥ ̣ޤμιߤθФɽλˤϡset xtics format set format x Ȥޤɸǡ˴ؤ񼰻Ҥϰʲ̤:
      %D                   = ٤ɽ
      %<width.precision>d  = ٤ưɽ
      %M                   = ʬɽ
      %<width.precision>m  = ʬưɽ
      %S                   = äɽ
      %<width.precision>s  = äưɽ
      %E                   = +/- Ǥʤ E/W Υ٥
      %N                   = +/- Ǥʤ N/S Υ٥

㤨Сޥ set format x "%Ddeg %5.2mmin %E" ϡx ɸ -1.51 Ȥͤ " 1deg 30.60min W" Τ褦ɽޤ

xtics ǥեȤξ֤Τޤ (set xtics numeric) ξϡɸ 10 ʿ٤ɽformat ̤ʵǤϤʤ̾οͽ ȤƤȤߤʤޤ

95.108.3 Xtics rangelimited

ΥץϡưŪ뼴θФȡ褵줿 ǼºݤͿϰϤб趭ξ¤ޤ Ф븽ߤϰ¤Ȥ̵طǤ뤳ȤդƤ㤨 Хǡ "file.dat" Υǡ٤ 2 < y < 4 ϰϤˤȤȡ ʲΥޥɤϡ¦趭 (y ) y ϰ ([0:10]) Τ ʬ ([2:4]) Τߤ褵졢ϰ ([2:4]) μΤߤ ޤĤޤꡢ y ϰ ([0:10]) ˳礵 ޤζ 0 2 δ֡4 10 δ֤϶ΰȤʤޤ Υϡϰ (range-frame) ȤƤФޤ
     set border 3
     set yrange [0:10]
     set ytics nomirror rangelimited
     plot "file.dat"

95.109 Xy ʿ̰ (xyplane)

set xyplane ޥɤ 3D xy ʿ̤ΰ֤ĴΤ ȤޤߴΤˡ"set ticslevel" Ʊ̣Υޥɤ ƻȤȤǤޤ

:

     set xyplane at <zvalue>
     set xyplane relative <frac>
     set ticslevel <frac>        # set xyplane relative Ʊ
     show xyplane

set xyplane relative < frac> ϡxy ʿ̤ Z ϰϤΤɤ֤ ꤷޤ< frac> ˤϡxy ʿ̤ z ΰֲΰ֤ȤκΡz ΤФͿޤǥեȤͤ 0.5 Ǥͤ Ƥޤ 3 ĤμθФŤʤǽ ޤ

⤦ĤηǤ set xyplane at < zvalue> ϡߤ z ϰϤ ˤ뤳Ȥʤꤷ z ͤΰ֤ xy ʿ̤ꤷޤäơ x,y,z ̤θ̤褦ˤˤϡset xyplane at 0 Ȥ Ȥˤʤޤ

ʲ⻲: set view (95.94), set zeroaxis (95.131)

95.110 Xzeroaxis

ޥ set xzeroaxis y = 0 ľޤܺ٤˴ؤƤϡʲ: set zeroaxis (95.131)

95.111 Y2data

ޥ set y2data y2 () Υǡ () ޤܺ٤ϡʲ: set xdata (95.103)

95.112 Y2dtics

ޥ set y2dtics y2 () ѹޤܺ٤ϡ ʲ: set xdtics (95.104)

95.113 Y2label

ޥ set y2label y2 () θФꤷޤܺ٤ϡʲ: set xlabel (95.105)

95.114 Y2mtics

ޥ set y2mtics y2 () 1 ǯγƷѹޤ ܺ٤ϡʲ: set xmtics (95.106)

95.115 Y2range

ޥ set y2range y2 () ɽľϰϤꤷޤ ޥɥץΤ٤ƤˤĤƤϡʲ: set xrange (95.107)ʲ⻲: set link (95.39)

95.116 Y2tics

ޥ set y2tics y2 () ΡФդ Ԥʤޤܺ٤ϡʲ: set xtics (95.108)

95.117 Y2zeroaxis

ޥ set y2zeroaxis ϡ̤ y2 () (x2 = 0) ܺ٤ϡʲ: set zeroaxis (95.131)

95.118 Ydata

ޥ set ydata y Υǡ () ꤷޤ ʲ: set xdata (95.103)

95.119 Ydtics

ޥ set ydtics y ѹޤܺ٤ϡʲ: set xdtics (95.104)

95.120 Ylabel

Υޥɤ y θФꤷޤʲ: set xlabel (95.105)

95.121 Ymtics

ޥ set ymtics ϡy ѹޤܺ٤ϡʲ: set xmtics (95.106)

95.122 Yrange

ޥ set yrange ϡy οľϰϤꤷޤܺ٤ϡʲ: set xrange (95.107)

95.123 Ytics

ޥ set ytics y (Фդ) 椷ޤ ܺ٤ϡʲ: set xtics (95.108)

95.124 Yzeroaxis

ޥ set yzeroaxis x = 0 ľ (y ) 񤭤ޤܺ٤ϡʲ: set zeroaxis (95.131)

95.125 Zdata

ޥ set zdata z Υǡ () ꤷޤ ʲ: set xdata (95.103)

95.126 Zdtics

ޥ set zdtics z ѹޤܺ٤ϡʲ: set xdtics (95.104)

95.127 Zzeroaxis

ޥ set zzeroaxis (x=0,y=0) ̤ľޤϡ2D 衢 set view map Ǥ splot ǤϸϤޤ󡣾ܺ٤ϡ ʲ: set zeroaxis (95.131), set xyplane (95.109)

95.128 Cbdata

Υޥɤϥ顼ܥåΥǡ () ˼ꤷ ޤʲ: set xdata (95.103)

95.129 Cbdtics

ޥ cbdtics ϥ顼ܥåιߤѴޤ ܺ٤ϡʲ: set xdtics (95.104)

95.130 (zero)

zero ͤϡ0.0 ˶ᤤǥեȤͤɽޤ

:

     set zero <expression>
     show zero

gnuplot ϡ(ʣǿͤˤƤ) ͤεʬ ͤ zero ͤ礭 (Ĥޤ¿Ǥʤͤ) ϡ 褷ޤ󡣤ͤ gnuplot ¾͡ʬˤƤ (ޤ) ͸ͤȤƤȤƤޤǥեȤ zero ͤ 1e-8 Ǥ1e-3 (= ŵŪʥӥåȥޥåץǥץ쥤β٤εտ) 礭 zero ͤꤹ٤ǤϤʤǤ礦zero 0.0 ꤹΤϰ̣ΤʤȤǤϤޤ

95.131 (zeroaxis)

x set xzeroaxis ˤä졢unset xzeroaxis ˤäƺ ޤƱͤ y, x2, y2, z ѤΥޥɤƱͤƯ򤷤ޤ set zeroaxis ... (ֻʤ) ϡx, y, z ٤Ƥ˵ǽޤ

:

     set {x|x2|y|y2|z}zeroaxis { {linestyle | ls <line_style>}
                                | {linetype | lt <line_type>}
                                  {linewidth | lw <line_width>}
                                  {linecolor | lc <colorspec>}
                                  {dashtype | dt <dashtype>} }
     unset {x|x2|y|y2|z}zeroaxis
     show {x|y|z}zeroaxis

ǥեȤǤϡΥץϥդˤʤäƤޤ򤵤줿 0 μ < line_type> η< line_width> < colorspec> ο < dashtype> /ѥ (⸽߻ѤƤϷ ݡȤƤ)뤤Ϥ餫줿 < line_style> Υ ޤʲ: set style line (95.78.7)

ηꤷʤС̾μη ( 0) ޤ

:

y=0 μ򸫤褦˴ñ˽񤯾:


      set xzeroaxis

ˤơäޤѥˤ:


      set xzeroaxis linetype 3 linewidth 2.5

95.132 Zlabel

Υޥɤ z θФꤷޤʲ: set xlabel (95.105)

95.133 Zmtics

ޥ set zmtics z ѹޤܺ٤ϡʲ: set xmtics (95.106)

95.134 Zrange

ޥ set zrange z ɽϰϤꤷޤΥ ޥɤ splot ˤΤͭǡplot Ǥ̵뤵ޤܺ٤ϡʲ: set xrange (95.107)

95.135 Ztics

ޥ set ztics z (Фդ) 椷ޤ ܺ٤ϡʲ: set xtics (95.108)

95.136 Cblabel

Υޥɤϥ顼ܥåθФꤷޤʲ:set xlabel (95.105)

95.137 Cbmtics

ޥ set cbmtics ϥ顼ܥåθФѴ ޤܺ٤ϡʲ: set xmtics (95.106)

95.138 Cbrange

ޥ set cbrange ϡ with pm3d, with image with palette ʤɤˤäƸߤΥѥå (palette) Ȥäƿդ ͤϰϤꤷޤϰϳͤФƤϡǤᤤ³ͤ Ѥޤ

顼ܥå (cb-) splot Ǽư̼ܤƤϡ 顼ܥåϰϤ zrange Ȥޤsplot ... pm3d| palette 褵ϡۤʤ zrange cbrange ȤȤǥե륿 󥰤Ǥޤ

set cbrange ν񼰤˴ؤܺ٤ϡʲ: set xrange (95.107)ʲ⻲:set palette (95.66), set colorbox (95.14)

95.139 Cbtics

ޥ set cbtics ϥ顼ܥå (Фդ) 椷ޤܺ٤ϡʲ: set xtics (95.108)

96 륳ޥ (shell)

shell ޥɤŪʥưޤgnuplot ˤϡ VMS Ǥ logout Unix ʤ exit ⤷ END-OF-FILE ʸ MS-DOS OS/2 ʤ exit ϤƲ

륳ޥɤ¹Ԥˡ 2 Ĥޤ: ޥ system Ȥ ! (VMS Ǥ $) ȤԤϡޥʸѥ᡼Ȥ Τǡ¾ gnuplot ޥɤΤɤǤȤȤǤޤԤ 񼰤ϡιԤˤΥޥɤĤǤ뤳Ȥ׵ᤷޤξ 祳ޥɤλȤ gnuplot äƤޤ㤨 MS-DOS, OS/2 Ǥϡ


    ! dir

ޤ
    system "dir"

Ȥȥǥ쥯ȥΰɽ gnuplot äƤޤ

system Ȥ¾:

      system "date"; set time; plot "a.dat"
      print=1; if (print) replot; set out; system "lpr x.ps"

97 Splot

splot 3 ΤΥޥɤǤ (¸ΤǤ礦 ºݤˤϤ 2 ؤμͱ)ϡplot ޥɤ 3 ǤǤ splot ϡ줾ñ x, y, z 󶡤ǡplot Ѱդ Ƥ 2 x2, y2 Τ褦ʤΤϤޤ

2 3 ξǻȤ¿ΥץˤĤƤϡʲ:plot (84)

:

     splot {<ranges>}
           {<iteration>}
           <function> | {{<file name> | <data block name>}
                         {datafile-modifiers}}
           {<title-spec>} {with <style>}
           {, {definitions{,}} <function> ...}

ޥ splot ϡؿ줿ǡޤϥǡե뤫 ɤ߹ǡޤϻ¸줿̾դǡ֥åΥǡ ޤǡե̾ϡ̾ǰϤʸȤͿ ޤؿ 1 ܤοǤ޲ѿ⡼ (parametric) Ǥ 3 Ĥ ȤȤͿޤ

ǥեȤǤϡsplot 褵ǡβ˴ xy ̤ޤ z ΰֲ xy ʿ̤ΰִط set xyplane ѹǤޤ splot μͱƤθ set view Ǥޤܺ٤ϡʲ:set view (95.94), set xyplane (95.109)

splot ޥɤϰϤλν񼰤 plot ξƱǤ޲ѿ ⡼ (parametric) ǤʤСϰϻϰʲνǡ

     splot [<xrange>][<yrange>][<zrange>] ...

޲ѿ⡼ (parametric) ǤϡϰϻϰʲνͿʤФޤ:
     splot [<urange>][<vrange>][<xrange>][<yrange>][<zrange>] ...

title ץ plot ƱǤwith plot ȤۤƱ 2 襹Ȥ櫓ǤϤޤ

datafile ץˤϤ˰㤤ޤ

޲ѿ⡼ (parametric) ؿѤƶ̤̤ˡˡ ե '++' Ѥ xy ʿ̤γʻҤξɸ ޤ

ʲ⻲: show plot (95.64), set view map (95.94), sampling (84.9)

97.1 ǡե (datafile)

plot Ʊ褦ˡsplot ǥե뤫饰դǤޤ

:

     splot '<file_name>' {binary <binary list>}
                         {{nonuniform} matrix}
                         {index <index list>}
                         {every <every list>}
                         {using <using list>}

"" "-" Ȥä̤ʥե̾ plot Ʊͤ˵ޤʲ: special-filenames (84.3.6)

ûˤȡbinary matrix ϤΥǡ̤ʷǤ뤳Ȥ index ¿ťǡե뤫ɤΥǡ褹뤫 every ϳƥǡ礫ɤΥǡ (ʬ) 褹뤫 using ϳƥǡԤɤΤ褦֤ꤷޤ

index every ץ plot ξƱ褦˿񤤤ޤ usingusing ΥꥹȤ 2 ĤǤʤ 3 ɬפǤȤȤ ƤƱͤǤ

plot ΥץǤ smooth splot ǤѤǤޤ󡣤 cntrparam dgrid3d ¤ƤϤޤʿ경Τ դƤޤ

ǡեηϡ (x,y,z) 3 ȤǤʳϡܼŪplot ƱǤ⤷ĤͤͿС z ȤƻȤ졢 ǡ֥åֹ椬 y Ȥơ x ϤΥǡ֥åǤֹ椬 Ȥޤ⤷ 2 ġ뤤 4 ĤͤͿСgnuplot Ϥ Ǹͤ pm3d plot Ǥοη׻˻Ȥޤ3 Ĥͤ (x,y,z) Ȥȸ ʤޤ¾ͤСϰ̤˸ȸʤޤ fit ǻȤȤǽǤ

splot ΥǡեǤϡ1 ԤζԤϥǡ֥åʬΥҤǤ splot ϸġΥǡ֥å򡢴ؿ y-ΩƱΤȤư ޤ1 ԤζԤʬΥƤƱΤʬǷФ뤳ȤϤޤ ƤΥǡ֥åƱοľ硢gnuplot ϥǡ ֥åǤбƱΤָΩޤ "grid data" ȸƤФ졢̤衢 (set contour) (set hidden3d) ǤϡηΥǡǤ뤳ȤɬפȤʤޤʲ⻲: splot grid_data (97.2)

3 splot ǡˤƤϡ޲ѿ⡼ (parametric) 뤳ȤϤϤפǤ

97.1.1 Matrix

gnuplot ϡmatrix () ΥǡϤ2 ĤΰۤʤDz᤹ 뤳ȤǤޤ

1 Ĥϡx, y κɸͤǤȲꤷơͤ򤳤ΰͤʳʻ matrix Τ줾 M[i,j] ˳ƤˡǤ Ƥ x ɸ [0:NCOLS-1] ϰϤǤ Ƥ y ɸ [0:NROWS-1] ϰϤǤ ϡƥȥǡФƤϥǥեȤǤХʥǡФ ƤϤǤϤޤ ɲåɤˤĤƤϰʲ: matrix uniform (97.1.1.1)

2 ܤηϡͤʳʻҤǡx, y ɸƤȲꤹ ǡϥǡκǽιԤ y ɸǽ x ɸȤߤʤޤ ХʥǡФƤϡ1 ܤκǽǤϡǤʤФޤ 󡣤ϡbinary matrix ϤǤϥǥեȤǤƥϥǡ ФƤɲå nonuniform ɬפˤʤޤ ˴ؤƤϰʲ: matrix nonuniform (97.1.1.2)

97.1.1.1 Uniform

ͤ matrix ǡ褹륳ޥɤ:
    splot 'file' matrix using 1:2:3          # ƥȥǡ
    splot 'file' binary general using 1:2:3  # Хʥǡ

ͤʳʻҤ matrix ǡǤϡƥ֥å z ͤϰԤǰ٤ɤ ޤʤ

   z11 z12 z13 z14 ...
   z21 z22 z23 z24 ...
   z31 z32 z33 z34 ...

ƥȥǡФƤϡ1 ܤǡǤʤ٥ľ硢ɲ  columnheaders ȤäƤƱͤˡƹԤκǽ ǡǤʤ٥Ǥϡɲå rowheaders Ѥ ƤʲϡξѤǤ:

   $DATA << EOD
   xxx A   B   C   D
   aa  z11 z12 z13 z14
   bb  z21 z22 z23 z24
   cc  z31 z32 z33 z34
   EOD
   plot $DATA matrix columnheaders rowheaders with image

ƥȥǡǤϡԤ䥳ȹԤǡλʶ (mesh) 򳫻ϤޤĤΤȤǤsplot ޥɤ index ץȤäƥե֤ͳǤޤ

97.1.1.2 Nonuniform

ϥǡκǽιԤ y ɸޤ ϥǡκǽ x ɸޤ ХʥϥǡǤϡ1 ܤκǽǤǤʤФޤ (ƥȥǡǤϤ̵ֹ뤵ޤ)

ͤ matrix ǡ褹륳ޥɤ:

    splot 'file' nonuniform matrix using 1:2:3  # ƥȥǡ
    splot 'file' binary matrix using 1:2:3      # Хʥǡ

äơͤ matrix ǡι¤ϰʲΤ褦ˤʤޤ:


     <N+1>  <x0>   <x1>   <x2>  ...  <xN>
      <y0> <z0,0> <z0,1> <z0,2> ... <z0,N>
      <y1> <z1,0> <z1,1> <z1,2> ... <z1,N>
       :      :      :      :   ...    :

ϰʲΤ褦 3 ĤοȤѴޤ:


     <x0> <y0> <z0,0>
     <x0> <y1> <z0,1>
     <x0> <y2> <z0,2>
      :    :     :
     <x0> <yN> <z0,N>


     <x1> <y0> <z1,0>
     <x1> <y1> <z1,1>
      :    :     :

ơ 3 ĤοȤ gnuplot θΩѴ졢θ gnuplot ̾ˡλĤԤޤ

97.1.1.3 Examples

٥ȥΥ֥롼 (C ˤ) binary.c Ѱդ ƤޤХʥǡ񤯥롼


     int fwrite_matrix(file,m,nrl,nrl,ncl,nch,row_title,column_title)

ǤΥ֥롼Ȥ㤬 bf_test.c ȤѰդƤơ ϥǥե demo/binary.dem ѤʣΥХʥե ޤ

plot Ǥλˡ:

   plot `a.dat` matrix
   plot `a.dat` matrix using 1:3
   plot 'a.gpbin' {matrix} binary using 1:3

ιԤ褷using 2:3 Ȥ衢using 1:2 ϡκɸ褷ޤ (¿ʬ̵̣Ǥ)ץ every ŬѤ 뤳ȤŪ˹ԤǤޤ

- ƥȥǡեμγ:

   splot `a.dat` matrix using (1+$1):(1+$2*10):3

- ƥȥǡե 3 Ԥ:

   plot 'a.dat' matrix using 1:3 every 1:999:1:2

(Ԥ 0 Τǡ3 ǤϤʤ 2 ꤷޤ)

Gnuplot ϡarray, record, format, filetype ʤɤ general ʥꤹ褦ʥɤĤ˥ץ binary Ȥǡmatrix Хʥեɤ߹ळȤǤޤ¾Ѵ Ѥ general Хʥꥭɤϡmatrix ХʥեˤŬѤǤ Ǥ礦(ܺ٤ϡʲ: binary general (84.2.1))

97.1.2 ǡե

ʲ3 ǡեñʰĤǤ


     splot 'datafile.dat'

ǡ"datafile.dat" ϰʲޤȤޤ:


     # The valley of the Gnu.
        0 0 10
        0 1 10
        0 2 10


        1 0 10
        1 1 5
        1 2 10


        2 0 10
        2 1 1
        2 2 10


        3 0 10
        3 1 0
        3 2 10

"datafile.dat" 4*3 γʻ (줾 3 ʤ֥å 4 Ĥι) 뤳ȤդƲ (ǡ֥å) 1 Ԥ ԤǶڤޤ

x ͤϤ줾Υǡ֥åˤʤäƤ뤳ȤդƲ ⤷ y ͤȤͭʾ֤褹ȡζ̤ ΢֤ǽ񤫤뤳Ȥˤʤޤ

ʻҾǡ (grid data) ФơġΥǡ֥å x ͤ ȤƤɬפϤޤ󤷡Ʊ y ͤƱͤ·Ƥ ɬפ⤢ޤgnuplot ϸġΥǡ֥åο ȤɬפȤƤǤƳΤѤ ̤ܤϡбŪǷ֤ᡢ·γʻҥǡФ ̤ؤαƶͽۤǤޤ󡣤ϥХθǥ Ȥ٤Ǥ礦

97.2 ʻҾǡ (grid data)

3 ΤΥ롼ϡġܤγʻҤˤƤϰĤɸ ĤΥǡ롢ȤγʻҾǡѤ߷פƤޤƥ ϡؿͤɾ뤳 (ʲ: set isosamples (95.34))ޤ ǡեɤ߹ळ (ʲ: splot datafile (97.1)) ˤä ޤ"Ω" ȤդϴؿФƤ⡢ǡФƤ⤽ ܤɽΤȤѤޤܤϡɬ x, y ˴ؤĹ ǤʤƤ褯u,v ޲ѿɽƤ⹽ʤȤդƲ ʲ: set isosamples (95.34)

gnuplot ϤΤ褦ʷɬɬפȤϤޤ㤨 ؿξϡsamples isosamples ȰäƤƤ⹽ޤ ʤx-ΩΤ1 ܤ y-ΩȸʤΤĤ ȤޤǡեξϡġΥǡ֥åΤФĤ θĿƱǤС"Ω" ϥǡ֥åӡ "ǸΩ" ϳƥǡ֥åбƱΤӡ"" ȤޤɤξǤ⡢ӱ⡼ɤտޤ եޥåȤǤäȤϰäͿ뤳ȤˤʤޤФĤ Τǡ set dgrid3d ˤä{ۤʤ}ʻҾǡѴ뤳 Ǥޤ

˴ؤ륳ɤϡy-Ωȡб٤ y-Ω δ֤ʬ˱äƤ z ĥϤ¬ޤäơx-Ωˡ y-ΩȤθȤϤʤʤ褦ɸ褦ʶ̤ФƤϡ splot ϤΤ褦ɸ̵뤹뤳ȤˤʤޤʲƤߤƲ:

      set xrange [-pi/2:pi/2]; set yrange [-pi/2:pi/2]
      set style function lp
      set contour
      set isosamples 10,10; set samples 10,10;
      splot cos(x)*cos(y)
      set samples 4,10; replot
      set samples 10,4; replot

97.3 Splot ζ (splot surfaces)

splot νޤȤơ뤤ϡ֤Ȥˤäƶ ɽ뤳ȤǤޤplot Ʊͤˡϥǡե뤫ɤ ȤǤޤꤵ줿֤Ǵؿͤɾ뤳ȤǤޤ ʲ: set isosamples (95.34)̤ϡʬǷ֤ȤǶŪ˺ ޤʲ: set surface (95.79)Ƥξ̤ϡset hidden3d ƩˤǤޤ3 ̤įϡset view ѹǤ ޤ

ˡʻҾΥǡФƤϡsplot Ʊ⤵֤ 뤳ȤǤ (ʲ: set contour (95.16))Ƥ ȤǤޤˡηˤϿľʬ餫Ȥ ȤǤޤ (ʲ: set cntrparam (95.13))ؿϡ set isosamples set samples ǷꤵʻҾǡȤɾޤ Υǡϡdata-file ˽񤫤Ƥ褦ʳʻҾǡե åȤˤ뤫뤤ϳʻҥǡ (ʲ: set dgrid3d (95.21)) ȤȤ򤷤ʤФϤʤޤ

϶̤ξɽ뤳ȤǤޤ̤˼ͱƤ뤳ȤǤ ̤ؤμͱƤϡե˽񤭽ФȤǤƤ plot ǺƤɤ߹ plot Τ궯ǽϤȤǤޤ

98 Stats (ñ׾)

:
    stats {<ranges>} 'filename' {matrix | using N{:M}} {name 'prefix'}
          {{no}output}

Υޥɤϡե 1 󡢤ޤ 2 Υǡδñ׾ 󶡤ޤusing Ҥϡplot ޥɤƱDzᤵޤ index, every, using ˴ؤܺ٤ˤĤƤϰʲ: plot (84) ǡϡβϤ xrange, yrange ˽äƥե륿ˤ ʲ: set xrange (95.107)ξϥǥեȤǤϥ꡼˽Ϥ ޤޥ set print ˻ȤȤǽϤե˥ 쥯Ȥꡢץ nooutput ȤȤǽϤʤ褦ˤ뤳 ȤǤޤ

̽Ϥ˲ägnuplot ϸġ׾ 3 Ĥѿ롼פ¸ ޤ 1 ܤѿ롼פϡɤʥǡ¤Ǥ뤫򼨤ޤ:

STATS_records   N   ϰΥǡԤ
STATS_outofrange       ϰϳȤƽ줿Կ
STATS_invalid       ̵/Դ/»ǡԤ
STATS_blank       Ԥ
STATS_blocks       ե index ǡ֥å
STATS_columns       ǡƬԤ

2 ܤѿ롼פϡ1 ĤΡϰΥǡ򼨤ޤ y ͤȤưޤy ư̼ܤξϡоݤȤϰ ˸³Ϥޤ󤬡Ǥʤϰ [ymin:ymax] ͤΤߤо Ȥޤ

2 ĤƱ 1 stats ޥɤDzϤϡѿ̾ "_x", "_y" Ȥɲäޤ㤨 STATS_min_x ϡ1 ܤ ΥǡκǾͤǡSTATS_min_y 2 ܤΥǡκǾ̣ͤ ޤξ硢 xrange yrange ξǸ뤳ȤǤդ뤤ˤ ޤ

STATS_min   min(y) ϰΥǡκǾ
STATS_max   max(y) ϰΥǡκ
STATS_index_min   i | yi = min(y) data[i] == STATS_min Ȥʤź i
STATS_index_max   i | yi = max(y) data[i] == STATS_max Ȥʤź i
STATS_mean $ \bar{{y}}$ = $ {\frac{{1}}{{N}}}$$ \sum$y ϰΥǡʿ
STATS_stddev $ \sigma_{y}^{}$ = $ \sqrt{{\frac{1}{N}{\sum{{(y-\bar{y})}^2}}}}$ ϰΥǡɸɸк
STATS_ssd sy = $ \sqrt{{\frac{1}{N-1}{\sum{{(y-\bar{y})}^2}}}}$ ϰΥǡɸк
STATS_lo_quartile     () ʬ̶
STATS_median     ᥸ (ʬ̶)
STATS_up_quartile     軰 () ʬ̶
STATS_sum   $ \sum$y
STATS_sumsq   $ \sum$y2 ʿ
STATS_skewness   $ {\frac{{1}}{{N\sigma^3}}}$$ \sum$(y-$ \bar{{y}}$)3 ϰΥǡ
STATS_kurtosis   $ {\frac{{1}}{{N\sigma^4}}}$$ \sum$(y-$ \bar{{y}}$)4 ϰΥǡ
STATS_adev   $ {\frac{{1}}{{N}}}$$ \sum$| y-$ \bar{{y}}$| ϰΥǡʿк
STATS_mean_err   $ \sigma_{y}^{}$/$ \sqrt{{N}}$ ʿͤɸ
STATS_stddev_err   $ \sigma_{y}^{}$/$ \sqrt{{2N}}$ ɸкɸ
STATS_skewness_err   $ \sqrt{{6/N}}$ ٤ɸ
STATS_kurtosis_err   $ \sqrt{{24/N}}$ ٤ɸ

3 ܤѿ롼פϡ2 ĤΥǡβѤǤ

STATS_correlation   x y ط
STATS_slope   ľ y = Ax + B η A
STATS_slope_err   A ԳΤ
STATS_intercept   ľ y = Ax + B η B
STATS_intercept_err   B ԳΤ
STATS_sumxy   (x*y )
STATS_pos_min_y   y κǾͤͿ x ɸ
STATS_pos_max_y   y κͤͿ x ɸ

matrix ꤵȡƤιǤβϤоݤˤʤޤ ιΥϡѿ STATS_size_x STATS_size_y ¸ޤ

2 İʾΥեǡ󤫤׾˰ȤǤǤΤǡѿΥǥեȤƬǤ "STATS" 򡢥ץname ǥ桼ꤹʸ֤뤳ȤǤ褦ˤʤäƤޤ㤨Сۤʤ 2 ĤΥեΤ줾 2 ܤΥǡʿ ϰʲΤ褦ˤӤǤޤ:

    stats "file1.dat" using 2 name "A"
    stats "file2.dat" using 2 name "B"
    if (A_mean < B_mean) {...}

columnheader ؿ columnheader(N) ˤꡢǡե 1 ܤƤˤƬ뤳ȤǤޤ:
    do for [COL=5:8] { stats 'datafile' using COL name columnheader }

STATS_index_xxx Ǽźͤϡplot ޥɤ 0 ($0) ͤбǽź 0Ǹź N-1 Ȥʤޤ

᥸Ȼʬ̶ͤõݤϥǡͤ򥽡Ȥ N ξϡ (N+1)/2 ܤͤ᥸ͤȤN ξϡ N/2 ܤ (N+2)/2 ܤͤʿͤ᥸ͤȤޤʬ̶ Ʊͤ˽ޤ

θĤ뤿˥ޥ stats ѤˤĤ ϡʲ򻲾ȤƤ

stats.dem

ߤΥС gnuplot stats ޥɤǤϡե (set xdata time set ydata time) ʤпΥǡ Ǥޤ¤ϡΥСǴ¤Ǥ礦

99 System

system "command" ϡɸŪʥȤä "command" ¹Ԥޤ ʲ: shell (96)ؿȤƸƤФ줿硢system("command") Ϸ ȤɸϤήʸʸͤȤ֤ޤɲä ʸ̵뤵ޤ

ϡgnuplot ץ˳ؿΤ˻Ȥޤ:


     f(x) = real(system(sprintf("somecommand %f", x)))

100 Test

ΥޥɤϡϷѥåȤǤɤΤ褦ʽϤԤʤ뤫 ƥȤɽޤ

:

     test {terminal | palette}

test ޤ test terminal ϡ߻νϷ (terminal) ȤμࡢμࡢޤѲǽʤ¾ޤ

test palette ϡR(z),G(z),B(z) (0< =z< =1) ξ֤褷ޤ ϸߤΥ顼ѥå (palette) RGB ʬ򼨤ޤޤRGB Ĵ˼ NTSC ѤƷ׻줿٤褷ޤ бطϡ$PALETTE Ȥ̾Υǡ֥åˤޤޤ

101 Toggle

:
     toggle {<plotno> | "plottitle" | all}

Υޥɤϡ÷Ϸ (qt, wxt, x11) ɽƤ륰դ key ȥǺåΤƱ̤ͿޤʤΥ դɽƤФäդäƤкƤɽޤ toggle all ϡۥåȥ "i" Ʊͭ͡ʥդ٤Ƥ˺Ѥޤ toggle "title" ηϡդΥȥȴ˰פ륿ȥ ꤹɬפޤtoggle "ti*" ξϡդΥȥ '*' ʬפǽΥդ˺ѤޤߤνϷ Ǥʤϡޥ toggle ϲ⤷ޤ

102 Undefine

1 ġޤʣѤߤΥ桼ѿޤϡƥ Ȥޤ褦ʥץȤξ֤ꥻåȤΤǤ礦

ѿ̾ˤϡǸʸȤƥ磻ɥʸ * ȤȤǤ 磻ɥʸĤȡʬǻϤޤ뤹٤Ƥ ޤϡ̤ƬȤäƤʣѿ Ǥ礦磻ɥʸѿ̾κǸˤȤʤ ȤդƤundefine ˥磻ɥʸΤߤȤ Ϳϲ⤷ޤ

:


     undefine foo foo1 foo2
     if (!exists("foo")) load "initialize.gp"


     bar = 1; bar1 = 2; bar2 = 3
     undefine bar*                 # 3 Ĥѿ

103 Unset

ޥ set ꤷץϡб unset ޥ ˤäƤΥǥեȤ᤹ͤȤǽǤunset ޥɤˤϷ ֤ѤǤޤʲ: plot for (84.10)

:

     set xtics mirror rotate by -45 0,10,100
     ...
     unset xtics


     # ֹ 100  200 ޤǤΥ٥ unset
     unset for [i=100:200] label i

103.1 Linetype

:
     unset linetype N

ñ˳Ƥ٤Ƥޤθˤ Ѥ硢ϸߤνϷ˥ǥեȤꤵƤ ΤѤޤ (ʤ gnuplot 4.6 ΥСͭä ǥեȤ)

103.2 Monochrome

ͭ򥫥顼ڤؤޤset color Ʊ

103.3 Output

ʣΥդĤνϥե˽񤭽ФȤǤϷ⤢ ǡθǽϥեưŪˤĤޤ󡣤äƤΥե ˰򤹤뤿ˤϡޤŪ unset out set output Ȥ뤳ȤΥեĤǿե򳫤Ƥ

103.4 Terminal

ץκǽͭˤʤǥեȤνϷϡġΥƥĶ gnuplot Υѥ륪ץ󡢤ӴĶѿ GNUTERM ˰¸ޤ ΥǥեȤǤäƤ⡢gnuplot Ϥѿ GNUTERM ¸ Ƥޤޥ unset terminal ϡνͤޤ ϡset terminal GNUTERM Ȥ뤳ȤƱǤ

104 Update

ΥޥɤϡͿ줿ե¸Ƥѿ򸽺ߤͤ˹ ޤ (fit ιƤ) ͤΥեƱ 񼰤Ǥɬפޤ

̾Υե뤬¸ߤʤ硢Ƥ뤹٤ƤΥ桼 ޤ࿷եޤǸ fit ǻѤʤä ˤϤ٤ "#FIXED" ȰĤƤޤϡfit ѿθߤͤ ǻȤˡ뤤Ͻλ/ǤƤϤƼ¹Ԥ뤿¸ ƤΤͭѤǤ

:

     update <filename> {<filename>}

2 ܤΥե̾ꤹȡΥѥ᡼եѹ 2 ܤΥե˹줿ͤ񤭽Фޤ

ǤʤСꤷե뤬¸ߤ gnuplot ϤΥե ̾ .old Ĥƥե̾ѹꤷե̾Υե ˳ľޤĤޤꡢ"update 'fred'" Ȥȡ "!rename fred fred.old; update 'fred.old' 'fred'" ȤȤƱ Ȥˤʤޤե뤬¸ߤ뤿̾ѹǤʤϡ update ϥ顼åϤƼԤޤ[VMS ǤϡեΥ ƥबȤ뤿ᡢ̾ѹϹԤʤޤ]

ܤ˴ؤƤϡʲ: fit (75)

105 While

:
     while (<expr>) {
         <commands>
     }

ϡޥɤΥ֥å< expr> 0 Ǥʤͤɾ֡ ֤¹ԤޤΥޥɤϡŤ (äʤ) if/else ʸ Ȱ˻ȤȤϤǤޤ󡣰ʲ⻲: do (72), continue (71), break (67)

4 Ϸ (Terminal)

106 Ϸΰ

gnuplot ϤȤƤ¿νϷ򥵥ݡȤƤޤϡŬڤ Ϸɬפʤ鵡ǽѹɲåץĤ򤹤뤳 ˤꤵޤʲ: set terminal (95.81)

ʸϡʤΥƥǽꤪӥ󥹥ȡ뤬ʤʤ äѤǤʤϷˤĤƤ⵭ҤƤ뤫Τޤ 󥹥ȡ뤵줿ġ gnuplot ǡɤνϷͭʤΤΰ ˤϡץ򲿤Ĥ 'set terminal' ǤäƤ

(: ܸ˴ޤޤ terminal Υޥ˥奢ϡΰˤϤ ϷΤΤޤޤƤ뤫⤷ޤ󤷡դˤΰνϷ ǥޥ˥奢뤬ʤΤ⤢뤫⤷ޤ)

106.1 Aifm

: ٤νϷ Adobe Illustrator 3.0+ ѡAdobe Illustrator ϥ٥ 1 PostScriptեľǧΤǡ set terminal post level1 Ȥ٤Ǥ礦

:

     set terminal aifm {color|monochrome} {"<fontname>"} {<fontsize>}

106.2 Aqua

νϷ Mac OS X ɽ˴ؤ AquaTerm.app ˰¸Ƥޤ

:

     set terminal aqua {<n>} {title "<wintitle>"} {size <x> <y>}
                       {font "<fontname>{,<fontsize>}"}
                       {{no}enhanced} {solid|dashed} {dl <dashlength>}}

< n> 褹륦ɥֹ (ǥեȤǤ 0) < wintitle> ϥȥСɽ̾ (ǥեȤ "Figure < n> "), < x> < y> 襵 (ǥեȤ 846x594 pt = 11.75x8.25 ) Ǥ

ѤեȤ < fontname> ǻꤷ (ǥեȤ "Times-Roman") եȥ < fontsize> ǻꤷޤ (ǥեȤ 14.0 pt)

aqua Ϸϡĥʸ⡼ (enhanced text mode; ʲ:enhanced (14)) 򡢽Ťͽ񤭰ʳϥݡȤƤޤեȤλѤϥ ͭʥեȤ¤Ƥޤʸ󥳡ǥ󥰤ϡ set encoding Ǥޤߤ iso_latin_1, iso_latin_2, cp1250 UTF8 (default) 򥵥ݡȤƤޤ

ϡ (ǥեȤϼ) Τ줫Ǥδֳ֤ Ψ < dashlength> (> 0) ѹǤޤ

106.3 Be

Ϸ be ϡX ФѤbeos ڥ졼ƥ󥰥ƥ gnuplot 򥳥ѥ뤹ͤΤΤΤǤĶѿ DISPLAY åȤƤ뤫Ķѿ TERM xterm ˥åȤƤ뤫 ϥޥɥ饤󥪥ץȤ -display ȤƤСץ εưˤνϷ򤵤ޤ

:

         set terminal be {reset} {<n>}

ʣΥ襦ɥ򥵥ݡȤƤޤset terminal be < n> ֹ n Υɥ˽Ϥޤn> 0 ξ硢ֹϥɥ ȥȥ̾ gplt < n> ȤդޤߤΥɥ 뵭ѲǶ̤Ǥޤ (ǥեȥ뤫齽)

gnuplot ɥ饤Ф̤ʽϥɥ饤ФѹƤ⡢襦ɥϳ ޤޤˤʤޤ襦ɥϡΥɥ˥֤ ʸ q 򲡤ɥޥ͡Υ˥塼 close 򤹤 Ĥ뤳ȤǤޤreset ¹ԤƤΥɥ٤Ĥ ޤϼºݤ˥ɥƤҥץλޤ ( -persist ꤵƤʤ)

襦ɥ -persisit ץͿƤʤСä λ˼ưŪĤޤ

襵ȥڥϡgnuplot Υɥꥵ뤳Ȥ ѹǤޤ

Υ gnuplot set linestyle ѹǽǤ

ϥɥ饤 be ˴ؤƤϡgnuplot (ư)ޥɥ饤 ޤե뤫顢geometry font, name ʤɤ̾ X Toolkit ץ꥽λդޤΥץˤĤƤ X(1) ޥ˥奢ڡ (䤽ƱΤ) 򻲾ȤƤ

¾ˤ be ϷѤ¿ gnuplot Υץ󤬤ޤ gnuplot Ƥ֤Ȥ˥ޥɥ饤󥪥ץȤƻꤹ뤫 ޤե ".Xdefaults" Υ꥽ȤƻǤޤ ưꤵΤǡgnuplot ¹ԻˤѹǤޤ

106.3.1 ޥɥ饤󥪥ץ (command-line_options)

X Toolkit ץ˲äʲΥץ gnuplot Ω夲Υޥɥ饤ǡޤϥ桼Υե ".Xdefaults" Υ꥽ȤƻǤޤ:

`-mono` 顼ǥץ쥤ǶŪ
`-gray` 쥤ޤϥ顼ǥץ쥤ǤΥ쥤
  (ǥեȤǤϥ쥤ǥץ쥤դ)
`-clear` ɽ (ִŪ) ̤õ
`-raise` 襦ɥ̤ؽФ
`-noraise` 襦ɥ̤ؽФȤϤʤ
`-persist` gnuplot ץཪλ襦ɥĤ
嵭Υץ󡢤ϥޥɥ饤Ǥλ񼰤ǡ".Xdefaults" ˥ ȤƻꤹȤϰۤʤ񼰤Ȥޤ

:

         gnuplot*gray: on

gnuplotpoints 褹Υˤ⡢ޥ 饤󥪥ץ (-pointsize < v> ) ȥ꥽ (gnuplot*pointsize: < v> ) 󶡤Ƥޤ v ΥγΨȤƻȤ¿ (0 < v < = 10) ǡ㤨 -pointsize 2 ϥǥեȤΥ 2 ܡ -pointsize 0.5 ̤ΥȾʬȤޤ

106.3.2 ץ (monochrome_options)

ǥץ쥤ФƤ gnuplot 迧 (foreground) طʿ (background) Ϳޤ󡣥ǥեȤǤطʤϹǤ-rv gnuplot*reverseVideo: on ξˤطʤˤʤޤ

106.3.3 顼꥽ (color_resources)

顼ǥץ쥤ФƤϡgnuplot ϰʲΥ꥽ (ǤϤΥǥեȤͤ򼨤ޤ)ޤĴ (greyscale) Υ꥽򻲾 ޤ꥽ͤϥƥ BE rgb.txt ե˽񤫤Ƥ뿧 ̾ޤ 16 ʤο (BE Υޥ˥奢򻲾) ̾ȶ (0 1 δ֤) 򥳥ޤǶڤäͤѤǤޤ㤨 blue, 0.5 Ⱦʬζ٤ġ̣ޤ

  gnuplot*background: white
  gnuplot*textColor: black
  gnuplot*borderColor: black
  gnuplot*axisColor: black
  gnuplot*line1Color: red
  gnuplot*line2Color: green
  gnuplot*line3Color: blue
  gnuplot*line4Color: magenta
  gnuplot*line5Color: cyan
  gnuplot*line6Color: sienna
  gnuplot*line7Color: orange
  gnuplot*line8Color: coral

˴ؤ륳ޥɥ饤ν񼰤ϡ㤨аʲ̤Ǥ

:

         gnuplot -background coral

106.3.4 Ĵ꥽ (grayscale_resources)

-gray 򤹤ȡgnuplot ϡ쥤ޤϥ顼ǥ 쥤ФơʲΥ꥽򻲾Ȥޤ (ǤϤΥǥեȤͤ򼨤ޤ)ǥեȤطʿϹǤ뤳ȤդƤ

  gnuplot*background: black
  gnuplot*textGray: white
  gnuplot*borderGray: gray50
  gnuplot*axisGray: gray50
  gnuplot*line1Gray: gray100
  gnuplot*line2Gray: gray60
  gnuplot*line3Gray: gray80
  gnuplot*line4Gray: gray40
  gnuplot*line5Gray: gray90
  gnuplot*line6Gray: gray50
  gnuplot*line7Gray: gray70
  gnuplot*line8Gray: gray30

106.3.5 ꥽ (line_resources)

gnuplot (ԥñ) Τ˰ʲΥ꥽򻲾Ȥޤ (ǤϤΥǥեȤͤ򼨤ޤ)0 ޤ 1 ϺǾ 1 ԥ̣ޤ2 ޤ 3 ͤˤäƥդγѤ Ǥ⤢Ǥ礦

  gnuplot*borderWidth: 2
  gnuplot*axisWidth: 0
  gnuplot*line1Width: 0
  gnuplot*line2Width: 0
  gnuplot*line3Width: 0
  gnuplot*line4Width: 0
  gnuplot*line5Width: 0
  gnuplot*line6Width: 0
  gnuplot*line7Width: 0
  gnuplot*line8Width: 0

gnuplot ǻѤηѤ˰ʲΥ꥽򻲾Ȥޤ0 ϼ̣ޤ2 10 ʿ jk (j k 1 9 ޤǤ) ϡj ĤΥԥ k ĤζΥԥ뤬³ ѥη֤ʤ̣ޤ㤨 '16' 1 ĤΥԥ θ 6 Ĥζ³ѥˤʤޤˡ4 10 ʿǤܺ٤ʥԥȶΥѥǤޤ㤨С '4441' 4 ĤΥԥ롢4 Ĥζ4 ĤΥԥ롢1 ĤζΥѥ ̣ޤʲΥǥեȤΥ꥽ͤϡǥץ쥤뤤ϥ顼Ĵ (grayscale) ǥץ쥤ˤ Ǥ顼ǥץ쥤ǤϤΥǥեȤͤϤۤȤ 0 () ǡaxisDashes ΤߤǥեȤ '16' ȤʤäƤޤ

  gnuplot*borderDashes: 0
  gnuplot*axisDashes: 16
  gnuplot*line1Dashes: 0
  gnuplot*line2Dashes: 42
  gnuplot*line3Dashes: 13
  gnuplot*line4Dashes: 44
  gnuplot*line5Dashes: 15
  gnuplot*line6Dashes: 4441
  gnuplot*line7Dashes: 42
  gnuplot*line8Dashes: 13

106.4 Cairolatex

Ϸ cairolatex ϡcairo pango 饤֥ȤäơEPS (Encapsulated PostScript) PDF ϤޤʸϤˤϡ Ϸ epslatex Ʊ LaTeX Ѥޤ

:

     set terminal cairolatex
                    {eps | pdf}
                    {standalone | input}
                    {blacktext | colortext | colourtext}
                    {header <header> | noheader}
                    {mono|color}
                    {{no}transparent} {{no}crop} {background <rgbcolor>}
                    {font <font>} {fontscale <scale>}
                    {linewidth <lw>} {rounded|butt|square} {dashlength <dl>}
                    {size <XX>{unit},<YY>{unit}}

cairolatex Ϸϡepscairo Ϸ (termnal epscairo) pdfcairo Ϸ (terminal pdfcairo) ƱΥդϤޤ ƥʸϥդΤǤϤʤLaTeX ϤޤʲǿʤץˤĤƤϡʲ: pdfcairo (106.43)

eps pdf ϡսϤη򤷤ޤlatex/dvips Ѥˤ eps pdflatex Ѥˤ pdf ѤƤ

blacktext ϡ顼⡼ɤǤ⤹٤Ƥʸǽ񤯤褦ˤޤ

cairolatex ϥɥ饤Фϡʸΰ֤̤ˡ󶡤ޤ: (a) '{' ǻϤޤ뤹٤Ƥʸϡ'}' ⤽ʸκǸɬפǤ ʸΤ LaTeX DzˤĤˤ⥻󥿥󥰤ޤ (b) '[' ǻϤޤʸϡμ˰ֻʸ (t,b,l,r,c Τ 2 Ĥ )']{'оʸ󡢤³Ǹ '}' Ĥޤʸϡ LaTeX LR-box ȤƽǤΤʤʤǤ⹽ޤ󡣰ֹ碌 ˹Ԥˤϡ \ rule{}{} ͭѤǤ礦ʲ⻲: pslatex (106.48) ʣԤϤ٥硢 \ shortstack ѤƤ:

  set ylabel '[r]{\shortstack{first line \\ second line}}'

ޥ set label Υץ back ϡ¾νϷȤϤۤʤ ˡǽޤback Ѥ٥ϡ¾Τ٤ƤǤθ ˰front Ѥ٥ϡ¾Τ٤Ƥξ˰ޤ

Υɥ饤Ф 2 ĤΰۤʤեޤĤϿޤ eps ޤ pdf ʬǡ⤦Ĥ LaTeX ʬǤ LaTeX ե̾ϡ ޥ set output ΤΤѤeps/pdf ե̾ϡγ ĥ (̾ '.tex') '.eps' '.pdf' ֤ΤѤޤ ϥեꤷʤäϡLaTeX ϤϤޤmultiplot ⡼ɰʳǤϡ plot Ԥ˽ϥեĤΤ˺ʤǤ

β򤢤ʤ LaTeX ʸ˼ˤϡ' \ input{filename}' Ƥ'.eps' '.pdf' եϡ \ includegraphics{...} ɤǼΤǡLaTeX ʸΥץꥢ֥ \ usepackage{graphicx} ɬפޤդʸ (ץ colourtext) ϡץꥢ֥ \ usepackage{color} ɬפޤ

ե˴ؤưϡإå⡼ɤ˰¸ޤξ ⡢Ϳ줿եȥŬڤ礭׻Τ˻Ȥޤ standalone ⡼ɤȤäƤʤϡɤߤȤǼºݤ LaTeX ѤƤեȤȥեȥȤΤǡեȤ ѹˤ LaTeX ΥޥɤѤƤLaTeX ʸ 12pt ΥեȥȤäƤСץȤ '", 12"' ꤷ ե̵̾뤵ޤ'standalone' ξϡͿ줿 ȤȥեȥѤޤܺ٤ϰʲ򻲾ȤƤ

ʸդư뤫ɤϡTeX Υ֡ѿ \ ifGPcolor \ ifGPblacktext Ǥޤ \ ifGPcolor true \ ifGPblacktext false ΤȤΤʸ󤬿դޤѹϡ줿 TeX եǹԤޤŪˤʤ TeX եΥץꥢ ǡ㤨аʲΤ褦ˤǤޤ:

  \newif\ifGPblacktext
  \GPblacktexttrue

ɽŪϡŪͤʤˤΤ߸Ϥޤ

Ϸ cairolatex Ȥϡޥ set output TeX ե ꤹݤ˥եγĥ (̾ ",tex") ĤƤ դΥե̾ϡγĥҤ֤뤳ȤǺޤ

standalone ⡼ɤȤ硢LaTeX ե˴ LaTeX Υإå ɲä졢եեΥե̾ˤ "-inc" ɲäޤ standalone ⡼ɤϡdvips, pdfTeX, VTeX Ȥν Ϥ TeX եޤǥեȤǤ input ǡ LaTeX ʸ񤫤 \ input ޥɤǼޤɬפե ޤ

"" "default" ʳΥեȤͿ硢 LaTeX Υե̾ǤȤߤʤޤ ',' ڤǺ 3 Ĥʬʤ롢 'fontname,fontseries,fontshape' ηǤǥեȤ fontshape fontseries ȤϡϾάǤޤäơե̾ ºݤν񼰤ϡ'{fontname}{,fontseries}{,fontshape}' Ȥʤޤ(: gnuplot ˸ '{< fontname> }{,{< fontseries> }{,< fontshape> }}') ̾γʬλˡϡLaTeX ΥեȷϤδ˽ɬפޤ ե̾ (fontname) 3 4 ʸĹǡʲΤ褦ˤʤäƤޤ: ǽʸϥեȤζԡ 2 Ĥʸϥե̾ѡץȤ̤ʥեѤ 1 ʸɲäǤޤ㤨С'j' ϸŤ οѤΥեȡ'x' ϥѡȥեѤǤ¿Υե ̾ʲ˵ҤƤޤ:

http://www.tug.org/fontname/fontname.pdf

㤨С'cmr' Computer Modern Roman 'ptm' Times-Roman, 'phv' Helvetica ̣Ƥޤfont series ϡդɽ¿ ξϡ'm' ɸ ("medium")'bx' 'b' (bold) Υե ̣ޤfont shape ϡŪˤ 'n' Ω (upright)'it' å (italic)'sl' (slanted)'sc' ⡼륭ԥ (small caps) ̣ޤۤʤ series shapes 󶡤եȤ ޤ

:

Times-Roman Υܡ (ʸƱ) Ȥˤ:

     set terminal cairolatex font 'ptm,bx'

Helvetica, ܡΡåȤˤ:
     set terminal cairolatex font 'phv,bx,it'

ƱǼΤηΥեȤȤˤ:
     set terminal cairolatex font ',,sl'

⡼륭ԥȤˤ
     set terminal cairolatex font ',,sc'

ˡǤϡƥȥեȤѹޤեȤѹ ϡե "gnuplot.cfg" ޤϰʲ륪ץheader Ȥɬפޤ

standalone ⡼ɤǤϡեȥϥޥ set terminal ǻ եȥޤꤷեȥȤˤϥե "size< size> .clo" LaTeX θѥˤɬפޤǥե ȤǤ 10pt, 11pt, 12pt 򥵥ݡȤƤޤѥå "extsizes" 󥹥ȡ뤵ƤС8pt, 9pt, 14pt, 17pt, 20pt ɲäޤ

ץ header ϰĤʸȤƼꡢʸ LaTeX ե˽񤭽Фޤstandalone ⡼ɤǤϡϥץꥢ ֥ \ begin{document} ľ˽񤭤ޤinput ⡼ɤǤϡ ϥդ˴ؤ뤹٤Ƥɽ경뤿 \ begingroup ޥɤ ľ˽񤭤ޤ

:

T1 եȥ󥳡ǥ󥰤ȤƥȥեȤȿեȤ Times-Roman ˡsans-serif եȤ Helvetica Ѥˤ:

   set terminal cairolatex standalone header \
   "\\usepackage[T1]{fontenc}\n\\usepackage{mathptmx}\n\\usepackage{helvet}"

Ǥ (bold) ȤճΥƥȤϤʤ:
   set terminal cairolatex input header "\\bfseries"

LaTeX ե "gnuplot.cfg" 򸫤Ĥȡstandalone ⡼ɤǤ ץꥢ֥˼ߤޤϡɲäΤ˻Ȥ ޤ: ʸΥեȤ򡢿ե ("mathptmx.sty" ) 碌 Times-Roman, Helvetica, Courier ˤˤ:

     \usepackage{mathptmx}
     \usepackage[scaled=0.92]{helvet}
     \usepackage{courier}

ե "gnuplot.cfg" ϡޥ header ꤹإå ɤ߹ߤޤΤǡ"gnuplot.cfg" ꤹΤ header Ȥäƾ񤭤뤳ȤǤޤ

106.5 Canvas

Ϸ canvas ϡHTML5 canvas Ǿ褹 javascript ɤνޤ :

     set terminal canvas {size <xsize>, <ysize>} {background <rgb_color>}
                         {font {<fontname>}{,<fontsize>}} | {fsize <fontsize>}
                         {{no}enhanced} {linewidth <lw>}
                         {rounded | butt | square}
                         {dashlength <dl>}
                         {standalone {mousing} | name '<funcname>'}
                         {jsdir 'URL/for/javascripts'}
                         {title '<some string>'}

< xsize> < ysize> ΰΥԥñ̤ǤΥꤷޤ standalone ⡼ɤǤΥǥեȤΥϡ600x400 ԥǤ ǥեȤΥեȥ 10 Ǥ

: ե canvastext.js 󶡤Ƥ Hershey simplex Roman ե ȤΥʬΥեȰĤѤǤޤϡե canvasmath.js ֤뤳ȤǤˤ UTF-8 󥳡ɤ줿 Hershey simplex Greek math symbols ޤޤƤޤ¾νϷ 碌ơfont "name,size" ηȤ褦ˤʤäƤޤ Ȥ name Υե̾ʬ̵뤵ޤΤ˥֥饦̾ դեȤ򥵥ݡȤǤ礦

ǥեȤ standalone ⡼ɤϡHTML 5 canvas ǤѤƥ դ褹褦 javascript ɤޤ HTML ڡޤ HTML ڡϡ2 Ĥɬפ javascript ե 'canvastext.js' 'gnuplot_common.js' ˥󥯤ޤ򥵥ݡȤ뤿ˤϤ åե 'gnuplot_dashedlines.js' ɬפǤǥեȤǤϤ եؤΥ󥯤ǡUnix ߴΥƥǤ̾Ϥǥ 쥯ȥ /usr/local/share/gnuplot/< version> /js ˤޤ¾δĶ ĤƤϡ󥹥ȡ˴ؤդ򻲾ȤƤϡ jsdir ̤Υǥ쥯ȥꡢ뤤ϰŪ URL 뤳ȤѹǤޤդ⡼ȥ饤ȤΥޥǸ ˤϡ̾ϸԤ꤬ŬڤǤ礦

canvas ϷϤ٤ƥޥǽǤ mousing ɲäȡstandalone ⡼ɤΥդβ˥ޥȥ 󥰥ܥåĤޤϡcanvastext.js ֤ƤΤƱ ǥ쥯ȥꡢޤ URL Ρ'gnuplot_mouse.js' Ȥ javascript եؤΥ󥯤 'gnuplot_mouse.css' Ȥޥܥå ˴ؤ륹륷Ȥɲäޤ

ץ name ϡjavascript Τߤޤեޤ 줬ޤ javascript ؿȡ줬褹 canvas Ǥ id ξϡ ʲʸѥ᡼ޤ㤨аʲΥޥ

     set term canvas name 'fishplot'
     set output 'fishplot.js'

ϡjavascript ؿ fishplot() ޤեδؿϥ դ id=fishplot canvas 褷ޤ javascript ؿƤ Ф HTML ڡϡ canvastext.js ɤ߹ޤʤФ ޤ󡣾Τ褦 fishplot ꤳǾ HTML ե ϰʲΤ褦ˤʤޤ:


     <html>
     <head>
         <script src="canvastext.js"></script>
         <script src="gnuplot_common.js"></script>
     </head>
     <body onload="fishplot();">
         <script src="fishplot.js"></script>
         <canvas id="fishplot" width=600 height=400>
             <div id="err_msg">No support for HTML 5 canvas element</div>
         </canvas>
     </body>
     </html>

ΥХ뤽줾Υդ̾ϡfishplot_plot_1, fishplot_plot_2 Ȥʤޤ javascript 롼Ǥ򻲾 뤳ȤǤޤ: gnuplot.toggle_visibility("fishplot_plot_2")

106.6 Cgm

cgm ɥ饤Ф CGM (Computer Graphics Metafile Version 1) ޤΥեեޥåȤ ANSI ʽ X3.122-1986 "Computer Graphics - Metafile for the Storage and Transfer of Picture Description Information" ƤΤΰʬǤ

:

     set terminal cgm {color | monochrome} {solid | dashed} {{no}rotate}
                      {<mode>} {width <plot_width>} {linewidth <line_width>}
                      {font "<fontname>,<fontsize>"}
                      {background <rgb_color>}
 [deprecated]         {<color0> <color1> <color2> ...}

solid ƤζɤѥɤĤ֤ޤ; < mode> landscape, portrait, default Τ줫; < plot_width> ϥݥñ̤ǤΥդβꤵƤ; < line_width> ϥݥñ̤Ǥ (ǥեȤ 1); < fontname> ϥեȤ̾ (ʲΥեȰ); < fontsize> ϥݥñ̤ǤΥեȤΥ (ǥեȤ 12) Ǥ

ǽ 6 ĤΥץϤɤν֤ǻꤷƤ⹽ޤdefault 򤹤ȡƤΥץ򤽤ΥǥեȤͤˤޤ

ο set term ޥɤꤹȤߤϡ侩Ǥ ˡطʿʬΥ줿 background ǡο set linetype ꤹ٤Ǥ礦侩λȤߤǤϿ 'xrrggbb' ηǼ Ĥޤx ʸ 'x' ΤΡ'rrggbb' 16 ʿǤ֡СĤ ʬǤǽοطʿȤƻȤθ³缡ο ȤƳƤƤޤ

:

     set terminal cgm landscape color rotate dashed width 432 \
                    linewidth 1  'Helvetica Bold' 12       # ǥե
     set terminal cgm linewidth 2  14  # 乭Ȥ礭ե
     set terminal cgm portrait "Times Italic" 12
     set terminal cgm color solid    # ݤʤɾäƤޤ !

106.6.1 CGM Υե (font)

CGM (Computer Graphics Metafile) եκǽʬ᥿ե ʬˤϡեȥꥹ (font table) ޤޤƤޤ ǤϡեȤϤΥꥹȤˤֹǻꤵޤǥեȤǤϤ Υɥ饤Фϰʲ 35 ĤΥեȥꥹȤˤΥꥹȤHelvetica, Times, Courier γƥեȤ italic oblique֤ΡӤεդˤ 6 ĤɲäΥեȤޤޤޤ(Microsoft Office Corel Draw CGM import ե륿 italic oblique ƱΤȤưǤ)

CGM fonts
  Helvetica Hershey/Cartographic_Roman
  Helvetica Bold Hershey/Cartographic_Greek
  Helvetica Oblique Hershey/Simplex_Roman
  Helvetica Bold Oblique Hershey/Simplex_Greek
  Times Roman Hershey/Simplex_Script
  Times Bold Hershey/Complex_Roman
  Times Italic Hershey/Complex_Greek
  Times Bold Italic Hershey/Complex_Italic
  Courier Hershey/Complex_Cyrillic
  Courier Bold Hershey/Duplex_Roman
  Courier Oblique Hershey/Triplex_Roman
  Courier Bold Oblique Hershey/Triplex_Italic
  Symbol Hershey/Gothic_German
  ZapfDingbats Hershey/Gothic_English
  Script Hershey/Gothic_Italian
  15 Hershey/Symbol_Set_1
    Hershey/Symbol_Set_2
    Hershey/Symbol_Math
ΥեȤκǽ 13 Ĥ WebCGM ׵ᤵƤΤǤ Microsoft Office CGM import ե륿Ϥ 13 ĤɸեȤ 'ZapfDingbats' 'Script' 򥵥ݡȤƤޤΥ (script) եȤ '15' Ȥ̾ǤǤޤ Microsoft import ե륿 font ֤˴ؤܤ ĤƤϡ
 C:\Program Files\Microsoft Office\Office\Cgmimp32.hlp

Υإץե롢ޤ
 C:\Program Files\Common Files\Microsoft Shared\Grphflt\Cgmimp32.cfg

եʤɤåƤ

set term ޥɤǥǥեȤΥեȥꥹȤˤʤե̾ 뤳ȤǽǤξ硢λꤷեȤǽ˸뿷 եȥꥹȤޤΥե̾˴ؤơڥ롢ñ Ƭʸɤ˥ڡ뤫ʤɤ CGM ե ɤॢץꥱˤȤäŬڤʤΤǤ뤫ȳǧɬ ޤ(gnuplot Ǥդ MIL-D-28003A 򥢥ץꥱϡ ̾ʸʸΰ㤤̵뤷ޤ) եȤ򤤤Ĥ äϡset term ޥɤ򷫤֤ѤƤ

:

     set terminal cgm 'Old English'
     set terminal cgm 'Tengwar'
     set terminal cgm 'Arabic'
     set output 'myfile.cgm'
     plot ...
     set output

set label ޥɤǤϿեȤƳ뤳ȤϤǤޤ

106.6.2 CGM Υեȥ (fontsize)

եȤϡڡ 6 ǤȲꤷƿ̤ޤsize ޥɤǥڡνIJ椬ѹƤꡢCGM ե뤬ۤʤ Ƥ硢̤ȤƥեȤΥ礵줿̾줿 뤳ȤˤʤޤꤵƤѹˤϡwidth ץ ѤƤ

106.6.3 Cgm linewidth

linewidth ץݥñ (pt) ꤷޤǥե Ȥ 1 pt Ǥfontsize width ץΤȤ Ƥ褦ˡڡμºݤˤäƤν̼ܤϱƶޤ

106.6.4 Cgm rotate

norotate ץϥƥȤβž򤷤ʤ褦ˤޤ㤨 Word for Windows 6.0c Ѥ CGM ϥե륿ϲž줿ʸդޤ Word ° DRAW ǥϤդ뤳ȤǤ դԽ (㤨ж˸ФĤ)Ƥβž줿ʸ ʿˤʤä¸ƤޤY θФϥåפ붭 ۤƤޤǤ礦norotate ץȤСɤɤʤ ꤫ Y θФϤޤäƤޤޤԽˤäƥ᡼ 뤳ȤϤʤʤޤrotate ץϥǥեȤεưݾڤ ޤ

106.6.5 Cgm solid

solid ץ襹̵Τ˻Ȥޤ ϡ顼ͭǤ硢ޤˤ뤳Ȥǥդˤ ͭѤǤ礦dashed ץϥǥեȤεưݾڤ ξġ˰ۤʤΥѥͿޤ

106.6.6 CGM Υ (size)

CGM դΥǥեȤΥϡ֤ (landscape) Ǥ 32599, 23457֤ (portrait) Ǥ 23457, 32599 Ǥ

106.6.7 Cgm width

CGM եƤĹŪñ̤Υեɤॢץ 󤬺ǽŪʥդΥꤷޤǥեȤǤϺǽŪ դ 6 (15.24 cm) ǤȲꤵƤޤ եȥ׻Τ˻Ȥ졢width ץѹǤ  width θݥñ̤ǻꤷޤ(ǡ Ȥ PostScript Ʊ 1/72 ̣ޤñ̤ TeX Ǥ "big point" ȸƤФƤޤ) ¾ñ̤Ѵˤϡgnuplot ο Ȥޤ

:

     set terminal cgm width 432            # ǥե
     set terminal cgm width 6*72           # Ʊ
     set terminal cgm width 10/2.54*72     # 10 cm 

106.6.8 Cgm nofontlist

ǥեȤΥեȥꥹ (font table) WebCGM Ǵ𤵤Ƥե ȤޤǤơ Microsoft Office Corel Draw CGM (Computer Graphics Metafile) ϥե륿Ŭ礷Ƥޤ¾Υץꥱ ϰۤʤեȡ뤤ϰۤʤե̾Ѥ뤫Τޤ󤬡 ϥޥ˥奢ˤϽ񤫤ƤʤΤޤ󡣥ץ nofontlist (winword6 Ʊ̣) Ѥ CGM ե뤫ե ȥꥹȤޤξ硢ɤ߹ץꥱϥǥե ȤΥեȥꥹȤѤǤ礦gnuplot ϤξǤե Τ˼ʬΥǥեȤΥեȥꥹȤѤޤäơ 'Helvetica' 1 ֤ˤʤꡢ줬ʤλѤ륢ץꥱΥ եȥեȥꥹȤκǽΤΤˤʤޤ'Helvetica Bold' եȥꥹȤ 2 ܤΥեȤб¾ƱͤȤʤޤ

106.7 Context

ConTeXt (Τ) Metapost ȹ٤ͻ礷ʼ PDF ʸ 뤿 TeX ΥޥѥåǤνϷϡMetafun ޤϼưԽǤۤȤɤΤȤ ʤǤޤ

ConTeXt + gnuplot ⥸塼ʿŪʥ桼ˤϡΥڡɤ ⡢Using ConTeXt 򻲾Ȥ뤫ConTeXt gnuplot ⥸塼Υޥ˥ 򻲾Ȥ뤳Ȥ侩ޤ

Ϸ context ϡʲΥץ򥵥ݡȤƤޤ:

:

    set term context {default}
            {defaultsize | size <scale> | size <xsize>{in|cm}, <ysize>{in|cm}}
            {input | standalone}
            {timestamp | notimestamp}
            {noheader | header "<header>"}
            {color | colour | monochrome}
            {rounded | mitered | beveled} {round | butt | squared}
            {dashed | solid} {dashlength | dl <dl>}
            {linewidth | lw <lw>}
            {fontscale <fontscale>}
            {mppoints | texpoints}
            {inlineimages | externalimages}
            {defaultfont | font "{<fontname>}{,<fontsize>}"}

standalone Ǥʤ (input) Ǥϡץϥե size٤ƤΥ٥Ψ < fontscale> ǿ̤ fontscasle font Τ̣߰¾ΥץϷٹʤ̵뤵 ߤǡϤΥեåɤ߹ .tex եꤷƤ ʸΥեȤ 12pt ǤϤʤϡŬڤʥեȥ ꤹ뤳Ȥ򶯤侩ޤˤꡢgnuplot ٥Ѥˤɤ줯 餤礭ΥڡݤФΤ뤳ȤǤޤ

default ϡ٤ƤΥץǥեȤͤ˥ꥻåȤޤ

defaultsize ϡ襵 5in x 3in ꤷޤ size < scale> ϡ襵ǥեȥ < scale> ܤˤޤ ',' ڤ 2 ͿϡǽΤΤϲΥ2 ΤΤϿľꤷޤΥˤϡñ̤Ȥƥ ('in'), ('cm') ȤޤάϥǥեͤФ ǤȤߤʤޤ

input (ǥե) ϡ¾ ConTeXt ʸ񤫤륰դ ޤ standalone ϡ˿ɲä켫ȤΤޤޥѥǤ ˤޤξ硢header ץɬפˤʤ뤫⤷ޤ

standalone Υդ//ޥɲä header ƤǥեȤ noheader Ǥ

notimestamp ϡʬνϤޤ (С ƥȤäƤ硢դ㤦Τ򿷤СȤϿ ϤʤǤ礦)

color (ǥե) ϡ顼ޤmonochrome ϰ special ޤץѤˤϡεư򤳤Ѥ äɤʤȤǥäƤͤϡƤƤ

rounded (ǥե) mitered, beveled ϡʬܹη 椷round (default) butt, squared ϡʬüη ޤܺ٤ϡPostScript PDF Υե󥹥ޥ˥奢򻲾ȤƤ 㤷ѲؿѤˤϡʬܹǤäѤ 褦rounded round ȤȤǤ礦 (˴ؤŪʻȤߤϡΥץ襹̡ Ǥ褦 gnuplot ݡȤ٤Ȼפޤ)

dashed (ǥե) ϡۤʤ˰ۤʤѥȤsolid ϡ٤Ƥ˼Ѥޤ

dashlengthdl) ϡʬĹ < dl> ܤޤ linewidthlw) ϡ٤Ƥ < lw> ܤޤ (lw 1 0.5bp ̣ Metapost ΥǥեȤǤ) fontscale ϡƥȥ٥ǥեȤʸեȤ < fontscale> ܤ˳礷ޤ

mppoints ϡMetapost 褵줿ѤߤηѤޤ texpoints ϡñǤ뵭楻åȤѤޤϡʲΤ褦ˤ ConTeXt Ǥޤ:

    \defineconversion[my own points][+,{\ss x},\mathematics{\circ}]
    \setupGNUPLOTterminal[context][points=tex,pointset=my own points]

inlineimages ϡХʥʸȤƽ񤭽Фޤ ConTeXt MKIV Τߤǵǽޤ externalimages ϡPNG եϤ ConTeXt MKII ǵ ǽޤ줬ư뤿ˤϡgnuplot PNG Ϥ򥵥ݡȤ ɬפޤ

standalone ΥդǤϡfont ǥե̾ȥǤޤ standalone Ǥʤ⡼ (input) Ǥϡƥȥ٥˽ʬʥڡ Ƥ뤿˥եȥΤߤ̣ޤ ޥ

    set term context font "myfont,ss,10"

ϡʲΤ褦ˤʤޤ:
    \setupbodyfont[myfont,ss,10pt]

㤨Фɲä fontscale 0.8 ꤹȡ̤Ȥƥե 8pt 礭ˤʤꡢ
    set label ... font "myfont,12"

9.6pt ˤʤޤ

Ŭʥץץȥե (ȥإå) ѰդΤϼʬǹԤä ʤХեȤڤؤϸ̤ޤConTeXt MKII (pdfTeX) ɸեȤϡʲΤ褦ˤƻȤޤ:

    set terminal context standalone header '\usetypescript[iwona][ec]' \
        font "iwona,ss,11"

եȤѤ˴ؤ ConTeXt κǿξˤĤƤϡConTeXt ʸ wiki᡼󥰥ꥹ () õƤߤƤ

:

    set terminal context size 10cm, 5cm     # 10cm, 5cm
    set terminal context size 4in, 3in      # 4in, 3in

UTF-8 󥳡ɥ٥ standalone (ڡ) դǻѤˤ:
    set terminal context standalone header '\enableregime[utf-8]'

106.7.1 Requirements

ConTeXt Ѥ gnuplot ⥸塼:

http://ctan.org/pkg/context-gnuplot

ȡǿ ConTeXt ɬפǤ gnuplot ƤӽФˤϡwrite18 ǽˤɬפޤ ۤȤɤ TeX ʪǤϡ texmf.cnf shell_escape=t Ȥ뤳 ȤǤޤ

νϷȤܤإפ˴ؤƤϰʲ⻲ȤƤ:

http://wiki.contextgarden.net/Gnuplot

106.7.2 Calling gnuplot from ConTeXt

ConTeXt ʸǥդǤñˡϰʲ̤:
    \usemodule[gnuplot]
    \starttext
    \title{How to draw nice plots with {\sc gnuplot}?}
    \startGNUPLOTscript[sin]
    set format y "%.1f"
    plot sin(x) t '$\sin(x)$'
    \stopGNUPLOTscript
    \useGNUPLOTgraphic[sin]
    \stoptext

ϼưŪ gnuplot ¹Ԥη̤βʸ˼ߤޤ

106.8 Corel

corel Ϸ CorelDraw ѤνϤǤ

:

     set terminal corel {  default
                         | {monochrome | color
                              {"<font>" {<fontsize> 
                                 {<xsize> <ysize> {<linewidth> }}}}}

ǡեȥ (fontsize) (linewidth) ϥݥñ ̡ (xsize) Ƚ (ysize) ϥñ̤ǤǥեȤͤ 줾졢monochrome, "SwitzerlandLight", 22, 8.2, 10, 1.2 Ǥ

106.9 Debug

Υɥ饤Ф gnuplot ΥǥХåΤ󶡤ƤΤǤ 餯ɤ桼ΤߤѤΤǤ礦

106.10 Domterm

domterm Ϸϡdomterm, qtdomterm ץ DomTerm ʥ륨ߥ졼ưޤ ϡߥʥľ SVG ղळȤ򥵥ݡȤ Ƥޤhttp://domterm.org 򻲾ȤƤ

svg ϷΥإפɤǤ

106.11 Dumb

ü (dumb) ɥ饤ФϡASCII ʸѤƥƥΰ褷 ޤλȲѤΥץ󤬤ޤ

:

     set terminal dumb {size <xchars>,<ychars>} {[no]feed}
                       {aspect <htic>{,<vtic>}}
                       {[no]enhanced}

< xchars> , < ychars> ϥƥΰΥꤷǥեȤ 79 x 24 ȤʤäƤޤǸβԤϡfeed ץꤵƤΤ Ϥޤ

ץ aspect ϡդΥڥ˻Ѥޤ ʿľߤĹꤷޤλΤߤ ơǥեȤ 2,1 ǡ϶̤Υ꡼եȤΥڥ бޤ

ץ ansi, ansi256, ansirgb Ͽ˽Ϥ˥ 󥹤ޤʤΥߥʥǤϽǤʤ⤷ 󡣥ǥեȤ mono Ǥ ansi ⡼ɤǤϡ set colorsequence classic ȤΤֹ礤 ޤ ɤΥ⡼ɤѤ뤫ˤäơdumb ϷϡʲΥ󥹤Ϥޤ (ɲä):


     ESC [ 0 m           °ǥեȤ˥ꥻå
     foreground color:
     ɽ:
     ESC [ 1 m           Ĵ/򥻥å
     ESC [ 22 m          Ĵ/򥪥դ
     ESC [ <fg> m        30 <= <fg> <= 37 Υ顼ɻ
     ESC [ 39 m          ǥեȤ˥ꥻå
     ESC [ 38; 5; <c> m  ѥåȤֹ (16 <= <c> <= 255)
     ESC [ 38; 2; <r>; <g>; <b> m  ʬ (0 <= <r,g,b> <= 255)
     طʿ:
     ESC [ <bg> m        40 <= <bg> <= 47 Υ顼ɻ
     ESC [ 49 m          ǥեȤ˥ꥻå
     ESC [ 48; 5; <c> m  ѥåȤֹ (16 <= <c> <= 231)
     ESC [ 48; 2; <r>; <g>; <b> m  ʬ (0 <= <r,g,b> <= 255)

㤨СʲεҤ⻲ȤƤ:

https://en.wikipedia.org/wiki/ANSI_escape_code#Colors

:

     set term dumb mono size 60,15 aspect 1
     set tics nomirror scale 0.5
     plot [-5:6.5] sin(x) with impulse ls -1


         1 +-------------------------------------------------+
       0.8 +|||++                   ++||||++                 |
       0.6 +|||||+                 ++|||||||+  sin(x) +----+ |
       0.4 +||||||+               ++|||||||||+               |
       0.2 +|||||||+             ++|||||||||||+             +|
         0 ++++++++++++++++++++++++++++++++++++++++++++++++++|
      -0.2 +        +|||||||||||+              +|||||||||||+ |
      -0.4 +         +|||||||||+                +|||||||||+  |
      -0.6 +          +|||||||+                  +|||||||+   |
      -0.8 +           ++||||+                    ++||||+    |
        -1 +---+--------+--------+-------+--------+--------+-+
              -4       -2        0       2        4        6

106.12 Dxf

dxf ɥ饤ФϡAutoCad (꡼ 10.x) ˼ळȤǤ ޤΥɥ饤мȤˤϥץϤޤ󤬡˴ؤ Ĥħ¾ˡѹǤޤǥեȤ礭 AutoCad ñ̤Ǥ 120x80 ǡ set size ѹǤޤdxf 7 (֡С忧ġֻ) Ȥޤѹˤϥɥ Хեɬפޤν֤Ȥ硢 οΰ㤤ɽޤܺ٤ AutoCad ΰ/ץ ϥޥɤ˴ؤ뵭Ҥ򻲾ȤƤ

106.13 Dxy800a

Υɥ饤Ф Roland DXY800A ץå򥵥ݡȤޤץϤ ޤ

106.14 Eepic

eepic ɥ饤Ф LaTeX picture ĶĥΤ򥵥ݡȤޤ latex ɥ饤Ф̤Ǥ

Υɥ饤ФˤϤϡLaTeX Ѥ "eepic.sty" ޥѥåȶ ˻Ȥ뤳ȤꤷƤޤȤˤϡ"eepic.sty" "epic.sty" "tpic" \ special ̿ᷲ򥵥ݡȤץ󥿥ɥ饤 ФɬפǤ⤷ʤλȤץ󥿥ɥ饤Ф "tpic" \ special ̿򥵥ݡȤƤʤǤ⡢"eepicemu.sty" ȤȤ ΤΤĤȤ褦ˤʤޤ dvips dvipdfm "tpic" \ special 򥵥ݡȤƤޤ

:

  set terminal eepic {default} {color|dashed} {rotate} {size XX,YY}
                     {small|tiny|<fontsize>}

ץ: ץǤդν֤Ϳ뤳ȤǤޤ 'color' gnuplot \ color{...} ޥɤˤꥰ 򥫥顼ˤޤΥץѤϡlatex ʸΥץꥢ ֥ \ usepackage{color} ɬפޤ 'dashed' Ѥ뤳ȤĤޤΥץ ʤȡμΤߤȤޤ 'dashed' 'color' ϰΤߤ̣'color' ꤵ줿硢 'dashed' ̵뤵ޤ 'rotate' ˲ž (90 ) 줿ʸѤ褦ˤʤޤ ꤷʤϡ1 ʸ 1 ʸѤ߾夲ƤˡDzž줿ʸ ޤΥץȤϡ \ usepackage{graphicx} ץ ֥ɬפޤ 'small' point ǤΥΰȤ \ scriptsize ε Ѥޤ (¿ʬ TeX ǤϤǡLaTeX2e ǤȤʤǤ礦) ǥեȤǤɸοΥѤޤ 'tiny' ϡ \ scriptscriptstyle εѤޤ 'default' ƤΥץǥեȤͤ˥ꥻåȤޤǥե Ȥϡcolor Ϥʤdashed line Ϥʤž (Ѥ߾夲) ʸλ ѡ礭ʥελѡǤ < fontsize> picture ĶǤΥեȥꤹǤñ pt (ݥ) ǡ10 pt Ϥۤ 3.5 mm Ǥեȥꤷ ʤ硢ƤΥʸ \ footnotesize ꤵޤ

: ʸ # (Ӥ¾ (La)TeX ̤ʰ̣Ĥ¾ʸ) \ \ ( åå 2 ) ǥפ뤳Ȥ˺ʤǤ դγѤ᤹ϼΤ褦ˤʤޤ(줬 tpic specials ΰŪʤΤeepic.sty dvips/dvipdfm ΥХʤΤϻ ˤϤ狼ޤ) ǥեȤ eepic դ礭 5x3 ǡ teminal ץ size ѹǽǤ ǡ (point) ϡLaTeX Υޥ " \ Diamond", " \ Box" ʤɤ ȤäޤΥޥɤϸߤ LaTeX2e Υˤ¸ߤ latexsym ѥå˴ޤޤƤޤΥѥåۤΰ ꡢä¿ LaTeX ΥƥΰˤʤäƤޤΥѥå ȤȤ˺ʤǤlatexsym amssymb ѥå ȤȤǽǤ LaTeX ˴ؤƤΥɥ饤Фʸ֤̤ˡ󶡤 : '{' ǻϤޤʸϡ'}' Ĥɬפޤʸ ʿˤľˤ⥻󥿥󥰤ޤ'[' ǻϤޤʸξ ϡ֤λ򤹤ʸ (t,b,l,r Τ 2 Ĥޤ) ³ ']{'ʸΡǺǸ '}' Ȥޤʸ LaTeX LR-box Ȥޤ' \ rule{}{}' ȤФɤֹ碌ǽǤ

: set term eepic

 ϡդ picture Ķ˴ޤޤ줿 eepic ޥȤƽϤޤ
 Υե LaTeX ʸ \input ǼǤ

set term eepic color tiny rotate 8
 eepic ޥ \color ޥpoint  \scripscriptsize 礭
 ˲ž줿ʸλѡƤʸ 8pt ˥åȤƽ
 ޤ

Фΰֹ碌˴ؤ: gnuplot Υǥե (񤽤ʤˤʤ뤬ǤʤȤ⤢):

      set title '\LaTeX\ -- $ \gamma $'

ʿˤľˤ⥻󥿥:
      set label '{\LaTeX\ -- $ \gamma $}' at 0,0

֤Ū˻ (˹碌):
      set xlabel '[t]{\LaTeX\ -- $ \gamma $}'

¾θФ - ĹФФ븫Ѥ:
      set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}}'

106.15 Emf

emf ɥ饤Ф EMF (Enhanced Metafile Format) եޤ ηΥե¿ MS-Windows ץꥱǧǤޤ

:

     set terminal emf {color | monochrome}
                      {enhanced {noproportional}}
                      {rounded | butt}
                      {linewidth <LW>} {dashlength <DL>}
                      {size XX,YY} {background <rgb_color>}
                      {font "<fontname>{,<fontsize>}"}
                      {fontscale <scale>}

monochorome ⡼ɤޤΥѥ۴ĤǤФޤ linewidth < factor> Ƥ򤳤ǻꤹܤˤޤ dashlength < factor> ϡˤǤ礦 < fontname> ϥե̾ < fontsize> ϥݥñ̤ǤΥեȤ礭Ǥ

ϲηŪ (̾Ф) ϡǥեȤǤŬñ̤Ǥ 1024x768 ˤʤäƤޤץ size Ȥä̤ʷŪʥ Ǥޤ

ĥʸ⡼ (enhanced text mode) ϡץݡʥʸֳ 褦ȤޤΥڡեȤȤ硢뤤Ϥζ 򹥤ޤʤ硢ץ noproportional ȤȤǤ򥪥 ˤǤޤ

ǥեȤϡcolor font "Arial,12" size 1024,768 ǡ default 򤹤ƤΥץ󤬤ΥǥեȤͤˤʤޤ

:

     set terminal emf 'Times Roman Italic, 12'

106.16 Emxvga

emxvga, emxvesa, vgal γƥɥ饤ФϤ줾 SVGA, vesa SVGA, VGA åեåܡɤ PC 򥵥ݡȤޤ DOSޤ OS/2 ǡ"emx-gcc" ǥѥ뤵줿뤳ȤտޤƤޤ ˤϤ VESA ѥå SVGAKIT ɬפǤ Johannes Martin (JMARTIN@GOOFY.ZDV.UNI-MAINZ.DE) ݼ餷 David J. Liu (liu@phri.nyu.edu) ĥƤ饤֥Ǥ

:

     set terminal emxvga
     set terminal emxvesa {vesa-mode}
     set terminal vgal

ͣΥץ emxvesa Ф vesa Υ⡼ɤǡǥեȤǤ G640x480x256 ȤʤäƤޤ

106.17 Epscairo

Ϸ epscairo ϡcairo, pango 饤֥Ѥ EPS (Encapsulated PostScript) ޤcairo version 1.6 ʹߤɬפǤ

ܺ٤ϡpdfcairo ϷΥإפ򻲾ȤƤ

106.18 Epslatex

epslatex ɥ饤Ф LaTeX ǽ٤Ϥޤ

:

     set terminal epslatex   {default}
     set terminal epslatex   {standalone | input}
                             {oldstyle | newstyle}
                             {level1 | leveldefault | level3}
                             {color | colour | monochrome}
                             {background <rgbcolor> | nobackground}
                             {dashlength | dl <DL>}
                             {linewidth | lw <LW>}
                             {rounded | butt}
                             {clip | noclip}
                             {palfuncparam <samples>{,<maxdeviation>}}
                             {size <XX>{unit},<YY>{unit}}
                             {header <header> | noheader}
                             {blacktext | colortext | colourtext}
                             {{font} "fontname{,fontsize}" {<fontsize>}}
                             {fontscale <scale>}

epslatex Ϸϡʸ PostScript ɤ˴ޤޤ LaTeX ե˰ܤȤ terminal postscript eps Ʊͤ褷ޤ äơpostscript terminal ¿Υץ󤬶̤Ǥ

version 4.0 4.2 δ֤ˡpostscript ϷȤΤɤߴ epslatex Ϥѹޤ襵 5 x 3 5 x 3.5 ؤѹ졢ʸϽϥեȥ 50% ȸ ʤƤޤߤ 60% ɾƤޤ¿ Postscript 䵭Ȥޤξ֤ˤ֤ۤˤˤϥץ oldstyle ꤷƤ(ºݤˤϤ鷺ʰ㤤Ĥޤ: Υ鷺˰㤤 (tics) ϽȾʬˤʤäƤޤ set tics scale ѹǤޤ (arrow) ˴ؤƤ postscript ϷǻȤƤεǽѤǤޤ)

ʲΤ褦ʥ顼åФ:

     "Can't find PostScript prologue file ... "

ʲ: postscript prologue (106.47.3)Ƥλؼ˽äƤ

ץ color ϥ顼ͭˤmonochrome ϳǤ 褷ޤˡmonochrome ϳ palette Ѥޤ ϡŪ colorspec ǻꤵ줿ʤοѹޤ

dashlength ޤ dl ʬĹ < DL> (0 礭¿) ꤷ linewidth ޤ lw Ƥ < LW> ꤷޤ

ǥեȤǤϡ PostScript ɤϡä˥ե륿󥰤 filledcurves Τ褦ʤǤܤΰΥѥɤĤ֤ˤơ PostScript Level 2 ȤƾҲ𤵤Ƥ쵡ǽȤޤPostScript Level 2 εǽϾŪݸƤơPostScript Level 1 Υ󥿡 ץ꥿顼Фषå PostScript Level 1 ˤ Ǥ뤳Ȥɽ褦ˤʤäƤޤlevel1 ץϡ εǽ PostScript Level1 ѤPostScript Level 2 ɤڻѤޤ󡣤ϸŤץ󥿤䡢Adobe Illustrator ŤСʤɤɬפˤʤ뤫⤷ޤ󡣤Υե饰 level1 Ϥ줿 PostScript եΤԤԽ뤳Ȥǡ夫 Ū PostScript Level 1 ǽ ON/OFF ˤ뤳ȤǤޤlevel 2 ΥɤޤޤƤ硢εǽϸʤΥե饰 åȤ줿硢뤤 PostScript 󥿥ץ꥿ץब level 2 ʾ PostScript ᤹Ȥϸʤä˷ٹʸ֤ޤlevel3 ץϡӥåȥޥåײ PNG εǽͭ ޤˤϥ򤫤ʤ︺Ǥޤ

rounded ϡüܹݤǥեȤ butt äü ĥäܹѤޤ

clip ϡPostScript ˤ٤ƤνϤ BoundingBox (PostScript γ) ǥåפ뤳Ȥؼޤ; ǥեȤ noclip Ǥ

palfuncparam set palette functions ϤηɤΤ褦˥ ɲ뤫椷ޤŪʿʬؿ (set palatte functions ꤵ) ϡpostscript ϤǤϷ䴰Ѥƥɲ ޤ: ޤʬؿ < samples> Ĥɸܲ졢Ƥ ϡ̤Ȥ䴰Ȥк < maxdeviation> ˼ޤ褦˺ޤۤȤƤͭʥѥåȤǡǥեȤ < samples> =2000 < maxdeviation> =0.003 ͤ򤽤Τޤ޻ȤΤɤǤ礦

PostScript ϤΥǥեȤ礭 10 x 7 ǤEPS ϤΥǥեȤ礭 5 x 3.5 Ǥץ size 桼ꤷΤѹޤǥեȤǤ X Y Υ ñ̤ϥȤߤʤޤ¾ñ (ߤ cm Τ) Ȥ ȤϤǤޤ BoundingBox (PostScript եγ) ϡ ѹ줿ٴޤ褦ꤵޤ ꡼ɸϡץ size ǻꤵ줿ȤΤ 0.0 1.0 ˤʤޤ : ϡϡϷǤ⡢ޥ set size ꤷȸäƤȤѹ̣ޤˡǤ BoundingBox ѹ줺˻ĤäƤޤ꡼ɸºݤθ³бƤޤǤ

blacktext ϡȤ顼⡼ɤǤƤʸǽ񤭤ޤ

epslatex ɥ饤Фʸ֤̤ˡ󶡤ޤ: (a) '{' ǻϤޤʸϡ'}' Ĥɬפޤʸ LaTeX ˤäƿʿˤľˤ⥻󥿥󥰤ޤ (b) '[' ǻϤޤʸξϡ֤λ򤹤ʸ (t,b,l,r,c Τ 2 Ĥޤ) ³ ']{'ʸΡǺǸ '}' Ȥޤ ʸ LaTeX LR-box Ȥޤ \ rule{}{} ȤФ ɤֹ碌ǽǤ礦ʲ⻲: ɥ饤 pslatex (106.48) ˴ؤ ʣԤθФˤ \ shortstack ѤƤ㤨С

  set ylabel '[r]{\shortstack{first line \\ second line}}'

set label ޥɤΥץ back ϻȤޤ¾νϷΤ ΤȤϾäƤޤfront ξθФ¾ƤǤξ˽ ϤΤФơback ȤäФ¾ƤǤβ˽Ϥ ޤ

Υɥ饤Ф 2 Ĥ̤Υեޤ1 ĤϿޤ eps ʬǡ ⤦Ĥ LaTeX ʬǤLaTeX ե̾ϡset output ɤΤΤȤ졢eps ե̾Ϥγĥ (̾ .tex) .eps ֤Τˤʤޤ ϥեꤷʤ LaTeX ϤϹԤʤޤ ! multiplot ⡼ɰʳǤϡԤʤˤνϥե򥯥Τ˺ʤǤ

LaTeX ʸǿޤˤ ' \ input{filename}' ȤƤ .eps ե \ includegraphics{...} ޥɤǼΤǡä LaTeX Υץꥢ֥ \ usepackage{graphicx} ɬפޤ textcolour ץǿդʸѤƤϡLaTeX ץꥢ֥ \ usepackage{color} ɬפޤ

eps ե뤫 'epstopdf' Ȥä pdf ե뤳ȤǤ ޤgraphics ѥåŬڤꤵƤ硢 LaTeX Υե ϡѹʤ pdflatex ˤäƤǤξ eps ե pdf ե뤬ޤޤ

եȤ˴ؤưϥإå⡼ɤ˰¸ޤ ɤξǤ⡢Ϳ줿եȥϥڡη׻ˤȻѤ ޤstandalone ⡼ɤȤʤäϡinclude μºݤ LaTeX եȤȥեȥȤΤǡäƥեȤ ѹˤ LaTeX ޥɤȤäƤ㤨ХեȥȤ LaTeX ʸ 12pt Ȥϡץ '"" 12' Ȥޤ ե̵̾뤵ޤstandalone ȤϡͿ줿ե ȤȥեȥȤޤܺ٤ϲ򻲾ȤƤ

ʸ󤬥顼ɽ뤫ɤ TeX Bool ѿ \ ifGPcolor \ ifGPblacktext 椷ޤ \ ifGPcolor true \ ifGPblacktext false ξΤʸϥ顼ɽޤ TeX ѹ뤫ޤϤʤ TeX եŪͿƤ 㤨

  \newif\ifGPblacktext
  \GPblacktexttrue

򤢤ʤΥեΥץꥢ֥˽񤭤ޤʬŪʻŪͤ ͿƤʤȤΤƯޤ

epslatex ϷȤ硢set output ޥɤ TeX ե̾ ĥդ (̾ ".tex") ͿƤeps ե̾Ϥ ĥҤ ".eps" ֤̾ˤʤޤ

standalone ⡼ɤȤ硢 LaTeX ե˴ LaTeX Υإ ղä졢eps եΥե̾ˤ "-inc" ɲäޤ standalone ⡼ɤϡdvips, pdfTeX, VTeX Ȥǽ Ϥ褦 TeX եޤ ǥեȤ input ⡼ɤǡ \ input ޥɤȤäơ̤

LaTeX ե뤫ɤ߹ޤ褦ʥեޤ

"" "default" ʳΥե̾Ϳ줿硢 LaTeX Υե̾Ȳᤵޤϡ'fontname,fontseries,fontshape' Ρ ޤǶڤ줿 3 İʲʬʤޤǥեȤΥեȥ סեȥ꡼ȤϤϾάǤޤĤޤꡢե ̾Фʽ񼰤ϡ'[fontname][,fontseries][,fontshape]' Ȥ ޤΤʬ̾˴ؤƤ LaTeX ΥեηϤδ˽ ޤfontname 3 4 ʸĹǡΤ褦ʵ§ǺƤ : 1 ܤեȤ¤ɽ 2 Ĥե̾ץ ɲä 1 Ĥ̤ʥեȤ̣㤨 'j' ϵ켰ο եȡ'x' expert եȤʤäƤޤʲˤϡ¿ΥեȤ̾ˤĤƽ񤫤Ƥޤ

http://www.tug.org/fontname/fontname.pdf

㤨 'cmr' Computer Modern Roman եȡ'ptm' Times-Roman, 'phv' Helvetica ɽޤեȥ꡼ʸ̣ Ⱦ 'm' ("medium")'bx' ޤ 'b' (bold) ե Ȥ̣ޤեȥפϰ̤ 'n' Ω (upright)'it' ϥå'sl' ϼ (slanted)'sc' Ͼʸ (small caps) ȤʤޤȤϰۤʤեȥ꡼եȥפͿ եȤ¸ߤޤ

:

Times-Roman (פϼʸƱ) Ȥ:

     set terminal epslatex 'ptm,bx'

Helvetica ǥåȤ:
     set terminal epslatex 'phv,bx,it'

ΤΥפǼΥեȤȤ³:
     set terminal epslatex ',,sl'

ʸ (small caps) Ȥ:
     set terminal epslatex ',,sc'

ˡǤʸΥեȤΤߤѹޤΥեȤѹ ϡ"gnuplot.cfg" ե뤫ޤ header ץȤ ɬפޤˤĤƤϰʲ˽񤭤ޤ

standalone ⡼ɤǤϡեȥ set terminal ޥɤͿ 줿եȥȤޤꤷեȥȤ뤿ˤ LaTeX θѥ "size< size> .clo" Ȥե뤬¸ߤʤФ ޤ󡣥ǥեȤǤ 10pt, 11pt, 12pt ݡȤƤޤѥ "extsizes" 󥹥ȡ뤵ƤС8pt, 9pt, 14pt, 17pt, 20pt ɲäޤ

ץ header ʸޤʸϡ LaTeX ե˽񤭹ޤޤstandalone ⡼ɤȤ硢ʸ ϥץꥢ֥ \ begin{document} ޥɤľ˽񤭹ޤޤ input ⡼ɤǤϡʸ \ begingroup ޥɤľ֤졢 ؤ꤬٤ƶɽŪˤʤ褦ˤޤ

:

T1 եȥ󥳡ǥ󥰤Ȥʸ󡢿եȤ Times-Roman Ȥ󥻥եեȤ Helvetica ѹ:

   set terminal epslatex standalone header \
   "\\usepackage[T1]{fontenc}\n\\usepackage{mathptmx}\n\\usepackage{helvet}"

γʸˤϱƶͿʤ褦 (boldface) ե ȤȤ:
   set terminal epslatex input header "\\bfseries"

ե "gnuplot.cfg" LaTeX ˤäƸĤȡstandalone ⡼ɤȤäƤϡ LaTeX ʸΥץꥢ֥˼ ޤޤɲäԤʤΤ˻Ȥޤ㤨СʸΥե Ȥ TImes-Roman, Helvetica, Courier ѹ("mathptmx.sty" ǰ Ƥ) եȤ:

     \usepackage{mathptmx}
     \usepackage[scaled=0.92]{helvet}
     \usepackage{courier}

ե "gnuplot.cfg" header ޥɤͿإå ɤ߹ޤޤäơ"gnuplot.cfg" ǹԤʤΤĤ header Ȥäƾ񤭤뤳ȤǤޤ

106.19 Epson_180dpi

Υɥ饤Фϥץץ󥿤ΤĤȤΤ򥵥ݡ ޤ

epson_180dpi epson_60dpi Ϥ줾 180dpi (ɥå/), 60dpi β٤ Epson LQ 24 ԥץѤΥɥ饤ФǤ

epson_lx800 Epson LX-800, Star NL-10 NX-1000, PROPRINTER ɤŬʥץ󥿤ήѤǤ롢Ū 9 ԥץ󥿥ɥ饤ФǤ

nec_cp6 NEC CP6 Epson LQ-800 ʤɤΥץ󥿤ǻȤ롢Ū 24 ԥץѤΥɥ饤ФǤ

okidata ɥ饤Ф 9 ԥ OKIDATA 320/321 ɸץ󥿤򥵥ݡȤ ޤ

starc ɥ饤Ф Star 顼ץѤǤ

tandy_60dpi ɥ饤Ф 9 ԥ 60dpi Tandy DMP-130 ꡼ѤǤ

dpu414 ɥ饤Ф Seiko DPU-414 ǮץѤǤ

nec_cp6 ˤϥץ󤬤ޤ:

:

     set terminal nec_cp6 {monochrome | colour | draft}

ǥեȤǤ (monochrome) Ǥ

dpu414 ˤϥץ󤬤ޤ:

:

     set terminal dpu414 {small | medium | large} {normal | draft}

ǥեȤ medium (= եȥ) normal Ǥ Ȥ߹碌ϡmedium normal small draft Ǥ

106.20 Excl

excl ɥ饤Ф EXCL 졼ץ󥿡 1590 Τ褦 Talaris ץ 󥿤򥵥ݡȤޤץϤޤ

106.21 Fig

fig ɥ饤Ф Fig եåǤνϤޤ

:

     set terminal fig {monochrome | color}
                      {landscape | portrait}
                      {small | big | size <xsize> <ysize>}
                      {metric | inches}
                      {pointsmax <max_points>}
                      {solid | dashed}
                      {font "<fontname>{,<fontsize>}"}
                      {textnormal | {textspecial texthidden textrigid}}
                      {{thickness|linewidth} <units>}
                      {depth <layer>}
                      {version <number>}

monochrome color ˤ뤫 color ˤ뤫ꤷ ޤsmall big ϡǥեȤ landscape ⡼ɤǤϥդ 5x3 ˤ뤫 8x5 ˤ뤫portrait ⡼ɤǤ 3x5 ˤ뤫 5x8 ˤ뤫ꤷޤsize ϰϤ < xsize> *< ysize> (ѹ) ޤξñ̤ϡinches metric ˤäƤ줾쥤᡼ȥ뤫ˤʤޤ "xfig" ǤԽФǥեȤñ̤ȤƤȤޤ

pointsmax < max_points> ޤκꤷޤ

solid ϡ (solid) linestyle ȤƤޤäǼưŪ ˻ȤλѤ̤ʷɽޤ

font ϡƥȥեȥե̾ < fontname> ˡեȥ < fontsize> ݥȤꤷޤtextnormal ϥƥȥե饰 ꥻåȤ postscript եȤ򤷡textspecial ϥƥȥե LaTeX special ꤷtexthidden, textrigid Ϥ줾̵ɽ Υƥȡ󥰤ʤƥѤΥե饰ꤷޤ

depth ƤʸФ롢Ťʤ˴ؤǥեȤο (depth layer) ꤷޤǥեȤο 10 ǡ"xfig" ǥ ξ˲񤭤뤿;ϤĤƤޤ

version fig Ϥν񼰥Сꤷޤߤϡ С 3.1 3.2 ΤߤݡȤƤޤ

thickness ϥǥեȤꤷꤵʤ 1 ˤʤ ѹϡplot ޥɤ linetype ͤ 100 ܤοä 뤳ȤǼ¸ǤޤƱͤˡ(ǥեȤοФ) Ǥ ͤ < linetype> 1000 ܤοä뤳ȤǤޤä ο < layer> +< linetype> /1000 ˤʤꡢ (< linetype> %1000) /100 Ȥʤޤͤ 0 ξϥǥեȤˤʤޤ linewidth thickness ƱǤ

plot ޥɤ point ˤκݤε fig ɥ饤 Фɲä뤳ȤǤޤλ (pointtype ) % 100 50 ʾͤȤ졢ɤĤ֤ǻ < pointtype> % 5 ͤ椷سԤϹ (< pointtype> % 10 < 5 ξ) ޤϸߤοǽ񤫤 ޤѲǽʵϰʲ̤Ǥ

       50 - 59:  
       60 - 69:  
       70 - 79:  Ҥ
       80 - 89:  λѷ
       90 - 99:  λѷ

ε礭ϥեȤ礭ȴطƤޤǥեȤǤ οϡɤ顼С¸뤿ˡο 1 ͤˤʤäƤޤ< pointtype> 1000 礭硢 < layer> +< pointtype> /1000-1 ˤʤޤ< pointtype> %1000 100 礭 ɤĤ֤ (< pointtype> %1000)/100-1 ˤʤޤ

ͭɤĤ֤ (1 9) ϡġС忧֡硢򡢰 (⡼ɤǤ 1 6 ޤǤϹ 7 9 ޤǤ) Ǥ

< linetype> < pointtype> ξܺ٤ˤĤƤϡʲ: plot with (84.12)

big ץϰΥС bfig ɥ饤ФʤǤΥɥ饤ФϺϤ⤦ݡȤƤޤ

:

     set terminal fig monochrome small pointsmax 1000  # ǥե


     plot 'file.dat' with points linetype 102 pointtype 759

ϡɤĤ֤줿ߤسԤ 1 ĤǤ


     plot 'file.dat' using 1:2:3 with err linetype 1 pointtype 554

Ϲˤ륨顼С֤ɤĤ֤줿ߤޤαߤ 1 ؤˤʤޤ (ǥեȤǤϿ 9)

ߤξ˥顼С񤯤ˤϰʲΤ褦ˤƤ

     plot 'file.dat' using 1:2:3 with err linetype 1 pointtype 2554

106.22 Ggi

ggi ɥ饤Ф X svgalib Τ褦ʰۤʤ륿åȾưޤ

:

  set terminal ggi [acceleration <integer>] [[mode] {mode}]

X Ǥϡɥޥ͡εǽȤäƥɥΥѹ ȤϤǤޤ󤬡⡼ɤ mode ץȤäơ㤨аʲΤ褦ѹ뤳ȤǤޤ:

- V1024x768
- V800x600
- V640x480
- V320x200

¾Υ⡼ɤˤĤƤϡggi (libggi) ΥɥȤ򻲾ȤƤ  mode ɲäƤ⤷ʤƤ빽Ǥlibggi Υޥ˥奢 ڡǾҲ𤵤Ƥ褦ˡĶѿǥåȤ򤹤뤳Ȥ򤪴 ᤷޤX DGA Ȥʤ顢㤨аʲΤ褦ˤƤ
  bash> export GGI_DISPLAY=DGA
  csh>  setenv GGI_DISPLAY DGA

acceleration ϡŪʥݥư٥Ȥȯ륿å (㤨 DGA) ǤΤ߻Ѥ졢ŪʵΥФΨ (Ѱ ) ɽޤǥեȤ acceleration 7 Ǥ

:

  set term ggi acc 10
  set term ggi acc 1 mode V1024x768
  set term ggi V1024x768

106.23 Gif

:
     set terminal gif 
            {{no}enhanced}
            {{no}transparent} {rounded|butt}
            {linewidth <lw>} {dashlength <dl>}
            {tiny | small | medium | large | giant}
            {font "<face> {,<pointsize>}"} {fontscale <scale>}
            {size <x>,<y>} {{no}crop}
            {animate {delay <d>} {loop <n>} {{no}optimize}}
            {background <rgb_color>}

PNG, JPEG, GIF ϡ饤֥ libgd ȤäޤGIF ϡImageMagick ѥåΥե 'display' ˤνϤʲΤ褦˥ѥפϤȤŪɽ뤳ȤǤޤ:

              set term gif
              set output '| display gif:-'

襳ޥɤνϤϡdisplay ɥŪ < space> ǤĤȤǸ뤳ȤǤޤߤե¸ˤϡ display ɥǺåsave 򤷤Ƥ

transparent ϡɥ饤ФطʿƩ (transparent) Ԥ褦 ޤǥեȤ notransparent Ǥ

ץ linewidth dashlength ϳΨǡ褵뤹٤Ƥ ˱ƶͿޤʤ͡襳ޥɤ׵ᤵ ˳ݻޤ

butt ʬǡüǤΤϤߤ򵯤ʤ᥽å Ȥ褦ɥ饤Ф˻ؼޤϡ 1 礭 ΤͭǤϡʿľξͭѤǤ礦 ǥեȤ rounded (ݤ) Ǥ

եȤξܺ٤ϡʣǤ ʲƱ̣Ĵñ򼨤ޤ:

    set term gif font arial 11
    set term gif font "arial,11"

ܤˤĤƤϡfonts βγ륻򻲾ȤƤ

ץ animate Ϥʤμ긵ˤ gd 饤֥꤬˥᡼ gif κ򥵥ݡȤˤΤͭǤɽ ֤ϡ1/100 ñ̤ǻǤޤ (ǥեȤ 5)ºݤɽ ֤ϡѤɽեȤˤäѲޤ ˥᡼η֤ǤޤǥեȤ 0 Ǥ ̵¤η֤̣ޤ ˥᡼ϡ set output set term ޥɤˤ ƽλޤץ optimize ϡ˥᡼˴ؤ 2 Ĥ ̤ޤ

1) ˥᡼Τ̤ñΥ顼ޥåפѤޤ ˥᡼ƤΥե졼ǻѤƤοǽΥե졼 Ƥɬפޤ

2) ǽʤСġΥե졼ǰΥե졼Ȱ㤦ʬΤߤ˥ ե¸ޤϥե륵򾮤Ƥ ޤƩǽѤƤˤƯʤ⤷ޤ

ξκŬϤ꾮νϥեȤ Ǥ¿ʬθ̤ϡĹ˥᡼󤫤ޤϥե졼ॵ ȤƤ⾮ʾˤΤ̣߰٤Ǥ礦 ץ nooptimize Ϥθ̤򤤤̵ˤޤƥե ϡġΥ顼ޥå (ץ饤١ȥ顼ޥå) Ȥݤ ¸ƤޤդƤޤŬƤʤ˥ եϳ桼ƥƥȤäƸ뤳ȤǤޤ θˤä gnuplot κŬ⾮ʥե뤬 뤫⤷ޤ ǥեȤǤ nooptimize Ǥ

< x,y> ϥԥñ̤ͿޤǥեȤ 640x480 ʲ⻲: canvas (9), set size (95.77) 轪λü;ϡץ crop ǼȤǤη ̤ȤƤβϾʤޤǥեȤ nocrop Ǥ

106.23.1


     set terminal gif medium size 640,480 background '#ffffff'

medium Ρ礭ѹǽDzžǤʤȤ߹ߥե ѤƩʤطʿȤ (16 ʿ 24bit RGB) Ѥ


     set terminal gif font arial 14 enhanced

ϡ'arial' Ȥե̾Υ֥եȤ򸡺ե ȥ 14pt ꤷޤեȤθɤΤ褦˹Ԥ뤫ˤ Ƥϰʲ: fonts (17)ϥ֥եȤʤΤǡĥʸ ⡼ɤѤǤޤ


     set term gif animate transparent opt delay 10 size 200,200
     load "animate2.dem"

ϡ˥᡼ GIF եκѤ gif Ϸ򳫤ޤ ˥᡼θġΥե졼ϡɸǥե뽸ˤ륹ץ ե animate2.dem ˤäޤ

106.24 Gpic

gpic ɥ饤Ф FSF (the Free Software Foundations) "groff" ѥ GPIC ΥդޤǥեȤ礭 5 x 3 Ǥץϸ˴ؤΤΤߤǡǥեȤǤ (0,0) Ǥ

:

     set terminal gpic {<x> <y>}

x y ñ̤ϥǤ

ñʥդˤϰʲΤ褦ˤޤ


     groff -p -mpic -Tps file.pic > file.ps

pic νϤϥѥפ eqn ϤȤǤΤǡ'set label' set {x/y}label ޥɤǥդʣʴؿμ뤳Ȥǽ 㤨С


     set ylab '@space 0 int from 0 to x alpha ( t ) roman d t@'

ȤСʲΥޥɤˤä y ʬФդޤ


     gpic filename.pic | geqn -d@@ -Tps | groff -m[macro-package] -Tps
         > filename.ps

Τ褦ˤƺ줿ޤʸƤϤޤ褦˿̤뤳Ȥ ޤpic ϴñǤΤǡɬפʤưפ˥դľԽ Ǥޤgnuplot Ǻ pic եƤκɸ x+gnuplotx, y+gnuploty ηͿޤǥեȤǤ x, y ͤ 0 Ǥ ĤΥեФƤ x,y 0 ꤷƤԤСʲΤ褦ˤʣΥդĤοޤƤޤȤǤޤ (ǥեȤ礭 5.0x3.0 ):


     .PS 8.0
     x=0;y=3
     copy "figa.pic"
     x=5;y=3
     copy "figb.pic"
     x=0;y=0
     copy "figc.pic"
     x=5;y=0
     copy "figd.pic"
     .PE

ϡ 2 ġĤ 2 Ĥ¤ 4 ĤΥդʤ롢8 ιοޤޤ

ʲΤ褦 x, y ꤹ뤳ȤǤƱȤǤޤ


     set terminal gpic x y

106.25 Grass

grass ɥ饤Ф GRASS 󥷥ƥΥ桼 gnuplot Ѥ 뤳ȤǽˤޤܤˤĤƤ grassp-list@moon.cecer.army.mil ϢäƤڡ GRASS եɥθߤΥե졼 ˽񤫤ޤץϤޤ

106.26 Hp2623a

hp2623a ɥ饤Фϥҥ塼åȥѥå (Hewlett Packard) HP2623A 򥵥ݡȤޤץϤޤ

106.27 Hp2648

hp2648 ɥ饤Фϥҥ塼åȥѥå (Hewlett Packard) HP2647 HP2648 򥵥ݡȤޤץϤޤ

106.28 Hp500c

hp500c ɥ饤Фϥҥ塼åȥѥå (Hewlett Packard) Ҥ HP DeskJet 500c 򥵥ݡȤޤˤϲ٤Ȱ̤˴ؤ륪ץ ޤ

:

     set terminal hp500c {<res>} {<comp>}

res 75, 100, 150, 300 Τ줫β (DPI; dots per inch) ǡcomp "rle" "tiff" Ǥ¾򤹤Ȥϥǥե ȤͤˤʤޤǥեȤ 75 dpi ǰ̤ϤʤǤ٤Ǥ 饹饤ϤΥɬפȤޤ

106.29 Hpgl

hpgl ɥ饤Ф HP7475A ץåΤ褦Ѥ HPGL ϤԤʤ 2 Ĥǽʥץޤ: ϥڥο eject ץǡ"eject" ˥ץå˥ڡӽФ褦ؼ ǥեȤǤ 6 ĤΥڥȤΥڡӽФϹԤʤޤ

Ūʸå ISO-8859-1 CP850 set encoding iso_8859_1 set encoding cp850 ǧ뤳ȤǤޤ (ܺ٤ϡʲ:set encoding (95.23))

:

     set terminal hpgl {<number_of_pens>} {eject}

ʲ


     set terminal hpgl 8 eject

ϡ hp7550 ɥ饤ФƱǡ


     set terminal hpgl 4

ϡ hp7580b ɥ饤ФƱǤ

pcl5 ɥ饤ФϡHewlett-Packard Designjet 750CHewlett-Packard Laserjet III, Hewlett-Packard Laserjet IV Τ褦ʥץå򥵥ݡȤ ޤϼºݤˤ HPGL-2 ѤƤΤǤִ֤̾ξ ޤΥɥ饤ФˤϤĤΥץ󤬤ޤ ʲ˼ǻꤷʤФޤ:

:

     set terminal pcl5 {mode <mode>} {<plotsize>}
         {{color {<number_of_pens>}} | monochrome} {solid | dashed}
         {font <font>} {size <fontsize>} {pspoints | nopspoints}

< mode> landscape portrait Ǥ< plotsize> ϥդʪŪ 襵ǡϰʲΤΤ줫Ǥ: letter ɸ(8 1/2" X 11") ϡlegal (8 1/2" X 14") ϡnoextended (36" X 48") (letter )extended (36" X 55") (ۤ legal )color ʣΥڥ (ʤ顼) Ѥ < number_of_pens> ϥ顼ϤǻѤڥܿ (ʤ) monochrome 1 ܤΥڥ (㤨й) Ǥsolid Ƥ dashed ϰۤʤ亿ѥʬޤ < font> stick, univers, cg_times, zapf_dingbats, antique_olive, arial, courier, garamond_antigua, letter_gothic, cg_omega, albertus, times_new_roman, clarendon, coronet, marigold, truetype_symbols, wingdings Τ줫Ǥ< fontsize> ϥݥ ñ̤ǤΥեȤ礭Ǥμ (point type) ϡnopspoints ꤹ뤳ȤɸŪʥǥեȤ꤫Ǥ褦ˤʤޤ pspoints ꤹ postscript terminal Ʊμ꤫ Ǥ褦ˤʤޤ

ΥץΤĤȤ߹ޤ줿ݡȤϡץ󥿤˰¸ 뤳ȤդƤ㤨ƤΥեȤ϶餯 HP Laserjet IV ǤϥݡȤƤǤ礦HP Laserjet III Designjet 750C 2,3 (㤨 univers, stick) ݡȤƤΤߤǤ礦 ޤlaserjet ν֤ʤΤǡǤϥ顼餫˻Ȥ ޤ

ǥե: landscape, noextended, color (6 pens), solid, univers, 12

           point, nopspoints

pcl5 ǤϹŪʸåȤϥץ󥿤ǰޤΤǡƥʸ Ŭڤ 8-bit ʸɤǡ虜虜 set encoding Ǽ 򤹤ɬפϤޤ

HPGL եå¿ΥեȥѥåǼळȤǽ

106.30 Hpljii

hpljii ɥ饤Ф HP Laserjet Sries II ץ󥿤hpdj ɥ饤Ф HP DeskJet 500 ץ󥿤򥵥ݡȤޤΥɥ饤ФǤϡ 򤬲ǽǤ

:

     set terminal hpljii | hpdj {<res>}

res 75, 100, 150, 300 Τ줫β (DPI; dots per inch) ǡǥեȤ 75 Ǥ٤ǤΥ饹饤ϤΥ ɬפȤޤ

hp500c ɥ饤Ф hpdj ȤۤƱǤhp500c ϲäƥ顼 ̤⥵ݡȤƤޤ

106.31 Hppj

hppj ɥ饤Ф HP PaintJet HP3630 ץ󥿤򥵥ݡȤޤ ϥեȤ򤹤ΤΤߤǤ

:

     set terminal hppj {FNT5X9 | FNT9X17 | FNT13X25}

֥ե (FNT9X17) ǥեȤǤ

106.32 Imagen

imagen ɥ饤Ф Imagen 졼ץ󥿤򥵥ݡȤޤ 1 ʣΥդ֤뤳ȤǽǤ

:

     set terminal imagen {<fontsize>} {portrait | landscape}
                         {[<horiz>,<vert>]}

fontsize ϥǥեȤǤ 12 ݥȤǡ쥤ȤΥǥեȤ landscape Ǥ< horiz> < vert> ϥդȽ˲ ֤ꤷޤΥǥեȤ 1 Ǥ

:

     set terminal imagen portrait [2,3]

ϡ1 ڡ 6 ĤΥդ򲣤 2 󡢽Ĥ 3 󡢽֤ (portrait) ֤ޤ

106.33 Jpeg

:
     set terminal jpeg 
            {{no}enhanced}
            {{no}interlace}
            {linewidth <lw>} {dashlength <dl>} {rounded|butt}
            {tiny | small | medium | large | giant}
            {font "<face> {,<pointsize>}"} {fontscale <scale>}
            {size <x>,<y>} {{no}crop}
            {background <rgb_color>}

PNG, JPEG, GIF ϡ饤֥ libgd Ȥäޤ ξ硢ñʤ PNG ƤơGIF ϥ˥᡼Ѥ »ξʤǡ»Τ JPEG β ޤϡä˥٥ɤ٤طʤǤΥ顼μĤޤ ޤ gnuplot ŵŪʲФƤդ٤ȤǤ

ץ interlace ϡץå JPEG ޤǥ Ȥ nointerlace Ǥ

ץ linewidth dashlength ϳΨǡ褵뤹٤Ƥ ˱ƶͿޤʤ͡襳ޥɤ׵ᤵ ˳ݻޤ

butt ʬǡüǤΤϤߤ򵯤ʤ᥽å Ȥ褦ɥ饤Ф˻ؼޤϡ 1 礭 ΤͭǤϡʿľξͭѤǤ礦 ǥեȤ rounded (ݤ) Ǥ

եȤξܺ٤ϡʣǤ ʲƱ̣Ĵñ򼨤ޤ:

    set term jpeg font arial 11
    set term jpeg font "arial,11"

ܤˤĤƤϡfonts βγ륻򻲾ȤƤ

< x,y> ϥԥñ̤ͿޤǥեȤ 640x480 ʲ⻲: canvas (9), set size (95.77) 轪λü;ϡץ crop ǼȤǤη ̤ȤƤβϾʤޤǥեȤ nocrop Ǥ

106.34 Kyo

kyo prescribe Υɥ饤Ф Kyocera () 졼ץ󥿤 ݡȤޤξԤͣΰ㤤ϡkyo "Helvetica" Ȥ Ф prescribe "Courier" ȤȤǤץϤ ޤ

106.35 Latex

:
     set terminal {latex | emtex} {default | {courier|roman} {<fontsize>}}
                  {size <XX>{unit}, <YY>{unit}} {rotate | norotate}

ǥեȤǤϡʸΥեȤѤޤ Courier (cmtt) Roman (cmr) եȤΤ줫ˤ륪ץ 󤬻ȤޤκݤϥեȥǤޤ ʤ DVI ɥ饤ФǤդΥΥեȤФȤǤʤ (㤨 dvips)ɸŪ 10, 11, 12 ݥȥǤʤȤ Ǥ

METAFONT 桼ؤηٹ: METAFONT ̯ʥϹߤޤ

LaTeX ˴ؤƤΥɥ饤Фʸ֤̤ˡ󶡤 : '{' ǻϤޤʸϡ'}' Ĥɬפޤʸ ʿˤľˤ⥻󥿥󥰤ޤ'[' ǻϤޤʸξ ϡ֤λ򤹤ʸ (t,b,l,r Τ 2 Ĥޤ) ³ ']{'ʸΡǺǸ '}' Ȥޤʸ LaTeX LR-box Ȥޤ' \ rule{}{}' ȤФɤֹ碌ǽǤ

ǡ (point) ϡLaTeX Υޥ " \ Diamond" " \ Box" äޤΥޥɤϸߤ LaTeX2e Υˤ¸ߤ latexsym ѥå˴ޤޤƤޤΥѥåۤΰ ꡢä¿ LaTeX ΥƥΰˤʤäƤޤΥѥå ȤȤ˺ʤǤ ¾ϡamssymb ѥåεѤޤ

ǥեȤ襵 5 inch 3 inch Ǥץ size 桼δ˾ΤѹǤޤޤǥեȤǤ X Y Υñ̤ inch Ǥ¾ñ̤ȤȤǽǤ (ߤ cm Τ)

'rotate' ꤹȡʸβžä y Υ٥βžǽˤ ޤ (graphics graphicx ѥåɬ)ξ硢y ٥ 'Ѥ߾夲' ˤȤߤߤޤ

: Фΰֹ碌˴ؤ: gnuplot Υǥե (񤽤ʤˤʤ뤬ǤʤȤ⤢):

      set title '\LaTeX\ -- $ \gamma $'

ʿˤľˤ⥻󥿥:
      set label '{\LaTeX\ -- $ \gamma $}' at 0,0

֤Ū˻ (˹碌):
      set xlabel '[t]{\LaTeX\ -- $ \gamma $}'

¾θФ - ĹФФ븫Ѥ:
      set ylabel '[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}}'

106.36 Linux

linux ɥ饤Фˤϻꤹ륪ץϲ⤢ޤ󡣤ϥǥե ȤΥ⡼Ѥ˴Ķѿ GSVGAMODE 򻲾Ȥޤ⤷줬ꤵƤ ʤ 1024x768x256 ǥեȤȤƻѤޤ줬Ǥʤ 640x480x16 (ɸ VGA) Ȥޤ

106.37 Lua

lua ϥɥ饤Фϡоե뤿Ρ Lua ץȤȤȤ߹碌ǵǽޤߥݡȤƤо ϡTikZ -> pdflatex ΤߤǤ

Lua ˴ؤϡhttp://www.lua.org ǻȤǤޤ

:

  set terminal lua <target name> | "<file name>"
                      {<script_args> ...}
                      {help}

ץѤ 'target name'ޤϰդ 'file name' ɬܤ ץȤ 'target name' ͿϡνϷϡ "gnuplot-< target name> .lua" ޤǥ쥯ȥõ ԤȴĶѿ GNUPLOT_LUA_DIR õޤ

¾Τ٤Ƥΰϡ򤷤ץȤɾ褦Ϳ 㤨С'set term lua tikz help' ϡץȤ켫Ȥˡ ץѤΥץ˴ؤɲäΥإפɽޤ

106.37.1 Lua tikz

TikZ ɥ饤Фϡ Lua Ϸνϥ⡼ɤΰĤǤ

:

   set terminal lua tikz


    {latex | tex | context}
    {color | monochrome}
    {dashed | solid}
    {nooriginreset | originreset}
    {nogparrows | gparrows}
    {nogppoints | gppoints}
    {picenvironment | nopicenvironment}
    {noclip | clip}
    {notightboundingbox | tightboundingbox}
    {background "<colorpec>"}
    {size <x>{unit},<y>{unit}}
    {scale <x>,<y>}
    {plotsize <x>{unit},<y>{unit}}
    {charsize <x>{unit},<y>{unit}}
    {font "<fontdesc>"}
    {{fontscale | textscale} <scale>}
    {nofulldoc | nostandalone | fulldoc | standalone}
    {{preamble | header} "<preamble_string>"}
    {tikzplot <ltn>,...}
    {notikzarrows | tikzarrows}
    {rgbimages | cmykimages}
    {noexternalimages|externalimages}
    {bitmap | nobitmap}
    {providevars <var name>,...}
    {createstyle}
    {help}

ȤĹɬפȤ륪ץˤĤƤϡñ̤ꤵƤʤ ФΥǥեȤ 'cm' Ȥʤޤ٤ƤĹˤϡʲñ̤ѤǤޤ: 'cm', 'mm', 'in' ޤ 'inch', 'pt', 'pc', 'bp', 'dd','cc' (: in ϥ (1in=2.54cm), pt ϥݥ (72.27pt=1in), pc ϥѥ (1pc=12pt), bp ϥӥåݥ (72bp=1in), dd Didot ݥ (26.6dd=1cm), cc Cicero (1cc=12dd))ͤñ̤δ֤˶ ƤϤޤ

'monochrome' ϡοդ̵ˤɤ٤򳥿Ĵڤؤ

'solid' ϡΤߤѤޤ

'originreset' ϡTikZ θκѤذưޤϤ ĤĤ tikzpicture Ķ󤹤Τ˻ѤǤޤ ϡmultiplotpm3d ǤϽʬˤϥƥȤƤޤ

'gparrows' ϡTikZ 󶡤 (arrow) ˡgnuplot (arrow) ؿѤޤ

'gppoints' ϡTikZ 󶡤赭ˡgnuplot ε ؿѤޤ

'nopicenvironment' ϡ'tikzpicture' ĶưǹԤ褦ˤ ˤάޤˤꡢˡ PGF/TikZ ľ뤳ȤǤޤ

'clip' ϡ줿Хǥåԥ󥰤ޤǥե Ȥ 'noclip' ǡϥХޤǾζȤΤߤ ꤷޤץ 'plotsize' 'tightboundingbox' Ѥ Ȥ⥯åԥ󥰤Ȣ⤤ꤷޤ

'tightboundingbox' ꤹȡץ 'clip' ̵뤵졢ǽŪ Ȥ tikz ׻뼫ʳȤˤʤޤ

'background' ϡطʿ < colorspec> ǻꤷͤꤷޤ < colorspec> ͭʿ̾'#' θ 16 ʿ֤ 3 ХȤ RGB (㤨 '#ff0000' Ͽ) Τ줫ǤʤФޤ󡣾ά طʤƩˤʤޤ

ץ 'size' ϡХ 2 ĤĹ < x> , < y> ɬפ ޤǥեȤΥХ 12.5cm x 8.75cm Ǥ

ץ 'scale' ϡץ 'size' ƱεǽǤ < x> , < y> ĹǤϤʤΨˤʤޤ

ץ 'plotsize' ϡХΰΥ Ԥޤ줬̾ gnuplot εưǤΥץ Ѥȡ鷺оΤʹ뤫⤷ޤ'originreset' 褦ˡΥץ multiplot pm3d ǻѤȡԹ ̤򾷤줬ޤˡȤơ٤Ƥ margin 0 ꤷǥץ 'noclip' Ѥ롢Ȥ⤢ޤ ϡΰͿХ礭ˤʤޤ

ץ 'charsize' ϡѤեȤοʿȿľʿ ͤɬפȤޤʤ TeX ʸǤɤΤ褦˻Ѥ뤫 ĤƤϡץȤ륹ե򸫤Ƥ

ץ 'fontscale', 'textscale' ˤϡ̼ѥ᡼ɬפǤ Τ٤Ƥʸ󤬤ν̼ǿ̤ޤ

ץ 'tex', 'latex', 'context' ϡTeX ϷǤǥե Ȥ LaTeX ǤΥեɤ߹ˤϡʤʸե ƬбԤƤ:

 \input gnuplot-lua-tikz.tex    % (plain TeX ξ)
 \usepackage{gnuplot-lua-tikz}  % (LaTeX ξ)
 \usemodule[gnuplot-lua-tikz]   % (ConTeXt ξ)

'createstyle' ϡΥץȤ TeX/LaTeX/ConTeXt ե ƳФŬڤʥե˽񤭽Фޤ

'fulldoc' ޤ 'standalone' ϡΤޤޥѥǤ褦ʴ LaTeX ʸޤ

'preamble' ޤ 'header' ϡstandalone ⡼ɤΥɥȤΥץꥢ ֥ɲ LaTeX ɤϤΤ˻Ȥޤ

ץ 'tikzplot' Ǥϡޥ ' \ path' ' \ path plot' Ѥޤ³ (linetype) οͤΥꥹ (< ltn> ,...) ˱ƶޤ٤ƤФĤ襹 뤬¸ߤޤ1 ʾΤ٤ƤФơǥեȤ襹 'smooth' Ǥ

ץ 'tikzarrows' Ѥȡ桼 gnuplot (arrow) Υ TikZ Υ˳Ƥޤϡ γѤͤ 'äƻѤ' ȤǤʤƤޤ㤨С '7' Υ TikZ 'gp arrow 7' ˳Ƥ졢¾Ϳ 줿ͤϤ٤̵뤵ޤǥեȤǤϡTikZ ϷϤ٤Ƥ Фƥƥ륹ѤޤǥեȤ gnuplot Τ褦 ˤϡץ 'gparrows' ѤƤ

'cmykimages' Ǥϡ饤ǡФ RGB 顼ǥ CMYK ǥѤޤ¾Τ٤Ƥο (οʤ) ϡ 㤨 xcolors ѥåǽΤǡΥץαƶ ޤ󡣤Υץϡ饤ǤʤǡǤ ̵뤵ޤ

ץ 'externalimages' Ѥȡ٤ƤΥӥåȥޥåײ PNG Ȥƽ񤭽Ф餬ʸΥѥɤ߹ޤ ˤʤޤDVI ե롢Ӥθ PostScript ե ˤϡPNG ե EPS եˡ̤Ѵɬפޤ 㤨 ImageMagick convert ǹԤޤƩӥåȥޥåײ ˳ PNG Ȥޤ

ץ 'nobitmap' ϡͥƥ֤ PS, PDF 饤 ˡɤ٤줿ĹȤƥ󥰤ޤΥץ ϡ饤ǤʤǡǤ̵뤵ޤ

ץ 'providevars' ϡgnuplot ѿ桼ѿTeX ץǤ⥳ޥ ' \ gpgetvar{< var name> }' Ѥ뤳ȤѲ ǽˤޤѤǤѿΰ򸫤ˤϡ'show variables all' ޥɤѤƤ

ʸ < fontdesc> ˤϡ㤨 ' \ small' Τ褦 TeX/LaTeX/ConTeXt ͭʥեȥޥɤ뤳ȤǤϡ"font=< fontdesc> " ηΥΡɥѥ᡼ȤľϤޤϡΡɤ˥ ɤɲäΤˡ֤虜ȴְ㤨ơ׻Ȥޤ㤨 ' \ small,yshift=1ex' ͭǤ',yshift=1ex' ͭǡϸߤΥեѹ ޤ󡣤ꥹȤ 2 㳰Ǥ줬 < > {ñ} η οͤξ硢¾νϷǤǤ褦˥եȥȲ 졢 1 ɲäƤޤޤñ̤ά줿ͤ 'pt' ñ̤ ᤵޤ㤨С' \ sffamily,12,fill=red' ϡطʿ֤ 12pt LaTeX sans serif եȤꤷޤ ƱȤ ConTeXt ˤޤ㤨С' \ switchtobodyfont[iwona],10' ϥեȤ 10pt Iwona ѹޤ Plain TeX 桼ϡեȥѹϺǽΰŪ˹Ԥʤ Фޤ󡣥ƥȥܥåν̼ܤ褦2 ܤƱ ͤꤹ٤Ǥ

ʸñ졢뤤ŰɬפޤŰ 줿ʸˤϡԤ ' \ n' ʤɤ̤ʸ뤳ȤǤ ޤ

106.38 Mf

mf ɥ饤Ф METAFONT ץؤϥեޤä οޤ TeX ʸǤʸƱ褦˻ȤȤǤޤ

ʸǿޤȤˤϡgnuplot νϤեϤȤ METAFONT ץ¹Ԥɬפޤäơ桼ϥեȤ ץȿäեȤɥȤ˼िδμ ɬפȤʤޤѤ륵Ȥ METAFONT ץबŬڤ ꤵƤСиΤʤ桼Ǥ⤽ʤϤǤǤ礦

ʸ METAFONT ʸåȤ˴ŤƥݡȤޤ Ǥ Computer Modern Roman եȥåȤϤǤ桼ɬפ եȤ򲿤Ǥ⼫ͳ֤ȤǤޤեȤ METAFONT ե뤬Ȥ֤ˤʤäƤɬפޤġ ʸ METAFONT ̡Υԥ㡼ѿ¸졢ʸɬפˤʤ Ȥˤѿ (ž) ޤϡMETAFONT ץबפ֤Ǥ׻ (Ĥޤ PC) Ǥϡԥ 㡼ѿ򤿤Ѥ뤳ȤǡȤ̤θ³ Ȥ⤢ޤ

mf ɥ饤ФˤϥץϤޤ

106.38.1 METAFONT λȤ

- Ϸ (terminal) METAFONT ˥å:

 set terminal mf

- ϥե̾ꡣ㤨:
 set output "myfigures.mf"

- դ衣ƥդ̡ʸΥǥեȤ礭 5x3 Ǥ礭 set size 0.5,0.5 Τ褦ˤƤɤʥ ˤǤ⼫ͳѹǤޤ

- gnuplot λ

- gnuplot νϥեФ METAFONT ¹ԤTFM ե GF եޤդϳ礭 (5x3 ) Τǡmemmax ͤ ʤȤ 150000 Ǥ METAFONT ȤɬפǤ礦Unix Ǥϡ ̾ bigmf Ȥ̾ǥ󥹥ȡ뤵ƤǤ礦ʲǤϡvirmf ޥɤ big Ǥ METAFONT ǤȲꤷ¹򼨤ޤ:

- METAFONT Ω夲:

   virmf '&plain'

- ֤: METAFONT ץץ ('*') ǼΤ褦Ǥޤ:
   \mode:=CanonCX;     % ʤλѤץ󥿤

- Ψ (magnification) (ץ):
   mag:=1;             % ʤιߤͤ

- gnuplot Ǻäե:
   input myfigures.mf

ŵŪ Unix ޥǤϡvirmf '&plain' ¹Ԥ륹ץ "mf" Τǡvirmf &plain mf Ȥޤˤ mfput.tfm mfput.$$$gf ($$$ Ͻ֤β) 2 ĤΥե뤬ޤ κȤϡ٤Ƥ򥳥ޥɥ饤Ǵñ˼¹Ԥ뤳ȤǤޤ: virmf '&plain' ' \ mode:=CanonCX; mag:=1; input myfigures.mf' ξ硢ե̾ myfigures.tfm myfigures.300gf Ȥ ̾ˤʤޤ

- gftopk Ȥä GF ե뤫 PK ե:

 gftopk myfigures.300gf myfigures.300pk

gftopk ե̾ϤʤѤ DVI ɥ饤Ф˰¸ޤ ΤǡȤ TeX δԤ˥ե̾ε§ˤĤʹƤ TFM ե PK եŬʥǥ쥯ȥ˥󥹥ȡ뤹뤫 ޤϴĶѿŬڤͤꤷޤ̾綠ϡTEXFONTS ˥ȥ 쥯ȥޤ뤳ȤȡʤѤ DVI ɥ饤ФѤƤ ѿ (ɸŪ̾Ϥޤ ...) ФƱȤкѤߤ TeX եȥȥå (TFM) ե 򸫤ĤDVI ɥ饤 Ф PK ե򸫤Ĥ褦ˤ뤿ɬפʺȤǤ

- ʸˤΥդ뤿 TeX ˤΥե̾ؼ:

 \font\gnufigs=myfigures

ƥդϡǽΥդʸ 02 ܤΥդʸ 1 Ȥ褦ˡ 줾ĤʸȤ¸Ƥޤ嵭κȤԤʤȡ Ϥ¾ʸƱ褦˻ȤȤǤ㤨Х 1 2 ʸ ˥󥿥󥰤֤ plain TeX եǤ٤Ȥ:
 \centerline{\gnufigs\char0}
 \centerline{\gnufigs\char1}

Ǥ LaTeX Ǥ picture ĶȤä \ makebox \ put Ǥդΰ֤˥դ֤뤳ȤǤޤ

Τϡ٥եȤƤޤС˻֤ˤʤ : TeX ϥդʸȤƻȤ֤ˤϤʤ֤ Ѥޤ󤷡դʸ뤳Ȥ¿Ǥ礦顣 Ƥ TeX ΥˤʤޤMETAFONT ɥ饤ФȤ ǸΰĤϡ DVI ե뤬ΥǥХ¸ ˤʤȤȤǤ eepic tpic ɥ饤ФΤ褦 \ special ޥɤȤʤǤ

106.39 Mif

mif ɥ饤Ф Frame Maker MIF եޥå (version 3.00) νϤ ޤ 15*10 cm Υ MIF ե졼ϤƱڥ ǽ񤫤륰դδǤƱ MIF 롼פ˥롼ײޤ gnuplot 1 ڡˤ륰դδǤϰĤ MIF ե졼 褵졢Ĥ MIF ե졼ϰĤ礭 MIF ե졼˽ ޤʸǻȤ MIF եȤ "Times" Ǥ

MIF 3.00 ɥ饤ФǤϤĤΥץǤޤ

:

     set terminal mif {color | colour | monochrome} {polyline | vectors}
                      {help | ?}

colour (line type) > = 0 򥫥顼 (MIF separation 2-7) ǡ monochrome Ƥ (MIF separation 0) 褷ޤ polyline ϶Ϣ³Ȥ褷vectors ϶٥ȥ ޤȤ褷ޤ help ? ϥ饤إפɸ२顼ϤɽޤξԤϤ λˡûϤhelp Ϲ˥ץɽޤ

:

     set term mif colour polylines    # ǥե
     set term mif                     # ǥե
     set term mif vectors
     set term mif help

106.40 Mp

mp ɥ饤Ф Metapost ץϤ뤳ȤտޤϤ ΥեФ Metapost ¹Ԥȥդޤ EPS ե 뤬ޤǥեȤǤ Metapost Ƥʸ TeX ̤ ϥȥ丫ФǤդ TeX εܼŪ˻ȤȤǤ 롢ȤĤȤ̣ޤ

:

  set term mp {color | colour | monochrome}
              {solid | dashed}
              {notex | tex | latex}
              {magnification <magsize>}
              {psnfss | psnfss-version7 | nopsnfss}
              {prologues <value>}
              {a4paper}
              {amstex}
              {"<fontname> {,<fontsize>}"}

ץ color 򥫥顼ǽ񤯤Ȥ̣ (򥵥ݡȤ ץ󥿤ǥץ쥤)monochrome (ޤϲꤷʤ) Ϲ򤵤ޤץ solid dashed (ޤ̵) ۤʤѥʬޤsolid ꤵƤ color ꤵʤä硢ۤȤƤƱ ΤˤʤޤⲿξˤͭѤǤ礦ǧƤޤ

ץ notex ϴ TeX 򱪲󤷤ޤΤǡΥץθ ϸФˤ TeX ΥɤϻȤȤǤޤ󡣤ϡŤե 롢뤤 TeX Ǥü쵭ȤƲᤵƤޤ $ % 褦ʰŪʸ򤿤ȤեΤѰդƤޤ

ץ tex ϡTeX ǽʸϤ褦ꤷޤ

ץ latex ϡLaTeX ǽʸϤ褦ꤷ ˤä TeX ǤϻȤʤ LaTeX ǤϻȤΡ㤨ʬ \ frac ǽ񤤤ꤹ뤳ȤǤޤΥץȤϡ Ķѿ TEX LaTeX μ¹ԥץ̾ (̾ latex) ꤹ뤫 뤤 mpost -tex=< LaTeX μ¹ԥץ̾> ... Ȥ뤳Ȥ˺ ʤǤǤʤ metapost ϥƥȤν TeX Ȥ ȤƼԤƤޤǤ礦

TeX ˤեȥѹϿˤϸ̤ʤΤ褦ѹ ԤʤȤƤñˡϡŪ˳Ψ (magnification factor) ʳˤϤޤ󡣤줬ץ magnification ΰ̣Ǥ ξϳΨ˻ꤹɬפޤƤʸ (դǤ ʤ) ϤΨdz礵ޤǥեȤ 10pt ʳ¾Υǽ񤭤ϤѤƤǰʤȤƤοƱ ˤʤäƤޤޤʲ MP ϤԽ˴ؤ򻲾ȤƤmag notex θǤƯޤԤʤ ̣ʤ餤 (ʲ˽Ҥ٤) եȥץϤޤƯ

ץ psnfss postscript եȤ LaTeX Ȥ߹碌ƻ ޤΥץ LaTeX ȤΤ̣߰ޤΤǡ ưŪ latex ץ򤵤ޤΥץϰʲLaTeX ѥåѤޤ:inputenc(latin1), fontenc(T1), mathptmx, helvet(scaled=09.2), courier, latexsym, textcomp

ץ psnfss-version7 postscript եȤ LaTeX Ȥ߹ ƻѤޤ (latex ưŪ򤵤ޤ) ʲ LaTeX ѥåѤޤ:inputenc(latin1), fontenc(T1), times, mathptmx, helvet, courier

ץ nopsnfss ϥǥեȤǡɸŪʥե (ꤵ ʤ cmr10) Ȥޤ

ץ prologues ɲäͤ˻metapost ե prologues:=< > ȤԤɲäޤͤȤ 2 ꤹ metapost eps ե褦 postscript եȤѤ ˤꤽη̤㤨 ghostscript ʤɤǻȤǤ褦ˤʤޤɸ Ǥ metapost TeX ΥեȤѤޤΤǡ򻲾Ȥˤ (La)TeX Υե˼ɬפޤ

ץ noprologues ϥǥեȤǡprologue ǻꤷʤ ɲäޤ

ץ a4paper [a4paper] documentclass ɲäޤɸ Ǥ letter ѻ (ǥե) ȤޤΥץ LaTeX ǤΤ߻ȤޤΤǡưŪ latex ץ򤵤ޤ

ץ amstex ϡưŪ latex ץ򤷡ʲLaTeX ѥåѤޤ: amsfonts, amsmath(intlimits)ǥե ǤϤϻѤޤ

ǰϤޤ줿̾ϥե̾ɽset label set title Ū˥եȤͿʤϤΥեȤȤޤե TeX ǧǤ (TFM ե뤬¸ߤ) ΤȤɬפޤ ǥեȤǤ notex 򤵤Ƥʤ "cmr10" Ǥʤ "pcrr8r" (Courier) Ȥޤnotex θǤ⡢Metapost ˤ TFM եɬפǤpcrr8r.tfm LaTeX psnfss ѥå Courier ե̾ȤͿƤޤnotex ΥǥեȤե ȤѹϡʤȤ 32-126 ΥϰϤ ASCII 󥳡 ǥ󥰤˰פΤǤcmtt10 ܻۤȤޤ ϥ 32 (ڡ) ˥ڡǤϤʤʸäƤޤ

5.0 99.99 δ֤ǤդοǤά줿 10.0 Ȥޤʤ٤ magstep Ĥޤ 1.2 ޤ 0.5 10 ܤ򾮿ʲ 2 ̤ݤ᤿ͤѤ뤳Ȥ򤪴ᤷޤϤ줬 TeX ΥƥǺǤ褯ȤեȤΥ Ǥ

ƤΥץϾάǽǤեȤꤹϤ (ɬפ 饵Ĥ) ֺǸ˻ꤹɬפޤե̾ˤΥ 󤬴ޤޤƤȤƤ⡢Ѥˤϥեȥ ɬפޤ㤨 set term mp "cmtt12" cmtt12 ǥե ȤΥǤ 10 ˽̤ƻȤޤ¿ʬ˾ޤʤȤǤ礦 cmtt10 ȤɤǤ礦

ʲ ascii ʸϡTeX Ǥ̤˰ޤ:

  $, &, #, %, _;  |, <, >;  ^, ~,  \, {, }

$, #, &, _, % 5 Ĥϡ㤨 \ $ Ȥ뤳Ȥưפˤ򥨥 פǤޤ< , > , | 3 Ĥϡ㤨 $< $ Τ褦˿⡼ɤ ФޤޤĤΤΤ˴ؤƤϾ TeX βɬפˤ ޤŬʤ褤 TeX ܤƳƤǤ礦

ФŰǰϤ硢TeX ɤΥХååϥ (2 Ľ) ɬפޤñȤФ򤱤뤳ȤϤ ޤ٤ϲԤȤ \ n Ȥʤʤޤ񤤤Ƥ븽 ߡgnuplot 3.7 plot ޥɤͿ줿ȥϡ̤ʾͿ 줿Ȥϰۤʤ򤷤ޤΥˤ餺 TeX ޥɤΥХååŲɤǤ

Metapost β TeX ʸǰ̤˻ȤƤޤMetapost ϥե Ȥ TeX ԤʤΤƱˡǰ¾ʸ ȤϰۤʤäƤޤդ LaTeX ʸ graphics ѥå Ǽޤ졢뤤 epsf.tex Ȥä plainTeX ˼ޤ졢 dvips (ޤ¾ dvi ps ؤѴե) PostScript Ѵ 硢ΥʸƤǤ礦 Metapost Ϥ򤽤Τޤ PostScript 󥿥ץ꥿äƤ⡢ ʸϽϤʤǤ礦

106.40.1 Metapost λȤ

- ޤ terminal ɥ饤Ф Metapost ꡢ㤨:

  set terminal mp mono "cmtt12" 12

- ϥե㤨:

  set output "figure.mp"

- դ plot (ޤ multiplot γƥ롼) Ϥ줾̤ Metapost beginfig...endfig 롼פʬޤΥǥեȤΥ 5x3 Ǥ set size 0.5,0.5 Ȥ פŬʳ򤽤Τ褦˻ꤹ뤳ȤѹǤޤ

- gnuplot λ

- gnuplot νϥեФ Metapost ¹Ԥ EPS ե :

  mpost figure.mp  OR  mp figure.mp

Metapost ץ̾ϥƥ˰¸Unix Ǥ̾ mpost ǡ¾ ¿ΥƥǤ mp ǤMetapost ϳƥդФ 1 ĤĤ EPS եޤ

- Υդʸ˼ˤ LaTeX graphics ѥå䡢plainTeX Ǥ epsf.tex :

  \usepackage{graphics} % LaTeX
  \input epsf.tex       % plainTeX

TeX DVI Ϥ PS ѴΤˡdvips ʳ DVI ɥ饤ФȤϡLaTeX ե˰ʲιԤɬפ뤫Τޤ:
  \DeclareGraphicsRule{*}{eps}{*}{}

줿ƥդʬΥեˤʤäƤơǽΥդΥե ϡ㤨 figure.0, 2 ܤ㤨 figure.1 Τ褦̾ˤʤޤ äơ3 ܤΥդʸ˼िˤʤʤФʤ ȤϰʲΤߤǤ:
  \includegraphics{figure.2} % LaTeX
  \epsfbox{figure.2}         % plainTeX

mp ɥ饤Ф postscript ɥ饤Фϡ⤷ȤС ԽǽʽϤǤȤȤǤ礦νϤǽʸ¤ 뤿ΡʤϤʧޤMetapost ˴ؤ뤽 μΤǡǥեȤ俧 lt[] col[] Խ 뤳ȤѹǤ褦ˤʤޤ/顼/Ȥä ⡢ͤȤƤ dashedlines colorlines ѹ 뤳ȤǹԤʤޤǥեȤ tex ץͭʾ硢֥ å vebatimtex...etex Խ뤳Ȥǡ٥ʸեȤФ ŪѹԤʤޤäˡ⤷˾ʤ LaTeX Υץꥢ֥ ä뤳ȤǤξ LaTeX λĥѹޥɤȤΤ νȯǤǤ礦Metapost plainTeX Ǥʤ LaTeX ¹Ԥ褦Ŭڤ MP ѿꤹ뤳Ȥ˺ʤǤ

106.41 Pbm

:
     set terminal pbm {<fontsize>} {<mode>} {size <x>,<y>}

< fontsize> small medium large ǡ< mode> monochrome gray color ǤǥեȤ襵 640 ԥ 480 ԥι⤵Ǥϥϡx y ξ 8 ԥܤ Τ˺Ǥ᤯ʤ褦˶ɲäޤɬפǤСζʬ ϸǼȤǤޤ

pbm ɥ饤ФνϤ < mode> ˤޤ: monochrome portable bitmap (PBM; 1 ԥ 1 ӥå) gray portable graymap (PGM; 1 ԥ 3 bit) color portable pixmap (PPM; 1 ԥ 4 å) Ϥޤ

Υɥ饤ФνϤϡNETPBM ˤä󶡤͡ʲѴ ġǻȤȤǤޤ Jef Poskanzer PBMPLUS ѥå˴ Ť NETPBM ϡ嵭 PBM GIF, TIFF, MacPaint, Macintosh PICT, PCX, X11 ӥåȥޥåס¾¿ηѴץ ޤʾ http://netpbm.sourceforge.net/ ˤޤ

:

     set terminal pbm small monochrome                # ǥե
     set terminal pbm color medium size 800,600
     set output '| pnmrotate 45 | pnmtopng > tilted.png'  # NETPBM 

106.42 Pdf

Υɥ饤Ф Adobe PDF (Portable Document Format) Ϥ Acrobat Reader Τ褦ʥġɽǤޤ [侩] νϷϡPortable Document Format Υե Τˡե꡼ǤϤʤ饤֥ PDFlib (GmbH Munchen)Ѥޤ ʤPDFlib ξѥ饤󥹤äƤΤǤʤСƤ줬 󶡤̤ʵǽɬפȤΤǤʤС cairopdf ϷѤǤ礦gnuplot Ǥϡwxt qt Τ褦 ϷǤκ PDF ե뤳ȤǤޤ

:

     set terminal pdf {monochrome|color|colour}
                      {{no}enhanced}
                      {fname "<font>"} {fsize <fontsize>}
                      {font "<fontname>{,<fontsize>}"} {fontscale <scale>}
                      {linewidth <lw>} {rounded|butt}
                      {dl <dashlength>}
                      {size <XX>{unit},<YY>{unit}}

ǥեȤǤϡġФưۤʤ뿧Ѥޤmonochrome 򤹤ƤޤΥ⡼ɤǤɤĤ֤ΰ 饤󥹥ǤŪ˿Ѥ뤳ȤǤޤ

< font> ϥǥեȤǻȤե̾ (ǥեȤǤ Helvetica) < fontsize> ϥݥñ̤ǤΥեȥ (ǥեȤǤ 12) Ǥ ɤΤ褦ʥեȤȤơեȤ򥤥󥹥ȡ뤹ˤϡȤ äȤ˴ؤƤϡ˥󥹥ȡ뤵Ƥ pdflib Υɥ Ȥ򻲾ȤƤ

ץ enhanced ϡĥʸǽ (դʸդʸ ʣΥեȤ) ͭˤޤʲ: enhanced (14)

ˤƤ linewidth ǻꤹ < n> ä뤳 ȤǤޤƱͤˡdashlength ϥǥեȤζʬФ ѰҤǤ

rounded ϡüܹݤǥեȤ butt äü ĥäܹѤޤ

PDF ϤΥǥեȤΥϡ5inch x 3inch Ǥץ size ϡ桼λꤹΤѹޤǥեȤ X, Y ñ̤ϥǤ¾ñ̤ѲǽǤ (ߤ cm Τ)

106.43 Pdfcairo

Ϸ pdfcairo ϡPDF Ϥޤºݤϡ2D å饤֥Ǥ cairo ȡʸ֤ȥѤΥ饤 pango ͳƹԤޤ

:

       set term pdfcairo
                    {{no}enhanced} {mono|color}
                    {font <font>} {fontscale <scale>}
                    {linewidth <lw>} {rounded|butt|square} {dashlength <dl>}
                    {background <rgbcolor>
                    {size <XX>{unit},<YY>{unit}}

νϷϡĥʸ⡼ (enhanced text mode) 򥵥ݡȤ ƤơեȤ񼰥ޥ (ադʤ) ٥¾ʸ ळȤǤޤĥʸ⡼ɤν񼰤¾ gnuplot ν Ϸȶ̤Ǥܺ٤ϡʲ: enhanced (14)

ˤƤϡlinewidth ǻꤹ < lw> ѹǤ ޤǥեȤ 0.5 ݥȤǤ(1 "PostScript" ݥ = 1/72 = 0.353 mm)

rounded ϡüܹݤޤ ǥեȤ butt äüȳĥäܹѤޤ

PDF ϤΥǥեȤΥϡ5inch x 3inch Ǥץ size ϡ桼λꤹΤѹޤǥեȤ X, Y ñ̤ϥǤ¾ñ̤ѲǽǤ (ߤ cm Τ)size ץǻꤵ줿ȤˤüüޤǤΰϡ˥꡼ ɸ 0.0 1.0 бޤ

< font> ϡ"FontFace,FontSize" ν񼰡Ĥޤե̾ȥ ޤǶڤäĤʸȤɽޤFontFace ϡ'Arial' 褦̾Υե̾Ǥե̾Ϳʤ硢pdfcairo Ϸ Ǥ'Sans' ѤޤFontSize ϥݥñ̤ǤΥեȥ Ǥꤷʤϡpdfcairo ϷǤ 12 ݥȥɸ եȤѤޤνϷΥѥ᡼ fontscale ΥǥեȤ 0.5 ʤΤǡΥեȥϡPDF Ϥե륵 Ǹ⾮ʤǤ礦

   :
     set term pdfcairo font "Arial,12"
     set term pdfcairo font "Arial" # ե̾Τѹ
     set term pdfcairo font ",12" # եȥΤѹ
     set term pdfcairo font "" # ե̾ȥꥻå

եȤϡ̾ΥեȽˤޤWindows Ǥϡ Ȥϥȥѥͥ "ե" ιܤǹ츫Ĥ ΤǡUNIX ǤϡեȤ "fontconfig" ǽޤ

ʸΥ쥤Ȥ˻Ѥ饤֥ Pango ϡutf-8 ˴ŤƤ ޤΤǡpdfcairo ϷǤϡʸɤ utf-8 Ѵɬפ ޤǥեȤʸɤϡʤѤƤ 'locale' ˴Ťޤ¾ʸɤˤϡʤɤʸɤ äƤΤμ¤ gnuplot 狼褦ˤƤܺ٤ˤĤ ϡʲ: encoding (95.23)

pango ϡunicode ޥåԥ󥰤ǤʤեȤФƤͽ̷̤Ϳ 뤫⤷ޤ㤨 Symbol եȤФƤϡpdfcairo Ϸ ϡʸɤ unicode Ѵ뤿 http://www.unicode.org/ ޥåԥ󥰤Ѥޤʤ"the Symbol font" ϡAcrobat Reader Ȱ "SY______.PFB" ȤۤƤ Adobe Symbol ȤǤȲᤵ뤳ȤդƤˡ OpenOffice.org Ȱ "opens___.ttf" Ȥۤ OpenSymbol եȤƱʸ󶡤ƤޤMicrosoft Symbol ե ("symbol.ttf") ۤƤޤϰۤʤʸåȤˤʤäƤ ơĤϷ礱ƤޤĤϿѤäƤޤäƤ ʤΥǥեȤǤʤ餫꤬ (㤨Хǥ⥹ ץ enhancedtext.dem ɽʤȤä) ϡ Adobe OpenOffice Symbol եȤ򥤥󥹥ȡ뤷ơMicrosoft Symbol եȤʤȤʤ⤷ޤ"windings" Τ ¾ɸΥեȤǤư뤳Ȥ𤵤Ƥޤ

Υ󥰤ϡΤȤѹǤޤ󡣽Ϥɤ뤿 ˤΥ󥰤ϡꥢСץ󥰤 2 Ĥ äƤޤ ꥢϡʿľǤʤ餫ɽޤ Сץ󥰤ϡꥢȤǥԥ⾮ Ǥ٤󶡤gnuplot ɸľ񤱤褦ˤʤޤ ϡгľ (㤨 'plot x') ɤΤ򤱤ޤ

106.44 Pm

pm ɥ饤Фϡդ褵 OS/2 ץ쥼ơޥ͡ ɥ󶡤ޤΥɥϺǽΥդ褵줿Ȥ ޤΥɥϰåץܡɤؤΥԡĤ 俧ĴΤεǽƤ켫ȤΥ饤إפäƤ ޤmultiplot ץ⥵ݡȤƤޤ

:

     set terminal pm {server {n}} {persist} {widelines} {enhanced} {"title"}

persist ꤹȡƥդϤ줾켫ȤΥɥ ٤ƤΥɥ gnuplot λⳫޤޤˤʤޤ server ꤹȡƤΥդƱɥ˸졢 gnuplot λⳫޤޤˤʤޤΥץϡɲä ꡢοϥХץΥ󥹥󥹤ˤʤޤä ƱʣΥХɥȤȤǤޤ

widelines ꤹȡƤΥդιޤ enhanced ꤹȡդʸ䲼դʸʣΥեȤȤ ȤǤޤ (ܺ٤ϡʲ: enhanced text (14)) PostScript ȤΥե̾ 1 ʸ˾άǤޤ (T/H/C/S Ϥ줾 Times/Helvetica/Courier/Symbol ̣ޤ)

title ꤹȡ襦ɥΥȥȤƻȤޤ ϥХ󥹥̾ȤƤȤ졢ɲäο񤭤 ޤ

set linestyle ѹǤޤ

106.45 Png

:
     set terminal png 
            {{no}enhanced}
            {{no}transparent} {{no}interlace}
            {{no}truecolor} {rounded|butt}
            {linewidth <lw>} {dashlength <dl>}
            {tiny | small | medium | large | giant}
            {font "<face> {,<pointsize>}"} {fontscale <scale>}
            {size <x>,<y>} {{no}crop}
            {background <rgb_color>}

PNG, JPEG, GIF ϡ饤֥ libgd ȤäޤPNG ϡImageMagick ѥåΥե 'display' ˤνϤʲΤ褦˥ѥפϤȤŪɽ뤳ȤǤޤ:

              set term png
              set output '| display png:-'

襳ޥɤνϤϡdisplay ɥŪ < space> ǤĤȤǸ뤳ȤǤޤߤե¸ˤϡ display ɥǺåsave 򤷤Ƥ

transparent ϡɥ饤ФطʿƩ (transparent) Ԥ褦 ޤǥեȤ notransparent Ǥ

interlace ϡɥ饤Ф˥󥿡졼 GIF 褦ؼޤ ǥեȤ nointerlace Ǥ

ץ linewidth dashlength ϳΨǡ褵뤹٤Ƥ ˱ƶͿޤʤ͡襳ޥɤ׵ᤵ ˳ݻޤ

ǥեȤǤϡϤ PNG 256 Ĥֹդ줿Ѥ ޤ˥ץ truecolor ȤС24 ӥå/ԥο TrueColor ޤƩɤĤ֤ (transparent fill) ѤȤϡΥץ truecolor ɬפˤʤޤ ʲ: fillstyle (95.78.4)طʤƩϡֹդ TrueColor ǽǤ

butt ʬǡüǤΤϤߤ򵯤ʤ᥽å Ȥ褦ɥ饤Ф˻ؼޤϡ 1 礭 ΤͭǤϡʿľξͭѤǤ礦 ǥեȤ rounded (ݤ) Ǥ

եȤξܺ٤ϡʣǤ ʲƱ̣Ĵñ򼨤ޤ:

    set term png font arial 11
    set term png font "arial,11"

ܤˤĤƤϡfonts βγ륻򻲾ȤƤ

< x,y> ϥԥñ̤ͿޤǥեȤ 640x480 ʲ⻲: canvas (9), set size (95.77) 轪λü;ϡץ crop ǼȤǤη ̤ȤƤβϾʤޤǥեȤ nocrop Ǥ

106.45.1


     set terminal png medium size 640,480 background '#ffffff'

medium Ρ礭ѹǽDzžǤʤȤ߹ߥե ѤƩʤطʿȤ (16 ʿ 24bit RGB) Ѥ


     set terminal png font arial 14 size 800,600

ϡ'arial' Ȥե̾Υ֥եȤ򸡺ե ȥ 14pt ꤷޤեȤθɤΤ褦˹Ԥ뤫ˤ Ƥϰʲ: fonts (17)


     set terminal png transparent truecolor enhanced

ϡ24 ӥå/ԥοѤطʤƩޤ ɽʸȤ enhanced text ⡼ɤѤޤ

106.46 Pngcairo

Ϸ pngcairo ϡPNG Ϥޤºݤϡ2D å饤֥Ǥ cairo ȡʸ֤ȥѤΥ饤 pango ͳƹԤޤ

:

       set term pngcairo
                    {{no}enhanced} {mono|color}
                    {{no}transparent} {{no}crop} {background <rgbcolor>
                    {font <font>} {fontscale <scale>}
                    {linewidth <lw>} {rounded|butt|square} {dashlength <dl>}
                    {size <XX>{unit},<YY>{unit}}

νϷϡĥʸ⡼ (enhanced text mode) 򥵥ݡȤ ƤơեȤ񼰥ޥ (ադʤ) ٥¾ʸ ळȤǤޤĥʸ⡼ɤν񼰤¾ gnuplot ν Ϸȶ̤Ǥܺ٤ϡʲ: enhanced (14)

ˤƤϡ < lw> ѹǤޤ

rounded ϡüܹݤޤ ǥեȤ butt äüȳĥäܹѤޤ

PNG ϤΥǥեȤΥϡ640 x 480 ԥǤץ size ϡ桼λꤹΤѹޤǥեȤ X, Y ñ̤ϥԥǤ¾ñ̤ѲǽǤ (ߤ cm ȥ ) cm ͿȤϡ 72 dpi ǤΥԥ Ѵޤsize ץǻꤵ줿Ȥˤü üޤǤΰϡ˥꡼ɸ 0.0 1.0 бޤ

< font> ϡ"FontFace,FontSize" ν񼰡Ĥޤե̾ȥ ޤǶڤäĤʸȤɽޤFontFace ϡ'Arial' 褦̾Υե̾Ǥե̾Ϳʤ硢pngcairo Ϸ Ǥ'Sans' ѤޤFontSize ϥݥñ̤ǤΥեȥ Ǥꤷʤϡpngcairo ϷǤ 12 ݥȤΥ Ѥޤ

   :
     set term pngcairo font "Arial,12"
     set term pngcairo font "Arial" # ե̾Τѹ
     set term pngcairo font ",12" # եȥΤѹ
     set term pngcairo font "" # ե̾ȥꥻå

եȤϡ̾ΥեȽˤޤWindows Ǥϡ Ȥϥȥѥͥ "ե" ιܤǹ츫Ĥ ΤǡUNIX ǤϡեȤ "fontconfig" ǽޤ

ʸΥ쥤Ȥ˻Ѥ饤֥ Pango ϡutf-8 ˴ŤƤ ޤΤǡpngcairo ϷǤϡʸɤ utf-8 Ѵɬפ ޤǥեȤʸɤϡʤѤƤ 'locale' ˴Ťޤ¾ʸɤˤϡʤɤʸɤ äƤΤμ¤ gnuplot 狼褦ˤƤܺ٤ˤĤ ϡʲ: encoding (95.23)

pango ϡunicode ޥåԥ󥰤ǤʤեȤФƤͽ̷̤Ϳ 뤫⤷ޤ㤨 Symbol եȤФƤϡpngcairo Ϸ ϡʸɤ unicode Ѵ뤿 http://www.unicode.org/ ޥåԥ󥰤Ѥޤʤ"the Symbol font" ϡAcrobat Reader Ȱ "SY______.PFB" ȤۤƤ Adobe Symbol ȤǤȲᤵ뤳ȤդƤˡ OpenOffice.org Ȱ "opens___.ttf" Ȥۤ OpenSymbol եȤƱʸ󶡤ƤޤMicrosoft Symbol ե ("symbol.ttf") ۤƤޤϰۤʤʸåȤˤʤäƤ ơĤϷ礱ƤޤĤϿѤäƤޤäƤ ʤΥǥեȤǤʤ餫꤬ (㤨Хǥ⥹ ץ enhancedtext.dem ɽʤȤä) ϡ Adobe OpenOffice Symbol եȤ򥤥󥹥ȡ뤷ơMicrosoft Symbol եȤʤȤʤ⤷ޤ"windings" Τ ¾ɸΥեȤǤư뤳Ȥ𤵤Ƥޤ

Υ󥰤ϡΤȤѹǤޤ󡣽Ϥɤ뤿 ˤΥ󥰤ϡꥢСץ󥰤 2 Ĥ äƤޤ ꥢϡʿľǤʤ餫ɽޤ Сץ󥰤ϡꥢȤǥԥ⾮ Ǥ٤󶡤gnuplot ɸľ񤱤褦ˤʤޤ ϡгľ (㤨 'plot x') ɤΤ򤱤ޤ

106.47 Postscript

postscript ɥ饤ФǤϤĤΥץǤޤ

:

     set terminal postscript {default}
     set terminal postscript {landscape | portrait | eps}
                             {enhanced | noenhanced}
                             {defaultplex | simplex | duplex}
                             {fontfile [add | delete] "<filename>"
                              | nofontfiles} {{no}adobeglyphnames}
                             {level1 | leveldefault | level3}
                             {color | colour | monochrome}
                             {background <rgbcolor> | nobackground}
                             {dashlength | dl <DL>}
                             {linewidth | lw <LW>}
                             {rounded | butt}
                             {clip | noclip}
                             {palfuncparam <samples>{,<maxdeviation>}}
                             {size <XX>{unit},<YY>{unit}}
                             {blacktext | colortext | colourtext}
                             {{font} "fontname{,fontsize}" {<fontsize>}}
                             {fontscale <scale>}

ʲΤ褦ʥ顼åФ:
     "Can't find PostScript prologue file ... "

ʲ: postscript prologue (106.47.3)Ƥλؼ˽äƤ

landscape portrait ϽϤ֤֤򤷤ޤ eps ⡼ɤ EPS (Encapsulated PostScript) Ϥޤ ̾ PostScript ˡ¾¿ΥץꥱǼळ Ǥ褦ˤĤιԤɲäΤǤ (ɲäԤ PostScript ΥȹԤʤΤǡäƤ켫ȤȰǤޤ)EPS Ϥ ˤ eps ⡼ɤѤ1 ĤΥեˤ 1 ĤΥդΤߡ Ƥeps ⡼ɤǤϥեȤޤƥΤǥեȤ 礭Ⱦʬ˽̤ޤ

enhanced ϳĥʸ⡼ (դʸդʸʣ ΥեȤ) εǽͭˤޤܺ٤ϡʲ: enhanced (14) blacktext ϡȤ顼⡼ɤǤƤʸǽ񤭤ޤ

PostScript ξ̰̿ (duplex) ϡץ󥿤 1 λξ̰ 뤳Ȥǽˤޤdefaultplex ϥץ󥿤ΥǥեȤ simplex ϻ̤Τ߰duplex ξ̰Ԥʤޤ ( ʤΥץ󥿤Ԥʤʤʤ̵뤵ޤ)

"< fontname> " ͭ PostScript եȤ̾ǡ< fontsize> PostScript ݥñ̤ǤΥեȤ礭Ǥ ɸŪ postscript եȰʳˡɽΤ obliqueSymbol ե ("Symbol-Oblique") Ƥޤ

default ƤΥץʲΥǥեȤͤꤷޤ:landscape, monochrome, dl 1.0, lw 1.0, defaultplex,enhanced, "Helvetica", 14ptPostScript ΥդΥǥեȤ礭 ϡ10 7 ι⤵Ǥ ץ color ϥ顼ͭˤmonochrome ϳǤ 褷ޤˡmonochrome ϳ palette Ѥޤ ϡŪ colorspec ǻꤵ줿ʤοѹޤ

dashlength ޤ dl ʬĹ < DL> (0 礭¿) ꤷ linewidth ޤ lw Ƥ < LW> ꤷޤ

ǥեȤǤϡ PostScript ɤϡä˥ե륿󥰤 filledcurves Τ褦ʤǤܤΰΥѥɤĤ֤ˤơ PostScript Level 2 ȤƾҲ𤵤Ƥ쵡ǽȤޤPostScript Level 2 εǽϾŪݸƤơPostScript Level 1 Υ󥿡 ץ꥿顼Фषå PostScript Level 1 ˤ Ǥ뤳Ȥɽ褦ˤʤäƤޤlevel1 ץϡ εǽ PostScript Level1 ѤPostScript Level 2 ɤڻѤޤ󡣤ϸŤץ󥿤䡢Adobe Illustrator ŤСʤɤɬפˤʤ뤫⤷ޤ󡣤Υե饰 level1 Ϥ줿 PostScript եΤԤԽ뤳Ȥǡ夫 Ū PostScript Level 1 ǽ ON/OFF ˤ뤳ȤǤޤlevel 2 ΥɤޤޤƤ硢εǽϸʤΥե饰 åȤ줿硢뤤 PostScript 󥿥ץ꥿ץब level 2 ʾ PostScript ᤹Ȥϸʤä˷ٹʸ֤ޤlevel3 ץϡӥåȥޥåײ PNG εǽͭ ޤˤϥ򤫤ʤ︺Ǥޤ

rounded ϡüܹݤǥեȤ butt äü ĥäܹѤޤ

clip ϡPostScript ˤ٤ƤνϤ BoundingBox (PostScript γ) ǥåפ뤳Ȥؼޤ; ǥեȤ noclip Ǥ

palfuncparam set palette functions ϤηɤΤ褦˥ ɲ뤫椷ޤŪʿʬؿ (set palatte functions ꤵ) ϡpostscript ϤǤϷ䴰Ѥƥɲ ޤ: ޤʬؿ < samples> Ĥɸܲ졢Ƥ ϡ̤Ȥ䴰Ȥк < maxdeviation> ˼ޤ褦˺ޤۤȤƤͭʥѥåȤǡǥեȤ < samples> =2000 < maxdeviation> =0.003 ͤ򤽤Τޤ޻ȤΤɤǤ礦

PostScript ϤΥǥեȤ礭 10 x 7 ǤEPS ϤΥǥեȤ礭 5 x 3.5 Ǥץ size 桼ꤷΤѹޤǥեȤǤ X Y Υ ñ̤ϥȤߤʤޤ¾ñ (ߤ cm Τ) Ȥ ȤϤǤޤ BoundingBox (PostScript եγ) ϡ ѹ줿ٴޤ褦ꤵޤ ꡼ɸϡץ size ǻꤵ줿ȤΤ 0.0 1.0 ˤʤޤ : ϡϡϷǤ⡢ޥ set size ꤷȸäƤȤѹ̣ޤˡǤ BoundingBox ѹ줺˻ĤäƤޤ꡼ɸºݤθ³бƤޤǤ

fontfile fontfile add ǻꤵ줿եȤϡΥեȤΥ ľ postscript Type 1, TrueType եȤ gnuplot postscript Ϥ˥ץ벽ޤäơޤ줿ե ȤϸФȥʤɤ˻ȤȤǤޤܺ٤ϡʲ:postscript fontfile (106.47.2)fontfile delete ˤäƥեȥե ޤեΰȤǤޤ nofontfiles ߥեȤΥꥹȤ򥯥ꥢޤ

:

     set terminal postscript default       #  postscript
     set terminal postscript enhanced      #  enhpost
     set terminal postscript landscape 22  #  psbig
     set terminal postscript eps 14        #  epsf1
     set terminal postscript eps 22        #  epsf2
     set size 0.7,1.4; set term post portrait color "Times-Roman" 14
     set term post "VAGRoundedBT_Regular" 14 fontfile "bvrr8a.pfa"

set style line ѹǤޤ

postscript ɥ饤Ф 70 ΰۤʤ򥵥ݡȤƤơ plot set style line pointtype ץǤޤ

gnuplot Postscript ˴ؤ¿ʬͭѤȻפե뤬 gnuplot ʪޤϤۥȤ /docs/psdos ֥ǥ쥯ȥˤ ĤޤޤƤޤˤ "ps_symbols.gpi" (¹Ԥ postscript ɥ饤ФǻȤƤεҲ𤹤 "ps_symbols.ps" Ȥե gnuplot Υޥɥե)"ps_guide.ps" (ĥ줿񼰤 ؤȡʸ 8 ʥɤΡsymbol ե ޤ PostScript ե)"ps_file.doc" (gnuplot Ǻ PostScript եι¤ޤƥȥե) "ps_fontfile_doc.tex" (եȤʸΰ LaTeX ΥեȤ ߤ˴ؤûޤ LaTeX ե) ޤ

PostScript եԽǽǡ gnuplot ǤС ˾褦˽뤳Ȥϼͳ˹ԤʤޤΤΥҥȤˤϡ ʲ: editing postscript (106.47.1)

106.47.1 PostScript Խ (editing postscript)

PostScript ϤȤƤʣʸǡǾܺ٤򵭽Ҥ뤳ȤϤȤƤ Ǥޤ󡣤Ǥ⡢gnuplot Ǻ PostScript եˤϡ ̿Ūʥ顼򤽤ΥեƳƤޤΤʤѹԤʤ ǽʬޤ

㤨СPostScript ʸ "/Color true def" (set terminal postscript color ޥɤƥե˽񤭹ޤޤ) ѹơ ΤˤˡϤ狼Ǥ礦Ʊͤˡοʸο (weight)Υ⡢˴ñ˽񤭴Ǥ礦ȥ 丫Фʤɤʸθ䡢եȤѹԽǽǤ礦Ǥդ Τ֤ѹǤޤǤդΤΤɲäꡢ Ǥޤν PostScript ομɬפǤ礦

gnuplot ˤäƺ PostScript եι˴ؤƤϡgnuplot Υʪ docs/ps ǥ쥯ȥΥƥȥե "ps_file.doc" ˽Ҥ٤Ƥޤ

106.47.2 Postscript fontfile

ץ fontfile ޤ fontfile add 1 ĤΥե̾ ȤƻΥե postscript ˥ץ벽ߡ ˤä͡ʸ (٥롢긫Фȥ) 򤽤 եȤǽϤ뤳Ȥǽˤޤץ fontfile delete 1 ĤΥե̾˻Υե̾򥫥ץ벽ե ΥꥹȤޤ

postscript ϥɥ饤ФϤĤΥեȥեǧޤ: ASCII Type 1 ե (ĥ ".pfa")Хʥ Type 1 (ĥ ".pfb")TrueType ե (ĥ ".ttf")pfa ե ľǧޤpfb ttf ե gnuplot μ¹¹Ԥ Ѵ졢ΤŬڤѴġ () 󥹥ȡ뤵 ɬפޤե̾ϳĥҤޤƴʷǻꤹɬפ ޤ fontfile ץϤ礦ɰĤΥեȥե̾ бޤΤǡʣΥեȥեिˤϤΥץ ʣȤäƲ

եȥեϡȥǥ쥯ȥꡢ set fontpath Ϳ եȥѥƤΥǥ쥯ȥ꤬ޤˡĶѿ GNUPLOT_FONTPATH ǥեȥѥꤹ뤳ȤǤޤ줬ꤵ ƤʤϥǥեȤθꥹȤȤޤϥƥ ¸ޤܺ٤ϡʲ: set fontpath (95.26)

ޤ줿եȥեȤˤϡե̾ (̾ե̾Ʊ ǤϤޤ) ꤹɬפޤå⡼ɤ fontfile ץȤäƥեȤ硢ե̾ϥ꡼ɽ ޤ:

  Font file 'p052004l.pfb' contains the font 'URWPalladioL-Bold'. Location:
  /usr/lib/X11/fonts/URW/p052004l.pfb

pfa pfb եȤǤϡե̾ϥեȥե˸Ĥ뤳 Ǥޤեȥե "/FontName /URWPalladioL-Bold def" 褦ʹԤޤοʪ / Τե̾Ǥ ξ "URWPalladioL-Bold" Ȥʤޤ TrueType եȤǤϡե̾ϥХʥ¸ƤΤǸ ĤΤưפǤϤޤ󡣤ˡ̾¿ξ硢Type 1 (¹ TrueType ѴǤ) ǤϥݡȤƤ ʤڡޤˤʤäƤޤΤᡢե̾Ϥ 饹ڡѴޤgnuplot ǻȤ줿 ե̾Ǥ뤫ΤǤñˡϡgnuplot å⡼ɤǵ ươʲΤ褦Ϥ뤳ȤǤ:"set terminal postscript fontfile '< filename.ttf> '".

եȥե (ttf, pfb) pfa Ѵ뤿ˡեȥե ɤǡѴ̤ɸϤǤФѴġ뤬ɬפˤʤ ޤνϤɸϤ˽񤭽ФȤǤʤ硢¹ѴϤ ޤ

pfb եФƤϡ㤨 "pfbtops" Ȥޤ줬ƥ ˥󥹥ȡ뤵ƤС¹ѴϤޤԤϤǤpfb ե Υץ벽äȤäƤߤޤ礦⤷ץѴ ġƤӽФƤʤϡɤΤ褦˥ġƤӽФɤ Ķѿ GNUPLOT_PFBTOPFA ˡ㤨 "pfbtops %s" Τ褦 Ʋ%s ϥեȥե֤̾ޤΤǡϤ ʸɬɬפǤ

¹Ѵ򤷤ʤơɤ pfa ΥեɬפǤ 硢"pfb2pfa" Ȥ C ǽ񤫤줿ñʥġȤɤǤ礦 C ѥǥѥǤ ftp Ф֤ ޤ㤨

ftp://ftp.dante.de/tex-archive/fonts/utilities/ps2mf/

ºݤ "pfbtopfa" "pfb2ps" ƱȤԤޤ"pfbtops" Ϸ̤ pfa ɤɸϤ˽Ϥޤ"pfbtopfa" ϥե˽Ϥޤ

TrueType եȤϡ㤨 "ttf2pt1" ȤġȤä Type 1 pfa եޥåȤѴǤޤϰʲˤޤ:

http://ttf2pt1.sourceforge.net/

⤷ gnuplot Ȥ߹ޤƤѴ礬ޤԤʤ硢Ѵ ɤϴĶѿ GNUPLOT_TTFTOPFA ѹǤޤttf2pt1 Ȥϡ "ttf2pt1 -a -e -W 0 %s - " Τ褦ꤷƲǤ %s ϥե̣̾ޤ

üӤΤˡѥפȤ褦ˤʤäƤޤ (ѥפ򥵥ݡ Ƥ OS )ե̾ "< " ǻϤᡢθ˥ץƤӽФ ɲäޤΥץϤɸϤؤ pfa ǡǤʤФ ޤ󡣷̤Ȥ pfa ե㤨аʲΤ褦ˤƥǤ뤳Ȥˤʤޤ: set fontfile "< cat garamond.pfa"

Type 1 եȤळȤϡ㤨 LaTeX ʸ postscript ե ˻Ȥޤpfb "european computer modern" ("computer modern" եȤΰ) Ϥ CTAN Ф֤ Ƥޤ

ftp://ftp.dante.de/tex-archive/fonts/ps-type1/cm-super/

㤨Сե "sfrm1000.pfb" ϡդΩΤ 10 ݥ ȤΥե (ե̾ "SFRM1000") Ǥcomputer modern եȤ Ǥ񤯤ΤɬפǤϰʲˤޤ:

ftp://ftp.dante.de/tex-archive/fonts/cm/ps-type1/bluesky

ˤäơTeX ѤǤդʸȤޤcomputer modern եȤϾ󥳡ǥ󥰤ʤäƤޤ (Τᡢʸ ˤ cmr10.pfb sfrm1000.pfb Ȥ٤Ǥ) TeX եȤλˡϤĤΥǥΰĤΤ뤳ȤǤޤ gnuplot Υʪ /docs/psdoc ˴ޤޤե "ps_fontfile_doc.tex" TeX إեȤʸΰɽޤޤƤ

ե "CMEX10""cmex10.pfb") ȡgnuplot ɲåե "CMEX10-Baseline" ޤϡ¾ʸˤ ˿ľˤ餵줿ΤǤ (CMEX10 ϡŷդ˥١饤 ޤ)

106.47.3 PostScript prologue ե

PostScript ϥե %%Prolog ޤߤޤ㤨ʸ 󥳡ǥ󥰤ʤɤޤɲå桼ޤफ⤷ޤ 󡣤Υϡgnuplot μ¹ԥե˥ѥ뤵 롢뤤ϤʤΥԥ塼̤ΤȤ¸Ƥ PostScript prologue ե뷲饳ԡޤΥե뤬 ǥեȤΥǥ쥯ȥϡgnuplot Υ󥹥ȡꤵ ΥǥեȤ gnuplot ޥɤ set psdir ȤĶ GNUPLOT_PS_DIR 뤳ȤѹǤޤʲ: set psdir (95.71)

106.47.4 Postscript adobeglyphnames

ϡUTF-8 󥳡ǥ󥰤Ǥ PostScript ϤˤΤߴطޤ ϡ0x00FF 礭 Unicode ȥݥ (Ĥޤ Latin1 Τ٤) ʸ򵭽ҤΤ˻Ȥ̾椷ޤ̤ˡ unicode ʸϰդ̾ unicode ֹ椷ޤ 󡣤Adobe ϡϰϤʸ (ĥƥʸꥷʸ) ̾Ƥ侩§äƤޤեȤˤäƤϤε§ ѤƤΤޤǤʤΤ⤢ޤgnuplot ϥǥե ȤǤ Adobe ̾Ѥޤ㤨СꥷʸξʸΥ ե /alpha Ȥʤޤnoadobeglyphnames ꤷ硢ʸ Ф gnuplot /uni03B1 ȤȤޤ ǤʤäȤСϤʸեˤˤ 餺줬ĤʤǤAdobe եȤФƤϡǥե ȤȤ