gnuplot 4.6




An Interactive Plotting Program




Thomas Williams & Colin Kelley




Version 4.6 organized by: Hans-Bernhard Bröker, Ethan A Merritt, and others




Major contributors (alphabetic order):

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,
Alexander Mai, Bastian Märkisch,
Ethan A Merritt, Petr Mikulík,
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 - 2014 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.




2014 Version 4.6.6


ܼ


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 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 ɲ:
        ʸκǽˤͿ (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 (24)):


     load "filename"
     cd 'dir'

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

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

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

gnuplot Ȥϡplotting ˴ؤɤߤϤ ɤǤ礦 (÷ǻʤ help plotting ϤƲ)

simple.dem ǥ򻲾ȤƤ뤤ϰʲ Web ڡˤ¾ΥǥȰˤޤ

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

gnuplot ϥޥɥ饤󤫤顢뤤ϥǥȥå״ĶΥ󤫤 ư뤳ȤǤޤޥɥ饤󤫤鵯ưȤϡʲν񼰤Ȥޤ

     gnuplot {OPTIONS} file1 file2 ...

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

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

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

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

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

     gnuplot --help

ܺ٤ϰʲ: command line options (6)

÷襦ɥǤκϡ'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

ãϥ᡼󥰥ꥹȤ˻äꡢष˥塼롼פΥå ɤळȤ򴫤ޤ᡼󥰥ꥹȤͭǡƱå Ƥޤ᡼󥰥ꥹȤ˻äˡ˴ؤƤϡSouceForge gnuplot γȯ Web

http://sourceforge.net/projects/gnuplot

򻲾ȤƤ

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

         gnuplot-info@lists.sourceforge.net

Хݡȡβϰʲ trackers upload Ƥ:

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

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

ȯǤ˴ؤ᡼󥰥ꥹ:

         gnuplot-beta@lists.sourceforge.net

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

4 ǽ (New features)

ǤϡС 4.4 ʹߤɲä줿ʤΤҲ𤷤ޤ Ūʰϡե NEWS 򻲾ȤƤ

4.1 ʸ (New syntax)

Image figure_newsyntax
Ǥ gnuplot ˤϡ֤ (iteration) ޥɤ֥å¤ if/else/while/do ƳƤޤʲ: if (67), while (91),do (61)ñʷ֤ϡޥ plot, set ѤǤޤʲ: iteration (68)ʣΥޥɤޤŪʷ֤ϡʲǾҲ𤹤֥å¤Ѥ뤳ȤǹԤޤǽ˴Ϣơ ΰʲ⻲: summation (14.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

ߤϡǡե뤫Υǡ򡢥ե 1 ܤ˽񤫤줿 ٥̾򤹤뤳ȤǤޤʲ: columnhead (14.1):

     plot for [crop in "Oats Peas Beans"] 'data' using "Year":crop

4.2 Υޥ (Local customization of linetypes)

ߤǤϡ桼˻Ѥ° (μ) Υ եȤ¤Ӥ򥫥ޥǤޤʲ: set linetype (82.32) ̾ƥѤνե gnuplotrc ĿŪʽե ~ /.gnuplot Τ줫ǹԤޤʲ: initialization (21)

ߤ¿νϷǥդطʿŪǤޤο 褹Τˡ̤ (linetype) bgnd ѤǤޤʲ:bgnd (17.1.1)

4.3 襹 (New plot styles)

襹ΰʲ: boxplot (28), circles (31), ellipses (32),fillsteps (37)

4.4 ˺ɸβ (Revised polar axes)

˺ɸ⡼ɤϡ¿襹򥵥ݡȤ褦˲ɤ ޤ˺ɸϡǤ x, y ȤΩ衢٥դǤޤ ʲ: set polar (82.57), set rrange (82.62)

4.5 ʿ경르ꥺ

2 3 ξˡʿ경르ꥺबɲäƤơ 餫ʥҥȥʬ۴ؿ plot ˤˡ줾 smooth kdensity smooth cumulative Ȥޤdgrid3d ˤϡ splot Ѥ˿ʿ경Ťդؿ (kernel) ĤɲäƤ ʲ: smooth (72.3.5), dgrid3d (82.18)

4.6 (time/date) μ谷

ߤ gnuplot ϡߥ٤פΥեޥåȤ⤽ ȼäѹƤޤȤ߹ߴؿ time() ϡƥפ ä֤ޤ : ߤλߥ٤ɽ
    print strftime("%H:%M:%.3S %d-%b-%Y",time(0.0))
    18:15:04.253 16-Apr-2011

4.7 ǡδñ׾

ޥ stats ϡplot splot Ʊ񼰤ǥե뤫 ǡɤ߹ߤޤդ褹ΤǤϤʤϡcolumn ꤵ줿ǡδñ׾ϤޤϤΤϡǾ (min) (max)ɸк (standard deviation) (correlation) ǡƤͤ򤽤ʹߤ襳ޥɤιѤǤ褦̾ΤĤѿ¸ޤʲ: stats (85)

4.8 /줿Ϸ

ɥ饤 qt ϡQt եåؤκǾ̤˰֤÷Ϸ μǤϡեΥǥȥå״ĶΰĤΥɥȤ ơ뤤 Qt ١ߥǥХΥե륹꡼󥢥ץꥱ ȤƵǽޤqt ϷϿޤƤ

Web ١÷ɽ򥵥ݡȤϷ 2 ĤޤHTML5 canvas Ϸ version 4.4 Ƴޤsvg Ϸϡ ˴ؤơ gnuplot svg Ϥ礭 svg/xml ʸˤ褯褦ˡ礭ɤƤޤ

ϥɥ饤 canvas ϡ֥ڡ canvas HTML 褹 javascript ϤޤϡĤޤരʥ ڡ뤤ϳ줿 HTML ɥȤΰ (ʣ 뤳ȤǤ) Ȥ륹ץȡΤ줫Ǥ ޤϡ/̾ʤɤΡ֥饦¦Υޥư򥵥 ȤƤޤ

ϥɥ饤 lua ϡlua ץߥ󥰸ΥץȤˤäƤ ʤǽʥǡޤǤϡΤ褦ʥץȤ Ƥ gnuplot-tikz.lua ΤߤѰդƤơϡlatex TikZ ѥ ѤνϤޤ¾ TeX ѥåѡ뤤 TeX ʳΥġѤ gnuplot Ϥ lua ץȤʤɤ뤳ȤǽǤ礦

set term tikz ϡset term lua tikz ξάǤ˽񤤤褦 lua Ϸȳ lua ץȤѤ latex ʸ ޤ

ϥɥ饤 context ϡConTeXt TeX ޥѥåǤ˽ ϤޤνϤνˤϡʲ ConTeXt Ѥ gnuplot⥸塼뤬ɬפǤ:

http://ctan.org/pkg/context-gnuplot

Ϸ epscairo ϡcairo pango 饤֥Ѥ EPS (Encapsulated PostScript) ޤϡϥɥ饤 postscript Ȥ̤ EPS ˡȤʤޤ㤨нϷ wxt β̽ϤƱܤ EPS ե뤬ߤȤ͸Ǥ

Ϸ cairolatex ϡϷ pdfcairo epscairo cairo ˤѤ LaTeX ʸ˼िΥդޤ ϡPDF EPS դޤƥʸϡϷ epslatex Ʊˡ LaTeX žޤ

ϥɥ饤 windows ϡƩꥢХåե󥰽 ϡʣΥեɥդΥåץܡɤؤΥԡ䥰դ EMF եؤ¸򥵥ݡȤ褦ɤƤޤץ ⤿󤢤ꡢ桼󥿡եɤƤޤˡ ĹԤޤꤿߤ򥵥ݡȤ褦˥ƥȥ󥽡Υץ ˽񤭴Ƥޤإפϡߤ HTML ΤΤѰդ ޤ

5 ߴ (Backwards compatibility)

ǤǻȤƤĤν񼰤 gnuplot 4.0 侩ȤʤޤϺǤǧϤ³Ƥޤϸߥѥ 졢ʲΤ褦ˤͭˤǤޤ:


     ./configure --enable-backwards-compatibility

: 侩ν񼰤ϡ̤ gnuplot ΤǤǡ˺Ƥ ⤷ޤ

Ĥμʰ㤤ϡʣʥޥ (äʸѿޤॳޥ) Τ ޤ򤱤褦ʥɤƳǤäդ٤ϡե ȡФολѤǤ :

侩:

     set title "Old" 0,-1
     set data linespoints
     plot 1 2 4               # horizontal line at y=1

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

6 Хå/÷ (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

7 Х (Canvas size)

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

set term < terminal_type> size < XX> , < YY> ϡϥեΥ ޤ "Х" Υ椷ޤѥ᡼ͭͤ ĤƤϡġνϷΥإפ򻲾ȤƤǥեȤǤϡ դϤΥХΤ褵ޤ

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

Υ롼˱ʤ㳰 PostScript ɥ饤ФǡǥեȤǤϰǤΤƱ񤤤򤷤ޤgnuplot μǤǤϡ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 ⡼ɤ˹ԤäƤˡ̷⤷ޤ

8 ޥɥ饤Խ (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, ^R 줿ɽιԤɽ
^U Τκ
^W ľñ
 
^P ذư
^N ذư

9 (Comments)

ȤϼΤ褦˼Ƥޤ: ʸ '#' ϡΤƤξ ˽񤯤ȤǤޤΤȤ gnuplot ϤιԤλĤʬ̵ ޤ桢 (ʣǿޤ) 桢ޥִ (command substitution) ʤɤǤϤθ̤ޤ󡣴ñ˸ ̣Τ褦ʻȤ򤷤СưȸȤǤ

ǡեΥʸλˤĤƤϡʲ:set datafile commentschars (82.16.5)ȹԤ ' \ ' ǽäƤ硢 ιԤ⥳ȤȤư뤳ȤդƤ

10 ɸ (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 2 (ȱμ) Ѥޤgraph ϥ ΰŪ֤ꤷ 0,0 夬 1,1 (splot ξ ϥΰκ 0,0,0 ǡΰ֤ z ͤѤ ʲ: set xyplane (82.97)) Ȥʤޤ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 (82.91), set timefmt (82.75)ޤgnuplot ɽ ǧƤơξ礽 2000 ǯ 1 1 ÿȲᤵ

11 ʸǡ (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 style labels (42), using xticlabels (72.3.8.3), plot title (72.10),using (72.3.8)

12 ĥʸ⡼ (Enhanced text mode)

¿νϷĥʸ⡼ (enhanced text mode) 򥵥ݡ Ƥޤϡʸɲäν񼰾ᤳߤޤ㤨 "x^2" x μ̾桹դ 2 Ĥǽ񤭽Фޤ ⡼ɤϡ㤨С"set term png enhanced" Τ褦̤ϽϷ Ȥ򤷤ޤ "set termoption 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 ܻ夲֤˽Ťͽ

楫åϰʸԤսʣʸ񤯾˻Ȥޤ ( 2^{10})եȡӤΥѹˤϡʲηȤäƤ: {/[fontname][=fontsize | *fontscale] text} äơ㤨 {/Symbol=20 G} 20 ݥȤΦ ()ˡ{/*0.75 K} ϸߤͭ ʥեȥ 3/4 礭 K ˤʤޤ (ʸ '/' ϡ'{' ľʸǤʤƤϤʤޤ)

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

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

       '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} ̵εˤʤޤϡ UTF-8 Τ褦ʥޥХȥ󥳡ɤξˤϤޤޤUTF-8 ĶǤϡϤ뤫ޤ̤ΤǤʤ˾ʸ򤹤 ȤǥޥХϤǤ褦ˤ٤Ǥ

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

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

(ϸդΤ񤷤ΤǤȤꤢäƤߤƤ):

     set xlabel 'Time (10^6 {/Symbol m}s)'
     set title '{/Symbol=18 \\362@_{/=9.6 0}^{/=12 x}} \\
                {/Helvetica e^{-{/Symbol m}^2/2} d}{/Symbol m}'

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

13 Ķѿ (Environment)

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

GNUTERM Ƥ硢ϻѤϷ (terminal) ̾ ȤƻȤޤ gnuplot ư˸ĤϷͥ ƻѤޤ.gnuplot (ޤϤ) ȥåץե (ʲ: startup (21)) ˤ䡢ΤȤǤθ Ū˻ꤷʪͥ褵ޤ

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

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

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 (64)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 (92.51.3)

14 (Expressions)

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

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

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 (72.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 Ͼά뤳ȤϤǤޤ

14.1 ؿ (Functions)

gnuplot οشؿϡUnix إ饤֥δؿȤۤƱǤ դʤƤδؿ¿ʣǿΰ뤳ȤǤ ѤͤȤؿ (㤨 sin(x), cos(x), arg(z)) ϡ ͤ饸Ȥưޤϥޥ 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
     

ʸؿ
ؿ ֤
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 Ѵ 2000 ǯÿ
system("command") ʸ 륳ޥɤνϤʸ
word("string",n) ʸ, ʸ "string" n ܤñ
words("string") ʸ ʸ "string" ñ

¾ gnuplot δؿ
ؿ ֤
column(x) ǡե x
column(x) ʸ ǡե x
columnhead(x) ǡեκǽ x ʸ
defined(X) ѿ̾ [侩] X Ƥ 1, Ǥʤ 0
exists("X") ʸ ѿ̾ X Ƥ 1, Ǥʤ 0
stringcolumn(x) ʸ ʸȤƤ x ܤ
timecolumn(x) ǡե x ܤǡ
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 ѿθߤ

14.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) Ǥ뤳ȤդƤ

14.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
                 ꤹ

14.1.3 Value

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

14.2 黻 (Operators)

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

黻ɾνѹˤϤäȤޤ

14.2.1 ñ黻 (Unary)

ʲϡñ黻ҤȤλˡΰǤ:

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

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

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

黻Ҥϡ礭֤ͤ褦˼¿֤ޤ

14.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 ʾ
& 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 ʤɾޤ

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

14.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 (72.3.8)

14.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 Ȥʤޤ

14.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_XSIZE
    FRAC_Y = SCREEN_Y / GPVAL_TERM_YSIZE

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

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

fit ǽϡ"FIT_" ǻϤޤ뤤ĤѿѤޤΤǡΤ褦 ̾ȤΤ򤱤٤Ǥ礦fit λѤ˺ݤƤϡ "FIT_LIMIT" Τ褦˺򤹤ɬפ褦ѿϤޤ set fit errorvariables ȤȳƤϤѿΥ顼ϡΥѥ ̾ "_err" ɲäѿ¸ޤܺ٤ϡʲ: fit (64)

ʲ⻲: user-defined variables (14.5), reset errors (80),mouse variables (18.2), fit (64)

14.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 (14.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 (82.25), functions (72.6), gnuplot-defined variables (14.4),macros (23.2), value (14.1.3)

15 ե

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

15.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"

15.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 򻲾Ȥޤ

15.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 (92.51.2)

16 إפѸ (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 (72.1)

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

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

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

17  (linetypes)

gnuplot γƽϷ " (linetype)" 򤢤ѰդƤޤ Ͽ/Υѥ󡢤ޤϿ/ȹ礻ǰ㤤 ɽƤޤνϷΥǥեȤϡνϷ ꤷ (set terminal) test ޥɤȯԤ뤳ȤdzǧǤ Ƥ뿧/ΥѥϤ٤ƤνϷƱ ǤȤݾڤϲ⤢ޤ󤬡 -1 ̤ƤνϷǡ Ǥ̤ɽ (̾Ϲ) μ̣Ƥޤޤ¿νϷ ǡطʿǤμ̣̤ "bgnd" ǧޤ

ǥեȤ (linetype) °ϡŪեΤ줫 ˤäƺǽǤϡ٤Ƥ gnuplot 襳ޥɤǻѤ ο¾°򥫥ޥ뤳Ȥǽˤޤʲ:set linetype (82.32)

ǥեȤǤϡĤ襳ޥǤδؿǡե¤Ӥˤϡ ֤郎ƤޤΥǥեȤνϡؿǡե 롢ޤϤ¾Ǥ˸̤ꤹ뤳ȤǾ񤭤Ǥޤ

:


    plot "foo", "bar"                 #  1, 2  2 ե
    plot sin(x) linetype 4            # Ϸ˰¸￧ 4
    plot sin(x) lt -1                 # 

¿νϷǡ桼Ǥ褦ˤʤäƤޤ Ū rgb (֡С) ꤹ뤫̾ߤ 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   # ѥåȤб뾮

ʲ: show colornames (82.13), set palette (82.54), cbrange (82.126)

/Υѥ򥵥ݡȤϷǤϡǥեȤ/ ΥѥȿξƤޤν gnuplot ˤϡ/ ѥѹȤߤʤΤǡѥο Ȥ߹碌ϡˤѥ (linetype) ǥեȤο򥭡 linecolorlc) Ǿ񤭤 ɬפޤ㤨Сpostscript ϷΥǥեȤ 3 Ǥʲ襳ޥɤƱѥ 3 ĤԤʤޤĤ (ǥե)Ĥ ( 1 Υǥեȿ)⤦ Ĥ϶⿧ˤʤޤ

:


    set term postscript dashed color
    plot 'foo' lt 3, 'baz' lt 3 linecolor 1, 'bar' lt 3 lc rgb 'gold'

17.1 (colorspec)

¿ΥޥɤǡŪʿλȤʤäꤹ뤳ȤǤ ޤϷ˰¸뿧ϡѤƤϷ RGB 顼 pm3d ѥåȤ򥵥ܡȤƤˤΤѲǽǤ

:


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

< colorspec> ϰʲηΤ줫Ǥ:


     rgbcolor "colorname"
     rgbcolor "#RRGGBB"
     rgbcolor variable       # ϥե뤫ɤ߹
     palette frac <val>      # <val>  0  1 
     palette cb <value>      # <val>  cbrange ϰϤ
     palette z
     variable                # ϥե뤫鿧ֹɤ߹

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

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

"#RRGGBB" "#" θ 16 ¤٤ޤRRGGBB ϡ֡С οʬ̣줾 0 - 255 ϰϤοǤ㤨Сޥ () = Ǥ뤤 + Ǥ뤤ġʤΤǡ#FF00FF ɽ졢 16 ʿǡ(255 < < 16) + (0 < < 8) + (255) ̣Ƥޤ

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

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

17.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

17.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

17.1.3 Rgbcolor variable

դγƥǡʬޤϳƥ٥ˤ줾ۤʤ뿧 뤳ȤǤޤlc rgbcolor variable ϡǡեγƹԤ RGB ξɤ߹褦ץ˻ؼޤäƤϡ using ҤˤбλɲäɬפȤ 24-bit RGB 3 ȤǤȤߤʤޤͤǡե뤫ľ ͿϡϺǤñʷ 16 ͤͿޤ (ʲ:rgbcolor (17.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

17.2 Linestyles linetypes

ϡΤ褦¾°ĤȤǤޤ (point) ε Ʊͤ°ȤȤˡ°򥳥ޥ set style line Ȥ ƥ桼 "饤󥹥 (linestyle)" ȤƷӤĤ뤳ȤǤ 줿 linestyle ϡplot ޥǡĤޤ¿ ǤФƤɽ椹Τ˻ȤȤǤޤ

linetypes ϱ³Ū (ŪˤޤǤݻ) Ǥ linestyles ϰŪʤΤǤΥեåξ֤ꥻå ޤǤδ֤ݻޤ

:


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

18 ޥ (mouse input)

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

18.1 Bind

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

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

ޥܥ 1 Τߡ 2D ˴ؤƤΤߺǤޤ

ۥåȥΰˤ 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             # ǥե (Ȥ߹) ΥƳ
   bind!                  # "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 (82.40)

18.1.1 Bind space

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

18.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 (defined(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 (14.4)

19 α (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

20 (Plotting)

gnuplot ˤ 3 ĤΥޥɡplot, splot, replot ޤplot 2 splot 3 ( ºݤˤ 2 ̤ؤμͱ) ޤreplot Ϳ줿 ľ plot ޤ splot ޥɤɲä¹Ԥޤ

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

plot xy ľɸϤȶ˺ɸϤȤޤ˺ɸϤξܺ٤˴ؤƤ ʲ: set polar (82.57)splot xyz ľɸϤΤߤޤ󤬡 ޥ set mapping ¾ 2, 3 κɸϤѤ뤳Ȥޤ ˡץ using ȤСplot Ǥ splot ǤۤȤ ɤʺɸϤǤ⤽ƻȤȤޤ

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

splot ϡ˲äƶ̤񤯤ȤǤޤ3 δ γʻ˴ؤˤĤƤϡʲ: set isosamples (82.29)3 ǡΥեɬפʷ֤ˤĤƤϡʲ: splot datafile (84.1) ˴ؤˤĤƤϡʲ: set contour (82.14), set cntrparam (82.11)

splot Ǥν̼ܤ丫Фդϡx2 y2 椹륳ޥ 䥪ץϸ̤ʤz 椹ΤˤϤ̤롢 Ȥ plot ƱǤ

21 (Startup (initialization))

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

22 ʸʸѿ (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 (82.23.1), sprintf (14.1)

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

23 ִȥޥɥ饤ޥ (Substitution)

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

23.1 ХåȤˤ륷ƥॳޥɤִ (Substitution backquotes)

륳ޥɤХåȤǰϤळȤˤäƥޥִԤ ȤǤޤΥޥɤϻҥץǼ¹Ԥ졢νϷ̤ǥ ɥ饤ΥХåȤǰϤޤ줿ޥɤ֤ޤϤ äƤϥѥפݡȤƤ⤢ޤʲ:plot datafile special-filenames (72.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`"

23.2 ʸѿΥޥִ (Substitution macros)

ޥɥ饤ΥޥִϥǥեȤǤ̵ˤʤäƤޤ set macros ͭˤǤޤޥִͭǤ硢ʸ @ ϡ ޥɥ饤ǤʸѿͤؤִԤʤΤ˻Ȥޤʸ ѿͤȤƤʸϡʣñ줫ʤ뤳ȤǽǤˤ ʸѿ򥳥ޥɥ饤ޥȤƻȤȤǽˤʤޤε ǽˤŸǤΤʸΤߤǡʸͤ˼Ȥ ϤǤޤ :


     set 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 ͭѤǤ礦

23.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

24 ڤ䥫åλȤ (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Ԥ򼨤ȤǽǤ

24.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 (12)

Хå () ϥޥɥ饤ִΤ˥ƥॳޥ ϤΤ˻Ȥޤʲ: substitution (23)

25 /եǡ (Time/Date)

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

Ǥϡդ 2000 ǯ 1 1 ÿȤ¸Ƥ ϡɸŪ Unix ݥå (1970 ǯ 1 1 ) Ȥϡְۤʤ ȤդƤ 2 ĤΥݥåΤ EPOCH_OFFSET = 946684800.0 äǤunix ǤΥॹפ gnuplot ΤߤäǤλ ɽȤѴˤͤɬפˤʤ뤫⤷ޤ󡣤ϡgnuplot С 5 ǤѹƤޤ

ޥ set timefmt ƤϽ񼰤ޤǡե롢 ϰϡθФ٥ΰ֡û˸Сǡͤ ȤƤΤΤν񼰤ˤäƼȤʤФޤ󡣰 ϰĤϽ񼰤ΤߤͭʤΤǡƱȤϤƤλ/ ΥǡƱ񼰤Ǥɬפޤäơե x y ξ/եǡǤϡƱ񼰤ǤʤФޤ

ÿ (ÿ) ѴϹɸ (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() ϸߤλ 2000 ǯ 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" Τ褦ɽޤ

ʲ: time_specifiers (82.23.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 (72.3.8)

26 Boxerrorbars

boxerrorbars 2 ΥǡǤΤѲǽǤ boxes yerrorbars ȹ礻Ǥϡ3 󡢤 4 󡢤ޤ 5 ΥǡѤޤ:


    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 Υǡ ξ⡢ϼưŪ˷׻ޤ

ɲ (4,5,6 ) ȡϳƥǡ variable color (ʲ: linecolor (17.1), rgbcolor variable (17.1.3)) ȤƻȤޤ ϡȢζƱ褵ޤ

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

errorbar ǥ⡣

27 Boxes

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


    2 :  x  y
    3 :  x  y  x_width

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

ȢȤϸߤɤĤ֤ (fillstyle) ˽äɤĤ֤ ܺ٤ϡʲ: set style fill (82.66.4)ɤĤ֤ plot ޥɾǻꤹ뤳ȤǤޤ

ɤĤ֤뤬 empty ξϡȢɤĤ֤ޤ

ɤĤ֤뤬 solid ξϡȢϸߤ迧ǥ٥ɤꤵ ޤˤɲåץ < density> ꡢɤĤ֤̩٤ ̣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

28 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 style boxplot ޥɤѹǤޤ ʲ: set style boxplot (82.66.2), bars (82.4), boxwidth (82.8), fillstyle (82.66.4),candlesticks (30)

29 Boxxyerrorbars

Image figure_boxxyerrorbars
boxxyerrorbars 2 ΥǡǤΤѲǽǤ ϡxyerrorbars 뤬ñʬθ򺹤ɽȤĹɽ 뤳ȤСۤƱǤϡϥǡ 4 󡢤ޤ 6 Ѥޤ;ʬϡvariable Ԥɤ٤ξ󶡤 줿ΤȤƻѤޤ (ʲ: rgbcolor variable (17.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 ޤǡϲΥǡ ͿƤ뤫ˤäƷޤޤ

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

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

30 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 bars < width> 椵褦ˤʤäƤޤ

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

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

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

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

candlestick

finance

Υǥ⡣

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


 # ǡ:  X 'Ǿ' '1/4 ̤' '' '3/4 ̤' ''
 set bars 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 (82.8), set bars (82.4), set style fill (82.66.4), boxplot (28)

31 Circles

Image figure_circles
circles ϡƥǡ줿Ⱦ¤αߤ褷ޤ3 ΥǡͿϡ x, y, Ⱦ¤ȲᤷޤȾ¤ϡ οʿ (x ޤ x2) ñ̤Dzᤵޤy ν̼ܤ ڥϡ̵뤵ޤ2 ΥǡͿʤȡȾ set style circle ޤξ硢Ⱦ¤ graph screen κɸϤͿ뤳ȤǤޤǥեȤǤϴʱߤ褷ޤ 4 ܡ5 ܤ˳ϳѡλѤꤹ뤳Ȥ褹뤳ȤǤ ޤ4 ܡ뤤 6 ܤΥǡɲäʬߤοꤹ뤳 ȤǤޤγϳѡλѤñ̤٤ǻꤹɬפޤ

:


   # Ѥ 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 (82.47.3), fillstyle (82.66.4)

32 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 (82.66.10)) ߤθϡ缴 x ΤʤѤޤǥեȤ ellipse Υ뤫ޤ (ʲ: set style ellipse (82.66.10)) 3 ΥǡͿ줿ϡ3 ܤϼ硢ξľ () Ȥƻ ޤϥǥեȤ 0 ˤʤޤ 4 ΥǡͿ줿ϡ濴κɸ缴ľ () ľ¤ȤƻȤޤľ¤ǤꡢȾ¤ǤʤȤդ 5 ΥǡͿ줿ϡ5 ܤͤñ̤θγ٤λ ƻȤޤ ʱߤϡ3,4,5 ͤͤȤƻꤹ뤳ȤǡΥǥեȤ ͤѤʱߤ񤫤뤳ȤǤޤ

Τ٤Ƥξǡvariable color ǡǸ (3,4,5,6 ) ɲäǤޤܺ٤ϰʲ: colorspec (17.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 (82.47.2), set style ellipse (82.66.10), fillstyle (82.66.4)

33 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)

34 Filledcurves

Image figure_filledcurves
filledcurves 2 ǤΤѲǽǤ 3 ΰۤʤ꤬ǽǤǽ 2 ϴؿ衢뤤 2 ϥ ѤΤΤǡǾҲ𤹤褦˥ץǹʤ꤬Ǥޤ

:


   plot ... with filledcurves [option]

ǡץϰʲΤΤ줫Ǥ:


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

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

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


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

3 ܤ 3 ϥǡɬפȤ x ɸȡФ 2 Ĥ y ɸʤꡢƱ x ɸνФ 2 Ĥζ y ɸбޤƤ 2 Ĥζδ֤ΰ褬ɤĤ֤ޤ ϥǡ 3 ʾξˤϤ줬ǥեȤǤ


    3 :  x  y1  y2

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

֤ɤĤ֤ǥ⡣


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

above below ץ

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


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

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

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

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

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

35 Financebars

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


    5 :   date  open  low  high  close

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

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

ͻǡǥ⡣

36 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 ǥ⡣

37 Fillsteps

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

38 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 ǥ⡣

histeps ñʤ襹ˤgnuplot ˤϡҥȥ ȢǽϤ䡢ǡ礫콸ĤꤹǽϤʤɤϤޤ

39 Histograms

histograms 2 ǤΤͭǤϡǡγ ¤ӤʿԤդޤplot ޥɤγǤϡ ˴ؤͤΥȥ뤬°뤫Τޤ󤬡ñ ϥǡꤹɬפޤ (㤨ϥե 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 clustered gap 2 б ƤޤΥǤϡ˻ꤵ줿ǡͤνϡ 줿ǡΤΤ줾ν (ֹ) б x ɸξˡ ơȢΥ롼פȤƸǤ֤ޤäơ< n> ĤΥǡ ˻ꤷ硢ǽθǤޤ x=1 濴Ȥ < n> ĤȢθǤޤ ʤꡢγơι⤵ϡ < n> ǡơκǽ (1 ) ޤθ˾ (gap) 졢˳ƥǡμ (2 ) ͤбȢθǤޤ꤬ x=2 濴Ȥ֤ޤʲƱͤǤǥեȤζ (gap) 2 ϡȢθǤޤƱΤδ֤ζ򤬡Ȣ 2 ĤȤ̣ޤƱФȢƱޤƱ ѥͿޤ (ʲ: set style fill (82.66.4))

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

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

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

θܤϡߤ set bars ͤ < 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 (82.66.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) ѤƤޤΤǡǤդθ ΥǡĤΥޥɤǽǤޤʲ: iteration (68)


     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 bars 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 ̾Ϥνġβ 뤳ȤˤʤޤΤǡkey ȥ x θФλ ѹɬפޤʲΥʬ򻲾ȤƤ


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

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

39.1 Newhistogram

:


    newhistogram {"<title>"} {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 Ϥޤޤ

39.2 ʣϤ뼫ưŪʷ֤ (automated)

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


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

40 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 (72.2.8.4),keywords center (72.2.8.6), keywords rotate (72.2.8.7)

Image figure_scaled_image
ƥԥ x y 礭򼨤Ȥǡǡ 2 ɸ Ĺ˼ޤ褦˿̤뤳ȤǤޤʲ:binary keywords dx (72.2.8.3), dy (72.2.8.3)βΤˤϡƱϲ 줾 dx, dy, origin ꤷʣ֤ޤ PNG ӥγ 50x128 ԥǤ⤤ӥϡdx=0.5 dy=1.5 dz Ƥ褷㤤ӥϡdx=0.5 dy=0.35 ȤƤޤ (: Ҥ٤ƤȤϡpdflatex Ѥޥ˥奢˸ޤΤǡ ܸΥޥ˥奢ˤϤοޤϴޤޤƤʤǤ礦)

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] ϰˤȲꤵޤ

40.1 Ʃ (transparency)

rgbalpha ϡϥǡγƥԥ뤬 [0:255] ϰ ΥեͤäƤɬפޤalpha = 0 ΥԥϴƩ ǡβ () ǤѤޤalpha = 255 Υԥ ƩǤ٤ƤνϷϡ 2 Ĥξüͤ򥵥ݡ Ȥޤ0 < alpha < 255 ΥԥȾƩǡ 2,3 νϷ ˤбƤ餺¾νϷǤϤ 0 255 Ȥư ȤˤԤޤ

40.2 Image failsafe

ϷΥɥ饤ФˤäƤϡ2 ĹΰǤβǡΥ 󥰤Ŭ롼󶡤Ƥ礬ޤ 롼ԴǤ뤳ȤΤƤޤκŬ롼ϡ  failsafe ȤȤ̵Ǥޤ:


     plot 'data' with image failsafe

41 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)

42 Labels

Image figure_labels
labels ϡǡե뤫ɸʸɤ߹ߡʸ 򤽤 2 ޤ 3 ɸ֤ޤϴŪ 3 ޤ 4 ϤɬפȤޤ;ʬϡեȥʸ ѿͤΤ褦ʾ󶡤줿ΤȤƻѤޤ (ʲ:rgbcolor variable (17.1.3))


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

եȡžѤ䤽¾ƥȤ°ɲåץȤ ǽǤ (ʲ: set label (82.31))ϡϥե 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 3 ǤѤǤޤξ X,Y,Z ʸ 󡢤 4 Ĥ꤬ɬפǤ


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

ʲ⻲: datastrings (11), set style data (82.66.3)

43 Lines

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

2 ξ

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

3 ξ
    1 :  z       # x ϰۤιֹ桢y  index 
    3 :  x  y  z

ʲ⻲: linetype (82.32), linewidth (82.66.7), linestyle (82.66.7)

44 Linespoints

Image figure_linespoints
linespoints ϡܤ򿿤ľʬǷӡθǺ äƳ˾ʵޤޥ set pointsize Ȥ ơεΥǥեȤ礭ѹǤޤ Ū 2 Ǥ 1 󡢤ޤ 2 ϥǡɬפǡ3 Ǥ 1 󡢤ޤ 3 ΥǡɬפǤʲ: style lines (43) ;ʬϡΥοѹʤɤξ󶡤줿ΤȤ ƻѤޤ

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

linespoints lp άȤޤ

45 Points

Image figure_points
points ϳ˾ʵɽޤεΥǥե 礭ѹˤϥޥ set pointsize Ȥޤ Ū 2 Ǥ 1 󡢤ޤ 2 ϥǡɬפǡ3 Ǥ 1 󡢤ޤ 3 ΥǡɬפǤʲ: style lines (43) ;ʬϡΥѹʤɤξ󶡤줿ΤȤ Ѥޤ

46 Polar

Image figure_polar
˺ɸ (polar) ϡºݤˤ襹ΰĤǤϤޤ󤬡 ˤΰ˾夲Ƥޤץ set polar ϡ Ϥ 2 ɸ < x> ,< y> < > ,< Ⱦ> Ȳ᤹뤳Ȥ gnuplot ˻ؼޤ٤ƤǤϤʤ¿ 2 襹뤬 ɸ⡼ɤǤⵡǽޤޤϡ襹 lines filledcurves Ȥ߹碌򼨤Ƥޤ(: ǽҤ٤ƤޤȤϡpdflatex Ѥޥ˥奢˸ޤΤǡܸΥޥ˥奢ˤϤοޤϴ ޤƤʤǤ礦) ʲ: set polar (82.57), set rrange (82.62),set size square (82.65)

47 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 ǥ⡣

48 Rgbalpha

ʲ: image (40)

49 Rgbimage

ʲ: image (40)

50 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 (17.1),rgbcolor variable (17.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

ܺ٤ϡʲ: arrowstyle (82.66.1)

:

     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 (82.10), arrowstyle (82.66.1)

51 Xerrorbars

Image figure_xerrorbars
xerrorbars 2 ΥǡΤߤѲǽǤ xerrorbars ϡʿθؼ (error bar) ɽʳpoints ƱǤ (x,y) ˤ (xlow,y) (xhigh,y) ޤǡ ޤ (x-xdelta,y) (x+xdelta,y) ޤǤʬޤ ϤĤΥǡͿ뤫ˤäѤޤؼüˤ ߤΰդޤ (set bars ȤƤʤСܺ٤˴ؤ ϡʲ: set bars (82.4))ΥϴŪˡ3 4 Υǡ ɬפǤ:


    3 :  x  y  xdelta
    4 :  x  y  xlow  xhigh

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

52 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 bars ȤƤʤ Сܺ٤˴ؤƤϡʲ: set bars (82.4)) 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 ȤƻȤޤ

53 Yerrorbars

Image figure_yerrorbars
yerrorbarserrorbars) 2 ΥǡΤߤ ѲǽǤyerrorbars ϡľθؼ (error bar) ɽ ʳ points ˻Ƥޤ (x,y) ˤ (x,y-ydelta) (x,y+ydelta) ޤǡޤ (x,ylow) (x,yhigh) ޤǤʬ ϤĤΥǡͿ뤫ˤäѤޤ üˤϹߤΰդޤ (set bars ȤƤʤС ܺ٤˴ؤƤϡʲ: set bars (82.4))ϡ3 4 Υǡɬ פǤ


    3 :  x  y  ydelta
    4 :  x  y  ylow  yhigh

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

ʲ⻲

errorbar ǥ⡣

54 Xerrorlines

Image figure_xerrorlines
xerrorlines 2 ΥǡΤߤѲǽǤ xerrorlines linespoints ˻Ƥޤʿθ Ȥ㤤ޤ (x,y) ǡǡθĿ˱ (xlow,y) (xhigh,y) ޤǡޤ (x-xdelta,y) (x+xdelta,y) ޤǤʬ 졢ƹΰü֤ޤ (set bars ȤƤʤ 硣ܺ٤ϡʲ: set bars (82.4))Ūˤϡ3 4 Υǡ ɬפǤ:


    3 :  x  y  xdelta
    4 :  x  y  xlow  xhigh

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

55 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 bars ȤƤʤ硣ܺ٤ϡʲ: set bars (82.4))ϡ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 ȤƻȤޤ

56 Yerrorlines

Image figure_yerrorlines
yerrorlineserrorlines) 2 ΥǡΤ ѲǽǤyerrorlines linespoints ˻Ƥޤľ 뤳Ȥ㤤ޤ (x,y) ǡǡθĿ˱ (x,y-ydelta) (x,y+ydelta) ޤǡޤ (x,ylow) (x,yhigh) ޤǤʬ졢ƹΰü֤ޤ (ܺ٤ϡʲ: set bars (82.4)) ϡ3 4 ϤɬפǤ


    3 :  x  y  ydelta
    4 :  x  y  ylow  yhigh

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

ʲ⻲ȡ

顼СΥǥ

57 3 () (3D (surface) plots)

Image figure_surface
ϡޥ plot ǤϤʤޥ splot Ȥä with lines ȤС̤ʻǤޤ̤ ɤ٤ϡ with pm3d ǹԤȤǤޤ̤̾ 줬 3 ζ̤ǤȤϤä狼褦ʻɽޤ ξ硢X, Y, Z Ϥ٤ɽޤ3 ŪʺФϡ 䡢Ǥοˤꡢޤʲ:hidden3d (82.27), pm3d depthorder (82.53.3)
Image figure_surface+contours
ޥ splot ϡ Z ͤФ׻褹뤳Ȥ ޤϡ̤켫Τξ˽񤯤ȤǤޤXY ʿ̤ؼͱƤ뤳ȤǤޤʲ: set contour (82.14)

57.1 2 ͱ (set view map)

Image figure_mapcontours
ޥ splot ̤ʾȤơ Z μͱƤˤ롢Z ɸ 2 ̤ؤϿ޺ (map) ޤʲ: set view map (82.82) ⡼ɤϡ䲹ʬۤΤѤǤޤ


3 ޥ (Commands)

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

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

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

58 Cd

cd ޥɤϥȥǥ쥯ȥѹޤ

:

       cd '<ǥ쥯ȥ̾>'

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

:

       cd 'subdir'
       cd '..'

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

       cd "c:\newdata"

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

ʤ̤ưǤ礦

59 Call

call ޥɤϡ1 Ĥεǽʳ load ޥɤǤ εǽϡ10 ĤޤǤΥѥ᡼򥳥ޥɤɲäǤ뤳ȤǤ (ѥ᡼ɸŪʹʸ§ˤäƶڤޤ)Υѥ᡼ ϡե뤫ɤޤԤ뤳ȤǤޤcall ե뤫ƹԤɤޤˡ$ (ɥ뵭) ³ (0-9) Ӥޤ⤷ĤС¤Ӥ call ΥޥɹԤб ѥ᡼֤ޤcall ιԤǤΥѥ᡼ʸ ƻꤵƤʤСϤǤ䤬ʤޤ ʸ $# ϥѥ᡼θĿ֤ޤʸ³ $ Ϥʸˤʤޤ㤨СĤ $ ˤ $$ Ȥޤ call ΥޥɹԤ 10 Ĥ¿ѥ᡼Ϳȥ顼 ޤͿʤäѥ᡼ϡ̵Ȥưޤcall Υեˤ load ޤ call ޥɤäƤ⹽

:

       call "<ϥե>" <ѥ᡼ 0> < 1> ... < 9>

ϥե̾ϰǰϤޤʤФʤޤ󡣤ơѥ᡼ ǰϤळȤ侩ޤ (gnuplot ξΥСǤϰ ϤǤʬȰϤǤʤʬФƤϰ㤦갷򤹤ͽǤ)

:

ե '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

: using ѤƤǡեǤʸˡŪ˽ŤʤäƤޤ ξ硢call 줿ǡե뤫ץåȤȤϡǡ n ܤλؼˤ $$n ޤ column(n) ѤƤ

60 Clear

clear ޥɤϡset output 򤵤줿̤ޤϽ֤򥯥 ޤ̾ϡɥԡ֤ФƤϲڡԤޤ 򤹤ˤ set terminal ѤƲ

Ĥν֤ 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 (82.41),set size (82.65), set origin (82.49)

61 Do

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

ϡޥʣ¹Ԥޤޥɤ楫å {} ǰϤߡ ijϥå "{" ϡ do ƱԤ֤ɬפޤ ΥޥɤϡŤ (äʤ) if/else ʸȰ˻ȤȤ Ǥޤ󡣷֤ < iteration-spec> ˤĤƤϡʲ:iteration (68):
     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

62 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 (23.2)

63 Exit

exit quit ξޥɤ END-OF-FILE ʸ (̾ Ctrl-D) Ʊ͡ ߤϥȥ꡼ࡢʤüäѥϡե ( ) Ϥλޤ

ϥȥ꡼ब (Ū load ΥץȤ) ˤʤäƤ 硢ɤ߹ߤϿƤΥȥ꡼Ƿ³ޤȥåץ٥Υȥ꡼ब ĤȡץϤ켫Ƚλޤ

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


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

ܺ٤ϡʲ: batch/interactive (6)

64 Fit

fit ޥɤϥ桼Ϳ (x,y) ޤ (x,y,z) ηΥǡ νؤƤϤǽˤޤˤ Marquardt-Levenberg ˡ Ǿˡ (NLLS) μѤޤ˸ ѿϤƤϤΥѥ᡼ȤƻȤȤǤޤ μ֤ͤϼ¿Ǥɬפޤ

:

     fit {<ranges>} <expression>
         '<datafile>' {datafile-modifiers}
         via '<parameter file>' | <var1>{,<var2>,...}

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

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

Ǥʲ: plot ranges (72.8)

< expression> ̾Ϥ餫桼줿 f(x) ޤ f(x,y) δؿǤgnuplot ͭǤդοǤޤ

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

ƤϤ 1 ѿؿ z=f(x) ؤΥǥեȤΥǡν񼰤 z x:z ǤĤޤꡢǡ 1 󤷤ʤФϽ°ѿ (ؿ) ȸ ʤ졢ֹ椬Ωѿ (ѿ) Ȥʤꡢ2 ΥǡС1 ܤΩѿ͡2 ܤ°ѿͤȤʤޤ

ηϥǡեؤ using ҤѹǤ㤨 z ͤ¾󤫤äꡢ뤤ʣ󤫤׻ͤȤ뤳ȤǤ ޤ3 ܤ using (ֹ桢ޤϿ) Ϳ줿ϡ б z ͤɸкȤƲᤵ졢ϤΥǡؤν (=1/s**2) ׻Τ˻ȤޤǤʤСƤΥǡ ƱŤ (1) Ƿ׻ޤusing ץꤷʤä 硢3 ܤΥǡäǤǡ z кɤޤޤ ǡξϽŤ 1 ˤʤޤ

2 ѿؿ z=f(x,y) ƤϤ硢ǡν񼰤 using ˤ 4 Ĥι x:y:z:s ׵ᤵޤϴƤͿʤФ 餺­ܤФƤϤɤǥեȤϲꤵƤޤ󡣳 ǡνŤߤϾƱͤ 's' ׻ޤ⤷ɾä ʤСͤȤƻꤹФǤ礦 (ʲ:plot datafile using (72.3.8))㤨 using 1:2:3:(1) Τ褦ˡ

ƤϤؿˤϡΩѿ 5 Ĥޤǻޤ1 ѿʳξϡΩѿθĿ 2 ¿ using 򤷤ʤФޤ󡣵񼰡ƥǥեȤΥߡѿ̾ϰʲ̤Ǥ:


     z
     x:z
     x:z:s
     x:y:z:s
     x:y:t:z:s
     x:y:t:u:z:s
     x:y:t:u:v:z:s

ߡѿ̾ϡˤ褦ϰϻˤäѹǤޤǽ Ϥ using κǽΤΤбʲƱͤǤz (°ѿ) ϤǤޤ̾ѹǤޤ

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

via Ҥϡѥ᡼Ĵľܤޤϥѥ᡼ե Ȥ뤳ȤˤäƹԤꤷޤ

:

     f(x) = a*x**2 + b*x + c
     g(x,y) = a*x**2 + b*y**2 + c*x*y
     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 via a, b, c
     fit g(x,y) 'surface.dat' using 1:2:3:(1) 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:(1) via a,b
     fit [*:*][yaks=*:*] a*x+b*yaks 'surface.dat' u 1:2:3:(1) via a,b
     fit a*x + b*y + c*t 'foo.dat' using 1:2:3:4:(1) via a,b,c
     h(x,y,t,u,v) = a*x + b*y + c*t + d*u + e*v
     fit h(x,y,t,u,v) 'foo.dat' using 1:2:3:4:5:6:(1) via a,b,c,d,e

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

gnuplot set fit errorvariables Ȥ褦˥󥹥ȡ뤵 ơΥޥɤѤ硢ƤϤѥ᡼θϡΥ ᡼Ȼ̾ ("_err" ɲä줿̾) ѿ¸ޤ äƤθ򹹤ʤ׻ϤȤƻѤ뤳ȤǤޤ

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

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

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

64.1 ѥ᡼Ĵ (adjustable parameters)

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

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

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

     ѿ̾ = 

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

     ѿ̾ =        # FIXED

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

64.2 Fit γά (fit beginners_guide)

fit ϡͿ줿ǡͿ줿桼ؿˤäȤɤ ƤϤ褦ʥѥ᡼򸫤ĤΤ˻ȤޤƤϤϡ ƱǤϥǡȴؿͤȤμ뤤ϻĺ (SSR:Sum of the Squared Residuals) ¤Ƚꤵޤ̤̾() ȸƤФޤΥ르ꥺ SSR Ǿ뤳Ȥ򤷤褦 ޤ⤦ܤȡǡ (ޤ 1.0) νŤߤĤĺ (WSSR) κǾԤäƤޤܺ٤ϡʲ:fit error_estimates (64.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 и FIT_LIMIT 꾮ʤä)ޤ (2) 餫 ꤵ줿ȿθ³ FIT_MAXITER (ʲ:fit control variables (64.4.1)) ã硢Τ줫ޤ³ ޤܡɤ餽ƤϤȿǤǤޤ³ ߤ뤳ȤǤޤ (ʲ: fit (64))桼ѿ FIT_CONVERGED ϡ ľ fit ޥɤ«ˤ꽪λ 1 ޤߡʳͳǤ 0 ޤߤޤ

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

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

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

64.3 ɾ (error estimates)

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

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

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

64.3.1 Ūʳ (statistical overview)

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

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

ǽʳ fit 'stdfit'ʤĺ RMS (ʿʿ) ǵ ƤϤɸкȡǡŤߤŤƤ ' 줿ּ' ȤƤФĺʬݡȤޤͳ (ǡ οƤϤѥ᡼ο) ϤɾǻѤ ʤʤ顢ǡλĺη׻ǻȤѥ᡼Ʊǡ ΤǤͤϰʲѿޤ:

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

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

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

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

64.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 ʬۤĥ ʥץȴؿФƴԤΤ⾮Ȥ̣ ǡɾ礭ΤŪʲ꤬ʤΤޤ ϥǥؿŪơŪ˲äüʥץˤư ƤϤˤʤäƤΤǤ礦Ǹξϡꥷץʴؿˤ ФޤԤǤ礦

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

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

64.4 (control)

fit ˱ƶͿ뤿Ǥ뤿 gnuplot ѿ ޤ gnuplot ư˰Ǥޤ control_variable ǾҲ𤷡gnuplot Ω 夬ꤹѿ environment_variables ǾҲ𤷤ޤ

64.4.1 ѿ (control variables)

ǥեȤΤäȤ⾮θ³ (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 (64.5)

64.4.2 Ķѿ (control environment)

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


     FIT_LOG

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


     FIT_SCRIPT

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

64.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 ĤλޤۤƤޤǽΤǡŬʽŤդɬפˤʤޤƻޤ ХƤϤΤʣƤϤˡβͤȤѤΤϡ 碌γƻޤФŪʱƶ˴ؤɽͿ뤳Ȥˤʤ 礦

64.6 (starting values)

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

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

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

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

64.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! ( ƤϤˡϷݽѤ !)"

65 Help

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


       help {<̾>}

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

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

66 History

ޥ history ϡԽޥɥ饤 (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"        # Ʊ (ʣθϰǰϤ)
     hi !hi                # ƤƤߤ :-))

popen ؿ򥵥ݡȤ褦ʥƥ (Unix ʤ) ǤϡνϤ ѥ׷ͳ¾γץϤȤǤޤξ硢 Ĥˤ褦ˡե̾Ȥƥޥ̾Ƭ '| ' Ĥ Ȥޤ

67 If

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

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

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

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

67.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"

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

if reread Ȥäƥ롼פϡʲ: reread (79)

68 ֤ (iteration)

plot, splot, set, unset ޥɤǤϡ֤ȤȤ ޤϡŪʥޥɤʣ¹Ԥ̤ΤΤ Τμ¹ԤǤϷ֤ѿˤäƿϺɾޤ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

ʤˤĤƤϡʲ: plot iteration (72.9), do (61)

69 Load

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

:

       load "<ϥե̾>"

ϥե̾ϰǰϤޤʤФʤޤ

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

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

:

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

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

70 Lower

:
     lower {plot_window_nb}

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

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

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

71 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 (18.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

72 Plot

plot gnuplot ǿޤδŪʥޥɤǤ ϴؿ ǡ¤¿ˡɽޤplot 2 δؿǡ Τ˻Ȥ졢splot 3 ζ̤ǡ 2 Ƥޤ plot splot ¿ζ̤εǽ󶡤ޤΰ㤤ˤĤƤ ʲ: splot (84)äդƤޤbinary < binary list> plot, splot ξưޤξԤˤϾʰ㤤 ޤ

:

     plot {<ranges>}
          {<iteration>}
          {<function> | {"<datafile>" {datafile-modifiers}}}
          {axes <axes>} {<title-spec>} {with <style>}
          {, {definitions{,}} <function> ...}

ؿ < function> ޤϰǰϤޤ줿ǡե̾ (< datafile> ) Τɤ餫Ϳޤؿ̾ 1 ܤοǤ޲ѿ⡼ (parametric) ˤƤ 2 ĤοȤǤؿϡȤ߹ߴؿ 桼ؿ뤤Ϥ plot ޥɤξͿΤΤ줫 ѤǤޤޤǶڤ뤳ȤǡʣΥǡؿ 1 ĤΥޥ ɤǤޤʲ: data (72.3), functions (72.6)

:

     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 (82.52)

72.1 (axes)

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

72.2 Binary

Хʥǡե:

gnuplot СǤϡХʥΥǡեưŪ˸ФΤ⤢ޤߤϥե̾θ binary ΥɤͿ뤳ȤɬܤȤʤäƤޤե˴ؤ뽽ʬܺ٤ ϡ桼ޥɥ饤󤫤Ϳ뤫ޤϥݡȤƤ filetype ΥХʥΥե뤽켫ȤȴФ뤫ɬ ޤХʥեˤϡ礭 2 Ĥηbinary matrix binary general ޤ

binary matrix ϡ32 ӥå IEEE ʤư (float) 2 η¤ӡκɸͤɽԤɲäƤޤ ASCII matrix Ʊ͡using ꥹȤˤƤϡɸѤ¤ (1 ) using 1 ܤ (x ɸ) бɸѤιԤ¤ (1 ) using 2 ܤ (y ɸ) бγͤ using 3 ܤ (z ɸ) бޤ

binary general ϡǤոĤΥǡޤߡξϥ ɥ饤ǻꤹɬפޤ㤨 array, record, format, using ʤɤǥǡμǤޤ¾ˤ⡢ե إåɤФꡢǥ (endian) ѹ뤿ͭѤʥ ޥɤޤ֡ǡѴԤʤޥɤȤޤ ϡͤɸܲ줿ǡξ硢κɸեˤϴޤޤ Ȥɤ뤫Ǥmatrix Хʥ ASCII ǡȰäƤ Ǥ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 (84.1.1), binary general (72.2.1)

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

Хʥե splot Υǥ⡣

72.2.1 General

general Хʥǡϡη˴ؤɬեˤ ʤƤɤեη˴ؤܺ٤ʾ򥳥ޥɥ饤󤫤Ϳ 뤳ȤǡΥǡɤ߹ळȤǽˤʤޤΥץν ϰŪʥ桼ˤϤǤgeneral Хʥä gnuplot Ȥ¿Υǡ褦ʥץꥱ˼äƤͭѤǤ

:

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

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

Хʥ˴ؤ󤬼ưŪ˥ե뤫ɤ߼뤳ȤǤ褦 ɸŪʥե⤤Ĥޤ (ΰ򸫤ˤϡgnuplot ò̤ show datafile binary Ƥ)ʳξϥޥɥ饤󡢤뤤ϥǥեȤͤꤹɬפޤ ɤ˴ؤƤϰʲޤ

< binary list> Ϳ륭 filetype ϡեɤ߹Τ Ѥ롼󡢤ʤǡηΰ椷ޤݡȤ Ƥ filetype ΰ򸫤ˤϡshow datafile binary filetypes Ƥfiletype ꤷʤε§ϡsplot Ѥ binary ɤñȤͿ줿ϸŵŪ gnuplot Хʥȸ ʤ졢¾Ƥξʤ plot ѤޤϾʤȤĤ < binary list> ɤͿ줿褦ʾϡraw Хʥե Ȥߤʤ졢ΥɤˤäƥХʥꤵޤ

general Хʥǡե 2 ĤδŪʥ饹ʬޤ 줬ɤΤ褦˰ΤˤäξΥ饹⤢ޤ ĤΥ饹ϡǡϰͤ˥ץ󥰤Ƥȸʤ졢κ ɸɬŪˤޤΥ饹Ǥ < binary list> ɤѤƤ椬ԤʤޤơΥ饹Ǥͥ ̤ϡޥɥ饤ѥ᡼եΥѥ᡼񤭤 ϥǥեȤ񤭤ޤ⤦ĤΥ饹ϡɸ󤬥ե ˴ޤޤ줿ʣΥեȤΤΤΡ뤤 gnuplot Х ʥΤ褦ͤɸܲޤĤΥեΤΤΤǤ

gnuplot ХʥΤ褦üʥǡեʳǤϡ̤˥Хʥǡϳǰ ASCII ǡƱͤ˹ͤޤϾ Ƥơ using ˤäƷӤĤ < using list> 򤵤 ޤformat ʸ󤬲ꤵʤä硢gnuplot ϥХʥ ο < using list> Ϳֹޤ㤨 using 1:3 ξ 3 󤺤ĥǡɤ߼졢2 ܤΤΤ̵ ޤ襹ˤϤŵŪʥѥ᡼θĿꡢ Ť < using list> ǥեȤȤ򤵤ޤ㤨 with image Ǥ ǥեȤ using 1 with rgbimage Ǥϥǥ Ȥ using 1:2:3 Ȥޤusing //index ɽ ʸϡ̤ˤϥХʥǡǤϻȤ٤ǤϤʤȤդƤ 椹 < binary list> Υɤޤ

72.2.2 Array

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

72.2.3 Record

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

72.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 ...

72.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 Ǹ뤳ȤǤޤ ϡ줾ΥѥˤäƤΥХȥȤȤ˥ޥ ¸ѿ̾Υ롼פȡޥ˰¸ʤѿ̾Υ롼פʬ Ƥޤ

72.2.6 Endian

եΥХʥǡΥǥϡgnuplot ưץåȥ ΥǥȤϰۤʤɤޤĤλ gnuplot ХȤɤΤ褦˰Ǥޤ㤨 endian=little ϡХʥե򡢤ΥХȤ¤Ӥ夫 礭¤ǤȸʤޤץϰʲΤΤȤޤ


             little:  夫礭ʷ¤
                big:  礭ʷ夫龮ʷ¤
            default:  compiler Ʊǥȸʤ
        swap (swab):  ǥѹ (褦ʤ餳
                      ȤäƤߤƤ)

gnuplot ϡѥ˥ץ󤬻ꤵƤС"middle" ( "pdp") ǥ⥵ݡȤǤޤ

72.2.7 Filetype

gnuplot ϡĤɸŪʥХʥեˤĤƤɬפʾ Υե뤫ȴФȤǤޤ㤨 "format=edf" ESRF åեΥեȤɤ߹ߤޤߥݡȤƤ ˤĤƤϡshow datafile binary filetypes ǸƤ

̤ʥեȤ auto ꡢξ gnuplot ϥХʥ γĥҤݡȤƤɸŪʳĥҤǤ뤫 åޤ

ޥɥ饤󥭡ɤϥե뤫ɤ߼񤭤Τ˻Ȥ 졢ե뤫ɤ߼ϥǥեȤ񤭤ޤ (ܺ٤ ʲ: set datafile binary (82.16.6))

72.2.7.1 Avs

avs ϡưŪǧ᡼ФХʥեη ĤǤAVS ñʥեޥåȤǡץꥱ֤ǤȤ Τ˺ǤŬƤޤϡ2 Ĥ long (xwidth ywidth) ȡ θ³ԥ󤫤ꡢγƥԥ alpha/red/green/blue 4 ХȤޤ

72.2.7.2 Edf

edf ϡưŪǧ᡼ФХʥեη ĤǤEDF ESRF ǡեޥå (ESRF Data Format) ̣ ơ edf ehf ξη򥵥ݡȤƤޤ (Ԥ ESRF Header Format)λѤ˴ؤܤϰʲǸĤǤ礦:


 http://www.edfplus.info/specs

72.2.7.3 Png

gnuplot png/gif/jpeg Ѥ libgd 饤֥Ȥ褦˥󥹥 뤵Ƥ硢βХʥեȤɤ߹ळ ȤǤޤʲΤ褦Ūʥޥ
     plot 'file.png' binary filetype=png

ȤȤǤޤ餫ʲΤ褦ꤷơĥҤ鼫ưŪ˲ưŪǧ뤳ȤǤޤ
     set datafile binary filetype=auto

72.2.8 Keywords

ʲΥ (keyword) ϡХʥե뤫ɸȤ ˤΤŬѤޤĤޤꡢbinary array, matrix, image θġǤ x,y,z ΰ֤ؤ֤ΤΤΤǤ

72.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 ʤäƤޤ

72.2.8.2 Transpose

scan=yxޤ scan=yxz ƱǤ

72.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 ХʥեˤȤޤ

72.2.8.4 Flipx, flipy, flipz

Хʥǡե gnuplot Ȱפʤ ޤˤޤΥɤϡ줾 x, y, z Υǡ ոˤޤ

72.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 ѤλǤ

72.2.8.6 Center

origin ȻƤޤΥɤϡ濴Υ ǻꤷˤʤ褦֤ޤ㤨 center=(0,0) Τ褦ˤ Υ Inf ΤȤ center ŬѤޤ

72.2.8.7 Rotate

ž (transpose) ȿž (flip) ޥɤϺɸȺɸˤ νͿƤޤ٤˴ؤ봰ϡ2 βžѤ򵭽Ҥžѥ٥ȥͿ뤳ȤˤԤʤȤǽˤ ޤ

rotate , plot, splot ξǡ2 ̤ФŬ ޤžϺɸʿ̤γ٤˴ؤƹԤʤޤ

٤ϡ饸ñ̤Ǥpi degrees ܿȤƤΥ饸Ǥɽ Ǥޤ㤨Сrotate=1.5708, rotate=0.5pi, rotate=90deg ٤Ʊ̣Ǥ

origin ꤵ줿硢žʿ԰ư˺濴ˤƹ ʤޤʳǤϲž濴 (center) ˴ؤƹԤʤ

72.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 ǡȸʤޤ)

72.3 ǡ (data)

եǼ줿ΥŪʥǡϡplot ޥɥ饤ǡ ǡե̾ (< datafile> ) ñޤŰǰϤǻ 뤳ȤˤäɽǤޤ

:

     plot '<file_name>' {binary <binary list>}
                        {{nonuniform} matrix}
                        {index <index list> | index "<name>"}
                        {every <every list>}
                        {thru <thru expression>}
                        {skip <number-of-lines>}
                        {using <using list>}
                        {smooth <option>}
                        {volatile} {noautoscale}

Ҥ binary, index, every, skip, using, smooth ϡ 줾ʬޤñ˸ȡbinary ϥǡХʥ ե뤫Ǥ褦ˤ (ǥեȤ ASCII ե)index ϥޥǡե뤫ɤΥǡɽΤӡ every ĤΥǡ礫ɤɽΤӡusing Ԥɤ᤹Τꤷ (thru ϡusing ̤ʾ Ǥ) smooth ñ֤ȶԤޤ(splot ϡ 褯񼰤äƤޤsmooth ץ thru ץ ϥݡȤƤޤ)

noautoscale ϡưŪ˼ϰϤꤵ뵡ǽͭ ˡǡˤĤƤϡ̵뤵 ( ư̼ܵǽη׻оݤ鳰) 褦ˤޤ

ASCII ǡե:

ǡեϡԤˤĤʤȤĤΥǡޤɬפ (using ϰԤĤΥǡݥȤ֤ȤǤޤ)# (VMS Ǥ !) ǻϤޤԤϡȤȤư졢̵뤵ޤƥ ϡ(x,y) Ȥɽޤ顼Сޤޤɽե顼 plot Ǥ (ʲ: set style errorbars (53),set style errorlines (56))ƥǡϡ(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 (72.3.3)

⤷ autoscale ξ֤Ǥ (ʲ: set autoscale (82.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 (42))

72.3.1 Every

every ϡ褹ǡǡ礫Ū˥ץ 󥰤뤳Ȥǽˤޤ

Ǥ ֥ݥȡפϥե 1 ĤιԤˤäǡ ǤΡ֥֥åפϡ֥ǡ֥å(ʲ: glossary (16)) ƱΤ̣뤳ȤȤޤ

:

        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 ǥ

72.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 (84.1.1)

72.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 (72.3.8.2), lc variable (17.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]' ʤɤ̿̾ˡ򤹤Ǥ礦

72.3.4 Skip

skip ϡץ˥ƥȥǡե (Хʥǡ Բ) ƬοԤ򥹥åפޤåפԤϡevery ɽǤιԿˤϥȤޤevery ::N ϤΥե Τ٤ƤΥǡ֥åƬ򥹥åפޤskip N ϤΥե ƬʬιԤΤߤ򥹥åפ뤳ȤդƤХʥ եŬѤƱͤΥץˤĤƤϡʲ:binary skip (72.2.4)

72.3.5 Smooth

gnuplot ϡǡ֤ȶԤŪʥ롼򤤤Ĥ Ƥޤ smooth ץ˥롼ײƤޤ 줿ǡ򤷤Сˤƥǡ򤹤뤫 ޤŬڤʥǥ fit ȤΤǤ礦

:

     smooth {unique | frequency | cumulative | cnormal | kdensity | unwrap
                    | csplines | acsplines | mcsplines | bezier | sbezier}

unique, frequency, cumulative, cnormal ϡǡñĴ· Ǥ plot ޤunwrap ϡϢ³ y ͤФ ʥפ򤷤ʤ褦򤷤ޤ¾Υ롼Ϥ⡢ǡ ξüδ֤֡Ϣ³ηꤹ뤿˥ǡȤ ζϡؿȤƱˡ褵ޤʤ x ɸ˱褦Ʊζ֤ȤФ (ʲ: set samples (82.64)) ʬǤĤʤȤˤ (⤷ line style ФƤΤʤ ) 褵ޤ

autoscale ξ֤ǤСϰϤϥդζ˶ ޤ褦˷׻ޤ

autoscale ξ֤Ǥʤsmooth Υץ acsplines csplines ǤСɸܲϡϥǡޤ褦 x ϰϤȡset xrange ʤɤꤵ줿ɸϰϤζ ʬξǹԤʤޤ

򤵤줿ץŬѤΤ˥ǡʤϡ 顼åɽޤκǾΥǡ unique frequency Ǥ 1 ġacsplines Ǥ 4 ġ¾ΥץǤ 3 Ǥ

smooth ץϡؿΤȤˤ̵뤵ޤ

72.3.5.1 Acsplines

acsplines ץϡּʳ餫ʥץ饤פǥǡ ǡ x ˴ؤñĴˤ줿 (ʲ: smooth unique (72.3.5.6))1 ĤζĤ 3 ¿༰ΰʬˤʬŪ˹ޤ 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

72.3.5.2 Bezier

bezier ץϡn (ǡθĿ) Υ٥ǥǡ ޤζξüĤʤޤ

72.3.5.3 Csplines

csplines ץϥǡñĴ· (ʲ:smooth unique (72.3.5.6)) 3 ץ饤ǰ³Ĥʤޤ

72.3.5.4 Mcsplines

mcsplines ץϡʿ경줿ؿñĴ¸ 褦 3 ץ饤ǰ³Ĥʤޤ FN Fritsch & RE Carlson (1980) "Monotone Piecewise Cubic Interpolation", SIAM Journal on Numerical Analysis 17: 238-246.

72.3.5.5 Sbezier

sbezier ץϡǽ˥ǡñĴ· (ʲ: unique (72.3.5.6)) bezier 르ꥺŬѤޤ

72.3.5.6 Unique

unique ץϡǡ x ñĴˤޤƱ x ĥ y ͤʿѤưĤ֤ޤƤη̤Ȥ ʬǷӤޤ

72.3.5.7 Unwrap

unwrap ץϡ2 Ĥ³Фۤ㤤Фʤ褦˥ǡ ޤ: y ͤϰϤۤ褦ФƤϡȤ ФϰϤ˼ޤ褦 2Фܤäޤϡᤷ ķϤͤŪϢ³ˤΤͭѤǤ

72.3.5.8 Frequency

ץ frequency ϡǡ x ˴ؤñĴˤޤx ɸƱ ϡ y ͤιפ y ͤȤƻİĤ֤ ޤ̤ȤƤϿäʬǷФ뤳Ȥˤʤޤ ʲ⻲ȡ

smooth.dem

72.3.5.9 Cumulative

ץ cumulative ϡǡ x ˴ؤñĴˤޤx ɸ Ʊϡʲ x ͤĤ٤Ƥ (ʤߤΥǡκ¦) Ф y ͤŪʹפ y ͤȤƻİĤ ޤϡǡʬ۴ؿΤѤǤޤ ʲ⻲ȡ

smooth.dem

72.3.5.10 Cnormal

ץ cnormal ϡx ˴ؤñĴǡy ͤ [0:1] ǡޤƱ x ͤʣϡ꾮 x ͤĤ٤ƤΥǡ (ʤߤΥǡ⺸ˤ ) ¤򡢤٤Ƥ y ͤ¤dzäͤ y ͤȤƻĤ褦 ʰΥǡ֤Ѥޤϡǡ줿ʬ ۴ؿΤ˻Ȥޤ (äɸΰۤʤǡӤΤ ͭѤǤ) ʲ⻲ȡ

smooth.dem

72.3.5.11 Kdensity

ץ kdensity ϡˤѤγ̩ɾ (ϳ餫ʥҥȥˤʤޤ) 褹ˡΰĤǤ ˤ 1 γΰ֤֤졢Υˤ٤Ƥ¤ؿ 褵ޤ2 ܤͤϡˤνŤߤȤƻѤޤ( 줿ҥȥˤϡ 1/(θĿ) Ȥ٤Ǥ) 3 ܤͤСϥˤΥХȤƻѤޤ2 ꤷʤ뤤 3 ܤͤ 0 ʲǤСgnuplot ϥǡʬۤǤ˺ŬȤʤ褦ʥХ׻ޤ( ̾ϤȤƤݼŪǡʤХǤ)

72.3.6 ̤ʥե̾ (special-filenames)

̤ʰ̣ĥե̾ȤơΤΤޤ: '', '-', '+', '++'

Υե̾ '' ϡƱ plot ޥɾǡľϥեƤ Ѥ뤳Ȥ gnuplot ˻ؼޤäơƱϥե 2 Ĥ ǡ褹ˤϰʲΤ褦ˤޤ:


     plot 'filename' using 1:2, '' using 1:3

'+' '++' Ȥ̤ʥե̾ϡusing Τ襹 ˥饤ؿȤ褦ˤ뤿λȤߤǤ̾ؿϥ ץñ y (ޤ z) ͤƤޤ󡣤ե '+' Ϥ줬ºݤϥեǤ褦ˡusing ˤ 1 ܤͤɸȤưɲäͤꤹ뤳Ȥǽ ֤ɸοϡset samples Ǥޤ :


     plot '+' using ($1):(sin($1)):(sin($1)**2) with filledcurves

Ʊͤˡե '++' ϡ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 (78), refresh (77)

Υե̾ ('') ϡľΥե̾ƤӻȤ뤳Ȥؼ ϡ


     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"

ΥץϺǤޤusingthru ɤѤñʥե륿󥰤ǹԤȤǽǤ

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'

72.3.7 Thru

thru ؿΥСȤθߴΤѰդƤޤ

:

     plot 'file' thru f(x)

ϼƱͤǤ:


     plot 'file' using 1:(f($2))

Ԥʣ˸ޤäƤޤ


     plot 'file' thru f(y)

ưޤ (ʤy ߡѿȤƻȤȤǤޤ)

thru splot fit Ǥ̤ޤθ̤ޤ

72.3.8 Using

Ǥ褯ȤǡեνҤ using ǡϥե ΤɤιԤ褹Τؼޤ

:

     plot 'file' using <entry> {:<entry> {:<entry> ...}} {'format'}

format ꤹȡ C 饤֥ؿ 'scanf' ŬѤƥǡ եγƹԤɤߤޤǤʤСƹԤϥۥ磻ȥڡ ( 䥿) Ƕڤ줿ǡ (ե) ʤȤߤʤޤ ʲ⻲: datafile separator (82.16.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 (72.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 (82.66), fit (64)

'scanf' ؿǤϿʥǡοϤȤޤgnuplot ƤϥǡưȤߤʤޤ顢gnuplot Ǥ %lf ܼŪͣοϻꡢȤȤˤʤޤ ʸˤϡʤȤġ 7 İʲΡΤ褦ϻҤɬפޤ 'scanf' Ͽȿδ֤˥ۥ磻ȥڡʤ򡢥 (" \ t") (" \ n")ޤϲڡ (" \ f") ȴԤޤʳϤŪ˥åפ٤Ǥ

" \ t", " \ n", " \ f" ȤȤϥ󥰥륯Ȥष֥륯Ȥ Ȥ٤Ǥ뤳ȤդƤ

72.3.8.1 Using (using_examples)

ϡ1 ܤΥǡФ 2 ܤ 3 ܤ¤ͤ plot ޤ ʸϡǡڡڤǤʤ޶ڤǤ뤳ȤؼƤޤƱȤ set datafile separator "," ꤹ뤳ȤǤǽǤ
     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 뤳ȤǽˤʤޤɤƤǡե ʸĤƤʤСΥƥȹԤ˥ʸ (#) ֤Ǥ礦

72.3.8.2 (pseudocolumns)

plot ʸ using μǤϡϥե˴ޤޤºݤΥǡ ˲äƴ⻲ȤǤ "" (pseudocolumns) ˴ޤޤ Ƥޤ
     column(0)   ǡǤγν֤֡ 0 Ϥޤꡢ2
                 ԤΥ֥󥯹ԤǥꥻåȤޤά $0 Ѳġ
     column(-1)  ֹ 0 Ϥޤꡢ1 ԤΥ֥󥯹Ԥǥꥻå
                 ޤϡ󡢤ޤϳʻҾǡΥǡ
                 Ԥбޤ
     column(-2)  ʣΥǡĥեΡߤΥǡ
                  index ֹ档ʲ: `index`

72.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" 줫Ȥʤޤ

72.3.8.4 X2ticlabels

ʲ: plot using xticlabels (72.3.8.3)

72.3.8.5 Yticlabels

ʲ: plot using xticlabels (72.3.8.3)

72.3.8.6 Y2ticlabels

ʲ: plot using xticlabels (72.3.8.3)

72.3.8.7 Zticlabels

ʲ: plot using xticlabels (72.3.8.3)

72.3.9 Volatile

plot ޥɤΥ volatile ϡϥȥ꡼फե뤫 ɤ߹ǡɤ߹߻ˤͭǤϤʤȤ̣ޤ ϡreplot ޥɤˡǽʸ¤ refresh ޥ Ȥ褦 gnuplot ˻ؼޤʲ: refresh (77)

72.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 (72.5))

顼Сˤϡ⤷ set bars ȤäƤʤСΤ줾ü˿ľ ʬĤޤ (ܺ٤ϡʲ: set bars (82.4))

ưϰϻ꤬ͭǤСϰϤϥ顼Сޤ褦Ĵ ޤ

ʲ⻲

顼СΥǥ

ʤ˴ؤƤϡʲ: plot using (72.3.8), plot with (72.11), set style (82.66)

72.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 bars ꤵƤʤ硢ξüǿľ˸ ʬդޤ (ܺ٤ϡʲ: set bars (82.4))

ư̼ (autoscaling) ON ξ硢ϰϤϸ褦Ĵ ޤ

ʤˤĤƤϡʲ: plot using (72.3.8), plot with (72.11), set style (82.66)

72.6 ؿ (functions)

ޥ plot, splot Ǥϡե뤫ɤ߹ǡ ǤʤȤ߹ߴؿ桼ؿ褹뤳ȤǤޤؿ ϡΩʼ̾ϰϤϤäƥǡץ뤳Ȥɾޤ ʲ: set samples (82.64), set isosamples (82.29)

:

     approx(ang) = ang - ang**3 / (3*2)
     plot sin(x) title "sin(x)", approx(x) title "approximation"

ؿΥǥեȤ襹ꤹˡˤĤƤϡʲ:set style function (82.66.5)Ȥ߹ߴؿξˤĤƤϡʲ:expressions functions (14.1)ǴؿˡˤĤƤϡʲ:user-defined (14.5)

72.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

ʲ⻲

޲ѿ⡼ɤΥǥ⡣

72.8 ϰ (ranges)

plot ޥɤκǽ֤ץμϰ (range) ϡɽ륰 դϰϤꤷޤϰϤϡΤɤ set range ˤϰϻͥ褷ưޤ

:

     [{<dummy-var>=}{{<min>}:{<max>}}]
     [{{<min>}:{<max>}}]

ǽϰϻΩѿϰ (xrange ޤϥѥȥå⡼ɤ trange) ǡ2 ܤΤΤϽ°ѿϰ yrange (ѥȥå⡼ɤǤ xrange) Ȥʤޤ< dummy-var> ˤΩѿο̾ ꤷޤ (ǥեȤѿ̾ set dummy ѹǤޤ)< min> , < max> ˤ뤤 * 񤯤ȤǤޤ

ѥȥå⡼ɤǤʤСͿ٤ϰϻ xrange, yrange νˤʤޤ

ѥȥå⡼ɤǤϡplot ޥɤФƤϤν trange, xrange, yrange ˤʤޤʲ 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

x2 ϰϤ y2 ϰϤϤǤϻǤʤȤդƤ ˤ set x2range set y2range Ȥޤ

ϰϤŬڤʥ⡼ɤФơ˼Dzᤵޤɬפϰϻ ꤬ƻꤵȡƤӻꤷľȤϤޤ󤬡ɬפʤ ʬꤷʤ褦ˤϤǤޤ󡣤ꡢ˶ϰϻ [] ֤ޤ

* ϡmin (Ǿ) max () ˼ưϰϻ (autoscale) εǽ ȤȤǽˤޤʲ⻲: set autoscale (82.3)

plot splot ΥޥɹԤǻꤵ줿ϰϤϤΥդˤΤ߱ƶ ڤܤޤäơθΥդΥǥեȤϰϤѹˤϡ set xrange set yrange ѤƤ

֥ǡФƤϡϰϤϥȤǰϤǻꤹɬפޤ ( ե˸֥ǡƱ)gnuplot ϤϰϤ ɤߤΤ˻ֽʸ (timefmt) Ѥޤܤϰʲ:set timefmt (82.75)

:

ʲϸߤϰϤѤޤ:

     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:]  exp(sin(x))

ʲ x ϰϤǡȤƻꤷƤޤ:

     set timefmt "%d/%m/%y %H:%M"
     plot ["1/6/93 12:00":"5/6/93 12:00"] 'timedata.dat'

72.9 ֤ (iteration)

¿ƱΥեؿƱ褹ϡ줾 plot ɤη֤ (iteration) ǤԤΤǤ

:

     plot for [<variable> = <start> : <end> {:<increment>}]
     plot for [<variable> in "string of words"]

֤Ŭϰ (scope) ϡΥ (,) ޥɤνꡢΤ 줫˸줿ȤޤǤǤ֤ (nest) ˤ뤳ȤϤ ޤ

֤ʸޤޤǤʤΤǡʲϰĤζ sin(3x) 褷ޤ

     plot for [i=1:3] j=i, sin(j*x)

j θ˥ޤʤΤǡʲ 3 Ĥζ褷ޤ
     plot for [i=1:3] j=i 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

ϡη֤ѿǤϤʤʸη֤ѿѤ 뤳ȰʳƱǤ

72.10 Title

ǥեȤǤϳƶϡбؿե̾ǥ˰ɽ ޤplot Υץ title ȤȤǡŪʥȥͿ 뤳ȤǤޤ

:

     title <text> | notitle [<ignored text>]
     title columnheader | title columnheader(N)

< text> ϡǰϤޤ줿ʸ󤫡ʸɾ뼰Τ 줫Ǥϥˤɽޤ

ϥǡκǽι (ʤƬ) ʸեɤȲ 򥭡ȥȤѤ륪ץ⤢ޤʲ:datastrings (11)ϡset key autotitle columnhead ꤹХǥ ȤεưȤʤޤ

ȥȥץͽ notitle ȤȤǥǤ ޤʤȥ (title '') notitle Ʊ̣ޤ ץߤȤϡİʾζ򥿥ȥθƤ (tilte ' ')notilte θʸĤ硢ʸ ̵뤵ޤ

key autotitles ꤵ (ǥե) title notitle ꤵʤä硢Υȥ plot ޥɾˤؿ̾ ǡե̾ˤʤޤե̾ξϡꤵǤդΥǡ ե뽤Ҥ⤽Υǥեȥȥ˴ޤޤޤ

֤䥿ȥΰ·ʤɤΥΥ쥤Ȥϡset key Ǥ ޤܺ٤ϡʲ: set key (82.30)

:

ʲ y=x 򥿥ȥ 'x' ɽޤ:

     plot x

ʲϡx 2 򥿥ȥ "x^2" ǡե "data.1" 򥿥ȥ"measured data" ɽޤ:

     plot x**2 title "x^2", 'data.1' t "measured data"

ʲϡ˺ɸդμ˱߷ζ񤭡ȥʤɽޤ:

     set polar; plot my_function(t), 1 notitle

ʲϡեγ˥ȥޤʣΥǡ褷ޤ:

     plot for [i=1:4] 'data' using i title columnhead

72.11 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
                                      vectors

ޤϡ
     boxes            candlesticks   image      circles
     boxerrorbars     filledcurves   rgbimage   ellipses
     boxxyerrorbars   histograms     rgbalpha   pm3d
     boxplot

ǽΥ롼פΥϡʸ° 2 Υ롼 Υϡɤ٤°äƤޤʲ: fillstyle (82.66.4) ˥֥ĥ⤢ޤġΥξܺ٤ˤĤ Ƥϡʲ: plotting styles (II)

ǥեȤΥϡset style function set style data Ǥޤ

ǥեȤǤϡ줾δؿǡեϡȤȤǤ뷿 ãޤǰۤʤȤޤ٤Ƥüѥɥ饤Ф 6 Ĥΰۤʤ򥵥ݡȤƤơ⤷׵ᤵ줿硢 ˺ѤƤޤνϷǤν Τ򸫤Сtest ȤƤ

ĤӤʤС< line_type> < point_type> ꤷƤͤϡǻȤꤹ (ޤϿ) ǤѤüǻȤɽ ˤ test ޥɤȤäƤ

< line_width> < point_size> ѹǤޤ ϤγơüΥǥեȤͤФŪͤȤƻꤷ 礭ΤѤ褦ѹǤޤܺ٤ϡʲ:set pointsize (82.56)ǥåȤ < 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 򥵥ݡȤ褦˥󥹥ȡ뤵ƤʤС splots ˤ lines, points, dots ο餫Ѳ뤿 ̤ʥ palette Ȥޤοϡޥ set palette Ǥ餫ꤵ줿餫Ѳ륫顼ѥåȤ򤷤ޤ ͤϡ z ɸͤޤ using 4 ܤΥѥ᡼Ȥ ꤵ뿧ɸбޤ2 3 (plot splot ޥ) ξǡѥåȿ򾮿ͤޤϥ顼ܥåϰϤ Ť줿ͤΤ줫ǻꤹ뤳ȤǤޤѥåȿͤϡ using Ū˻ꤵ줿󤫤ɤ߹ळȤǽǤ ʲ: colors (17), set palette (82.54), linetype (82.32)

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 y1=10

ʲϡx*x ζȿȢ褷ޤ:

     plot x*x, (x>=-5 && x<=5 ? 40 : 1/0) with filledcurve y1=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

73 Print

print ޥɤ < > ̤ͤɽޤ pause 0 Ʊ Ǥ< > ϡ gnuplot οޤʸǤ

:

       print <> {, <>, ...}

ʲ: expressions (14)ϥե set print Ǥޤ

74 Pwd

pwd ޥɤϥȥǥ쥯ȥ̤̾ɽޤ

ȥǥ쥯ȥʸѿ¸ꡢʸǻȤ ϡѿ GPVAL_PWD ȤȤǤ뤳ȤդƤʲ:show variables all (82.80)

75 Quit

exit quit ξޥɤ END-OF-FILE ʸϡgnuplot λ ޤΥޥɤϡ֤ (clear ޥɤƱͤ) ꥢƤ齪λޤ

76 Raise

:
     raise {plot_window_nb}

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

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

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

ɥ X11 ̤˽Фʤ硢⤷襦ɥϡ ʤ X11 åưƤ (㤨 telnet ssh åʤ ˤä) ޤ̤˽ФȤɥޥ͡ˤä ɳƤǽޤ

77 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

78 Replot

replot ޥɤʤǼ¹ԤȡǸ˼¹Ԥ plot ޤ splot ޥɤƼ¹ԤޤϡץåȤۤʤ set ץǤߤꡢƱץåȤۤʤ֤˽ϤꤹȤ Ǥ礦

replot ޥɤФϺǸ˼¹Ԥ plot ޤ splot ޥɤΰ (ۤ ',' ȶ) ɲä졢줫Ƽ¹Ԥޤ replot ϡϰ (range) Ƥϡplot splot Ʊ Ȥ뤳ȤǤޤäơľΥޥɤ splot ǤϤʤ plot ξϡؿ⤦ĤμǥץåȤΤ replot ȤȤ Ǥޤ

:


     plot '-' ; ... ; replot

ȤȤϿ侩ޤ󡣤ϡ줬ʤ˺ƤƱǡ ƤϤ׵᤹뤳Ȥˤʤ뤫ǤƤξ硢˥ޥ refresh Ȥޤϡɤ߹ǡȤäƥդ褷ޤ

replot ޥɤ multiplot ⡼ɤǤƯޤ󡣤ϡ줬 ΤˤǤϤʤľΥץåȤΤߤƼ¹ԤΤǤ

Ǹ˼¹Ԥ plot (splot) ޥɤƤˡˤĤƤ ʲ⻲: command-line-editing (8)

ľ襳ޥɤΤɽ뤳Ȥ䡢 history ԡˡˤĤƤϡʲ⻲: show plot (82.52)

79 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 ⻲ Ƥ

80 Reset

ޥ reset set ޥɤǤ롢դ˴ؤƤΥ ץǥեȤͤꤷޤΥޥɤϡ㤨Хޥɥ κǸ˥դΥǥեȤ롢뤤ϥޥɥե ǤԤʤä˸ξ֤᤹ȤʤɤǤ ͡ʥץμǥեȤͤΤˤϡset ޥɤη̤ ȤƤ

ʲΤΤϡreset αƶޤ

    `set term` `set output` `set loadpath` `set fontpath` `set linetype`
    `set encoding` `set decimalsign` `set locale` `set psdir`

reset errors ϡ顼ѿ GPVAL_ERRNO GPVAL_ERRMSG Τߤ ꥢޤ

reset bind ϡǥեȤξ֤ޤ

81 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 (82.69)

ե̾ϰ˰ϤƤʤФʤޤ

̤ʥե̾ "-" ˤ save ޥɤɸϤ˽Ϥ뤳 Ǥޤpopen ؿ򥵥ݡȤ褦ʥƥ (Unix ʤ) Ǥϡ save νϤѥ׷ͳ¾γץϤȤǤޤ 硢ե̾Ȥƥޥ̾Ƭ '| ' ĤΤȤޤ ϡgnuplot ȥѥפ̤̿ץˡgnuplot ˴ؤӤ󥿡ե󶡤ޤܺ٤ϡʲ: batch/interactive (6)

:

     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'

82 Set-show

set ޥɤϼ¤¿ΥץꤹΤ˻Ȥޤ plot, splot, replot ޥɤͿޤDzɽޤ

show ޥɤϤͤɽޤshow all Ǥ ɽޤ

set ޥɤѹ줿ץϡб unset ޥ ɤ¹Ԥ뤳ȤǥǥեȤξ֤᤹ȤǤޤʲ⻲:reset (80)ƤΥѥ᡼ǥեȤͤᤷޤ

⤷ѿΥǡޤʤСshow ϡset timefmt ˤä ꤵƤ񼰤˽äɽޤѿǽꤵ Ƥν񼰤̤ʤäȤƤǤ set unset ޥɤˤϷ֤ѤǤޤʲ:iteration (68)

82.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 Ѥ˺ɸΥǥ

82.2 Arrow

set arrow ޥɤȤȤˤꡢվǤդΰ֤ɽ 뤳ȤǤޤ

:

     set arrow {<tag>} {from <position>} {to|rto <position>}
               { {arrowstyle | as <arrow_style>}
                 | { {nohead | head | backhead | heads}
                     {size <length>,<angle>{,<backangle>}}
                     {filled | empty | nofilled}
                     {front | back}
                     { {linestyle | ls <line_style>}
                       | {linetype | lt <line_type>}
                         {linewidth | lw <line_width} } } }


     unset arrow {<tag>}
     show arrow {<tag>}

< tag> ϳ̤Ǥꤷʤϡλ ̤ѤκǤ⾮ưŪ˳ƤޤȤȤǡ ѹꡢǤޤ¸ߤ° ϡ set arrow ޥɤѹսꤷ

< position> x,y 뤤 x,y,z ǻꤷޤƤ˺ɸϤ 򤹤뤿 first, second, graph, screen, character ȤǤޤɸꤷʤХǥեȤǤ 0 ȸʤޤ üϡ5 Ĥκɸϡʤ first second μ뤤 graph, screen, character Τ 1 Ĥ򤷤ƻǤޤ ܺ٤ϡʲ: coordinates (10)"from" ξκɸϻҤϡ"to" ξ˱ƶڤܤȤϤޤ󡣥դȤϤ߽Ф񤯤 ȤǤޤüˤäƤϥ顼뤳Ȥޤ "to" "rto" ǻꤵƤ硢Ūʰ֤ ޤξ硢 (п) graph, screen ɸ ФƤϡȽεΥͿ줿Ūͤбޤ ФƤϡͿ줿Ūͤϡ齪ؤܿб äơпξ硢ŪͤȤ 0 ͤͿ뤳Ȥϵ ޤ

nohead ꤹ뤳ȤǡΤʤ𡢤ʤʬ񤯤ȤǤ ޤξʬ̤ˡͿޤǥեȤǤ 1 Ĥ 1 Ĥ򤽤νü˻äƤޤbackhead ϻ heads ʬξüޤƤνϷξü 򥵥ݡȤƤ櫓ǤϤޤ

size < length> ,< angle> ޤ size < length> ,< angle> ,< backangle> Ǥޤ< length> γƻޤĹǡ< angle> λޤ𼴤ʤ (ñ̤) Ǥ < length> ñ̤ x ƱǤ < length> first, second, graph, screen, character Ĥ뤳Ȥѹ ޤܺ٤ϡʲ: coordinates (10)< backangle> ϡfilled ޤ empty Ȥ˻Ȥ줿Τ߸Ϥξ硢 < backangle> θʬ𼴤Ȥڤ (< angle> Ʊ; ñ̤) ˤʤޤϷ fig ϡ¤줿ڤѴؿä ơ 3 Ĥΰۤʤ򥵥ݡȤƤơ 2 ĤͤǷ ޤ: 70 ̤ξ硢ϤؤڤѤ110 ٤Ķ 硢ʬäѤδ֤γѤǤϡθľˤʤ ޤ

filled ꤹȡɤĤ֤줿ޤ (heads Ȥ Ƥ)ɤĤ֤ϡ¿ѷɤĤ֤Ԥ褦ʽϷ ݡȤƤơΥꥹȤˤĤƤϡʲ: pm3d (82.53)¾νϷ ǤĤޤɤĤ֤ޤ󡣤Ʊ (Ĥ ɤʤ) ϡempty ꤷƤޤޤmetafont, metapost, latex, tgif Τ褦ˡ򤽤鼫ȤȼΥ롼 褦ʽϷǤϡɤĤ֤Ϥ󥵥 Ȥޤ

ϥ桼饤󥹥ΥꥹȤ֤ȤǤޤ (ʲ: set style line (82.66.7))ѰդƤ < line_type> (ǥե ȤΥ饤󥹥ΥꥹȤֹ) < linewidth> (ǥեȤ ܿ) ȤäƤ뤳ȤǤޤ

桼ѤΥ饤󥹥뤬򤵤줿硢° ( ) ϡñ¾ set arrow ޥɤŬֹ lt, lw ʤɤ ꤷƤ⡢ѹϤǤʤȤդƲ

front ꤹȡϥդΥǡξޤback ꤵ줿 (ǥե) ϥդΥǡβޤfront ȤС̩ǡ𤬸ʤʤ뤳ȤɤȤǤޤ

:

(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

Υǥ

82.3 Autoscale

ư̼ܵǽ (autoscale) x, y, z γƼФΩˡޤϰ礷 ƻǤޤǥեȤǤƤμФƼư̼Ԥޤ ޤΰ (plot) ȤΤߤ򸵤 autoscale ϡ оݤǤʤ plot ˥ե饰 noautoscale Ĥ뤳ȤǤޤ ʲ: datafile (72.3)

:

     set autoscale {<axes>{|min|max|fixmin|fixmax|fix} | fix | keepfix}
     unset autoscale {<axes>}
     show autoscale

ǡ< axes> () x, y, z, cb, x2, y2, xy Τ Ǥmin ޤ max 򼴤ɲûꤹ (xy ǤϻȤޤ) gnuplot ˤμκǾ͡ޤϺͤΤߤư̼ܤ뤳 ȤˤʤޤⲿꤵƤʤƤμоݤȤʤޤ

fixmin fixmax fix ɲûꤹȡֳ֤μư ܻΡ֤ޤǤϰϤμư gnuplot ˹Ԥ碌ʤ褦 ˤޤset autoscale fix ϤƤμФꤷޤ 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 (82.95)

޲ѿ⡼ (parametric) Ǥ⼫ư̼ܵǽͭǤ (ʲ:set parametric (82.51))ξ硢¿ν°ѿΤǡ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 (82.19)) Ȥĥޤ

꤬μɽ졢⤳μФ褬Ԥʤ ˤϡx2range y2range xrange yrange ͤѤޤ ϡxrange yrange Ĥ˼ư̼ܤפ˹Ԥ ޤΤǡˤäͽʤ̤⤿餹ǽޤ 򤱤뤿 fixmin, fixmax ץȤȤǤޤ

:

ʲ 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

82.3.1 ޲ѿ⡼ (parametric)

޲ѿɽ⡼ (set parametric) ˤƤϡxrange yrange Ʊͤ˽̼ܤѤ뤳ȤǤޤĤޤꡢ޲ѿ⡼ɤˤƤϡ x ⼫ưŪ˽̼ܤĴ졢ȤƤ޲ѿɽδؿ ޤ褦ˤʤޤy ޲ѿ⡼ɤǤʤƱͤ ưŪ˽̼ܤѤޤx ˤĤƼư̼ܵǽꤵƤʤ ϡߤ x ϰϤȤޤ

ǡե޲ѿ⡼ɤǤ⤽Ǥʤ֤ǤƱͤ褵 ޤǡեȴؿߤƤˤϡ㤤 ޤ: ޲ѿ⡼ɤǤʤСx μư̼ܵǽϡؿϰϤ ǡϰϤ˹碌ޤ޲ѿ⡼ɤǤϥǡϰ ϴؿϰϤ˱ƶޤ

ˤϡҼˤʤʤ褦 set autoscale t Ȥޥ ѰդƤޤθ̤˾ΤǤư̼ ǽꤵƤȡgnuplot t ϰϤ̵ʤäƤޤ ȽǤϰϤ򾯤Ĵޤư̼ܵǽꤵƤʤ Τ褦ʤȤˤϥ顼ȤʤޤΤ褦ưϼ¤Ϥޤ̣ ʤä set autoscale t Ȥޥɤ¸߰յ˵䤬 ޤ

splot ǤϾ嵭ȯۤθ˳ĥƤޤư̼ܵǽꤵ Ƥ硢x, y, z γϰϤϷ׻̤ޤ褦ꤵ̼ Ĵޤ

82.3.2 ˺ɸ⡼ (polar)

˺ɸ⡼ (set polar) Ǥϡxrange yrange ϼư̼ܥ⡼ɤǤ ʤʤޤư¼ϰѤ set rrange Ѥ硢xrange yrange Ϥ˹礦褦˼ưŪĴޤˤ ĴСθŪ xrange yrange ޥɤȤȤ Ǥޤʲ: set rrange (82.62)trange ϼưϰ꤬ʤޤ ⤷trange ݸ (ʬ) ˼ޤʤСư̼ܵǽˤꤽ ξݸ¤Τߤ褬Ԥ뤳ȤդƤ

1 ġ뤤 2 ĤϰϤŪꤷƤ¾ΤΤꤷʤ ͽʤ̤Τޤ ʲ⻲

˺ɸΥǥ⡣

82.4 Bars

ޥ set bars ϸ (errorbar) ξü boxplot ĤȢҤξüΥޡ椷ޤ

:

     set bars {small | large | fullwidth | <size>} {front | back}
     unset bars
     show bars

small 0.0, large 1.0 ƱǤꤷʤХǥե Ȥͤ 1.0 Ǥ

fullwidth ϡerrorbar ȼ boxplots histograms ˤ ߴϢޤ errorbar ξüбȢƱ ޤȢΤѹ뤳ȤϤޤ

front, back ϡɤ٤ĹΤĤ errorbar Τߤ Ϣޤ (boxes, candlesticks, histograms)

82.5 Bind

ߤΥۥåȥγ (binding) ɽޤʲ: bind (18.1)

82.6 Bmargin

ޥ set bmargin ϡ;Υꤷޤܺ٤ ʲ: set margin (82.39)

82.7 Border

set border unset border plot splot ǤΥդȤ ɽ椷ޤȤɬ⼴ȤϰפʤȤդƤ plot Ǥפޤsplot ǤפƤޤ

:

     set border {<integer>} {front | back} {linewidth | lw <line_width>}
                {{linestyle | ls <line_style>} | {linetype | lt <line_type>}}
     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 ȤƤ

< line_style> , < line_type> , < line_width> ꤷơˤ ȿǤ뤳ȤǤޤ (ߤν֤ݡȤΤ˸ ޤ)

plot Ǥϡ 2 ͭˤ뤳ȤǡȺʳζȤǤޤܺ٤ϡʲ: xtics (82.96)

"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

82.8 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 (82.36)) Ǥ硢boxwidth ϼºݤˤ x=1 ǤΤ "Ū" ȤʤꡢʪŪĹΤ̤ ݻޤ (ʤ x ɸäˤȤʤäƶʤä ޤ)п x ϰϤ x=1 ΥƤϡŬڤ Фˤϲ٤Ƥߤɬפ뤫Τޤ

ǥեȤͤϡboxes boxerrorbars Ѥɲä ǡŪͤФˤä֤ޤ4 Υǡ ξ硢 4 ܤͤȤƻȤޤ -2.0 ξˤϼư׻ޤܺ٤ϡʲ: style boxes (27),style boxerrorbars (26)

ưŪ˥åȤˤ

     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

82.9 Clabel

gnuplot ϡclabel ꤵƤˤϡơΥ٥ ƻȤѲޤΥץͭǤ (ǥե )ˤäƳơ򡢤줬ɽ z Υ٥ȤȤɽ

:

     set clabel {'<format>'}
     unset clabel
     show clabel

ʸΥǥեȤ %8.3g ǡʬ 3 ɽޤ⤷ key ΥǥեȤͤѹƤС֤Խʬʤ ˤʤ뤫⤷ޤ

ǽޤ clabel ̵ǤͣĤ ϡ(̤ +1) ˤʤޤ϶̤ƱΤ ʤޤ

ʲ: set contour (82.14)

82.10 Clip

gnuplot ϥդüդΥǡ򥯥åԥ󥰤뤳ȤǤ ޤ

:

       set clip <clip-type>
       unset clip <clip-type>
       show clip

gnuplot Ф륯å׷ (clip-type) Ȥơpoints, one, two 3 򥵥ݡȤƤޤФơ å׷ǤդȤ߹礻ꤹ뤳ȤǤޤpm3d οϿޤ 顼̤ɤĤ֤줿ͳѷϤΥޥɤǤǤޤ󤬡 set pm3d clip1in set pm3d clip4in ˤäƲǽǤ뤳Ȥ Ƥ

å׷ points ꤹȡΰˤϤ뤱ɶ ˶ᤤ褦򥯥åפ (ºݤˤ褷ʤǤ) 褦 gnuplot ˻ؼޤȤ礭ʥޡѤȤˡ ΥޡϤ߽Фʤ褦ˤ̤ޤpoints 򥯥åפʤ硢դ뤫⤷ޤ ξ硢x y ϰ (xrange, yrange) ĴƤߤƲ

å׷ one ꤹȡüΤߤΰˤ褦ʬ 褹褦 gnuplot ˻ؼޤκݡΰˤʬ Τߤºݤ褵ϰϤǤꤷʤä硢Τ褦ʬ оݤȤʤ餺ɤʬ褵ޤ

ξü϶ϰϤ̵ΰ̲᤹Ȥʬ⤢ޤ å׷ two ꤹ뤳ȤˤäơΤ褦ʬΰ ʬ褹뤳ȤǤޤ

ɤΤ褦ʾǤ⡢ϰϤγ뤳ȤϤޤ

ǥեȤǤϡnoclip points, clip one, noclip two Ȥʤä ޤ

ƤΥå׷򸫤ˤϰʲΤ褦ˤޤ:

       show clip

ΥСȤθߴΤʲν񼰤ѲǽǤ:

      set clip
      unset clip

set clip set clip points ƱǤunset clip 3 å׷Ƥ̵ˤޤ

82.11 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 (82.14)Υ ٥ν񼰤˴ؤƤϡʲ: set clabel (82.9)

ʲ⻲ȤƤ

Υǥ (contours.dem)

桼٥Υǥ (discrete.dem).

82.12 顼ܥå (colorbox)

ΰɽʤ pm3d palette min_z max_z ޤǤγ 餫ʿθۤϡunset colorbox ȤƤʤ¤ꥫ顼ܥå (colorbox) ޤ


     set colorbox
     set colorbox {
                { vertical | horizontal }
                { 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 (82.53), set palette (82.54), x11 pm3d (92.72.7), set style line (82.66.7)

82.13 ̾ (colornames)

gnuplot ϸꤵ줿Ŀο̾äƤޤϡpm3d ѥ åȤǤĤʤ뿧ϰϤΤˡ뤤ϸġ饤󥹥 οϷ˰¸ʤꤹΤ˻Ȥޤgnuplot λĿ̾ΰ򸫤ˤϡޥ show colornames ѤƤ :


     set style line 1 linecolor rgb "sea-green"

82.14 (contour)

ޥ set contour ϶̤ȤؼޤΥ splot ǤΤͭǤϡʻҾǡ (grid data) ɬ פȤޤܺ٤ϡʲ: grid_data (84.2)ʻҾǡ ϡʻҤ뤿 set dgrid3d Ѥޤ

:

     set contour {base | surface | both}
     unset contour
     show contour

3 ĤΥץɤ˰ꤷޤbase x/y ιߤΤ̤졢surface ǤϤ ̼Τξ졢both Ǥ̤ȶ̾ξޤ 󤬻ꤵƤʤ base ǤȲꤵޤ

˱ƶͿѥ᡼ˤĤƤϡʲ:set cntrparam (82.11)Υ٥˴ؤƤϡʲ:set clabel (82.9)

ΤߤΥդ뤿ˡ̼Ȥ򤷤ʤ褦ˤ뤳Ȥ Ǥޤ (ʲ: set surface (82.67))set size Ȥäơդ դ褹뤳ȤǽǤäϷ⡢Υǡ ե˽񤭽ФƤ 2 ǡȤɤ߹褹 Ф褤椬ǽˤʤޤ:


     unset surface
     set contour
     set cntrparam ...
     set table 'filename'
     splot ...
     unset table
     # contour info now in filename
     set term <whatever>
     plot 'filename'

ˤϡǡϳʻҾǡ ("grid data") Ǥɬפ ޤΤ褦ʥեǤϡĤ y-ΩƤ ¤٤Ƥޤ٤ y-Ω¤٤졢١ ³Ƥޤy-ΩƱΤʬΥˤϰԤζ ( ԰ʳʸޤޤʤ) 򶴤ߤޤʲ: splot datafile (84.1)

ʲ⻲ȤƤ

Υǥ (contours.dem)

桼٥Υǥ (discrete.dem).

82.15 Data style

ΥޥɤηϸߤϿ侩Ƥޤ󡣰ʲ:set style data (82.66.3)

82.16 Datafile

ޥ set datafile ϡplot, splot, fit ޥɤϥǡ ɤˡ (field) βλ椹륪ץ ޤߤϡ6 ĤΤΤ褦ʥץ󤬼Ƥޤ

82.16.1 Set datafile fortran

ޥ set datafile fortran ϡϥե Fortran D Q ̤ͤʥåǽˤޤ̤ʥåϽ ٤ޤΤǡºݤˤΥǡե뤬 Fortran D Q äƤˤΤߤ򤹤٤ǤΥץϡθ unset datafile fortran Ԥ̵ˤǤޤ

82.16.2 Set datafile nofpe_trap

ޥ set datafile nofpe_trap ϡϥե뤫ǡɤ߹ ߤκݤˡ٤Ƥοɾư㳰ϥɥκƽ ʤ褦 gnuplot ̿ᤷޤˤꡢȤƤ礭ʥե뤫 ΥǡϤʤ®ʤޤư㳰˥ץ ब۾ェλƤޤϤޤ

82.16.3 Set datafile missing

ޥ set datafile missing gnuplot ˡɤΤ褦ʸ󤬥 եη礱ǡ (missing data) ̣Τؼޤ ºݤˤʸ󤬤ɤΤ褦˼갷뤫ϡplot splot ޥ ɤ using Ҥˤ¸ޤ

:

     set datafile missing {"<string>"}
     show datafile missing
     unset datafile

:

     # IEEE NaN ("Not a Number") ɤޤ२ȥ̵뤹
     set datafile missing "NaN"

:

     set style data linespoints
     plot '-'
        1 10
        2 20
        3 ?
        4 40
        5 50
        e
     set datafile missing "?"
     plot '-'
        1 10
        2 20
        3 ?
        4 40
        5 50
        e
     plot '-' using 1:2
        1 10
        2 20
        3 ?
        4 40
        5 50
        e
     plot '-' using 1:($2)
        1 10
        2 20
        3 ?
        4 40
        5 50
        e

ǽ plot ϡ"3 ?" ιԤǤϺǽΥǡΤߤǧǤ 1 Ԥ 1 Ĥǡʤäε§ŬѤ졢ֹ椬 "x" ǥǡ "y" ȸʤ졢 (2,3) (ξϸä) 褵ޤ

2 ܤ 3 ܤ plot ޥɤϡιԤ̵뤷ޤ ϡ(2,20) (4,40) Фޤ

4 ܤ plot ⿿ιԤ̵뤷ޤξ (2,20) (4,40) ϷФޤ

ǥեȤ missing ѤʸϲƤޤ󤬡¿ξ ͤԤ٤ˤǧǤʤʸĤä餽Ϸ礱 ǡ (missing data) Ǥȸʤޤ

82.16.4 Set datafile separator

ޥ set datafile separator "< char> " ϡgnuplot ˡθ ϥեΥǡʬΥʸ (whitespace) Ǥʤ < char> ǤȻؼޤΥޥɤκǤŪʻϡɽ׻եȤ ǡ١եȤˤäƺ줿 csv (޶ڤ) եɤ Ǥ礦ǥեȤΥǡʬΥʸ϶ (whitespace) Ǥ

:

     set datafile separator {"<char>" | whitespace}

:

     # ֶڤΥե
     set datafile separator "\t"


     # ޶ڤΥե
     set datafile separator ","

82.16.5 Set datafile commentschars

ޥ set datafile commentschars gnuplot ˡɤʸǡ եΥȤ̣Τؼޤgnuplot ϡꤵ ʸΰĤǡԤκǽʸȤƸ줿硢ʸ ʲ̵뤷ޤ

:

     set datafile commentschars {"<string>"}
     show datafile commentschars
     unset commentschars

ǥեȤ string ϡVMS Ǥ "#!" ǡʳǤ "#" Ǥ

äơǡեΰʲιԤϴ̵뤵ޤ

   # 1 2 3 4

ʲι
   1 # 3 4

ϡ⤷
   set datafile missing '#'

ꤵƤʤСͽ̷̤ޤ

:

     set datafile commentschars "#!%"

82.16.6 Set datafile binary

ޥ set datafile binary ϡǡեɤ߹߻˥Х եǥեȤꤹΤ˻Ȥޤ񼰤ϡ줬 plot ޤ splot ޥɤǻȤΤΤƱǤ< binary list> 񤱤륭ɤ˴ؤƤϡܤϡʲ: binary matrix (84.1.1),binary general (72.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   # ߤΰɽ

82.17 Decimalsign

ޥ 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() Ȥäƽ񼰲 ͤŪ˻ꤵ줿 '.' ˤʤޤ ()

82.18 Dgrid3d

ޥ set dgrid3d ϡʻҾǡʻҾǡؤμǽ ͭˤΤΥѥ᡼ꤷޤʻҾǡι¤ˤĤ ξܺ٤ϡʲ: splot grid_data (84.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 ϡǡʻء֥ǡ켫Ȥñ̤ǡפδͿԤϰϤ ǽˤޤ

ץ󥭡 kdensity2d ϡŤդؿ̾θ (ץ ) ѴΥѥ᡼֤Τǡϥ르ꥺ ơʻѤ˷׻ͤŤߤ ( 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 Υǥ

82.19 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 ȥ顼åɽޤ

:

     set dummy u,v
     set dummy ,s

ϡ2 ܤѿ s Ȥޤ

82.20 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 ӥå)
  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 (82.35), set decimalsign (82.17)

̤ˡ󥳡ɤϽϷ˹Ԥʤɬפޤ Υ󥳡ɤϤɤʽϷǤ⥵ݡȤƤȤϸ¤餺ƽ Ϸ׵ᤵ줿ɤɸʸǤʤФޤ

82.21 Fit

ޥ set fit ϡfit ޥѤΥץ椷ޤ

:

     set fit {logfile {"<filename>"}}
             {{no}quiet}
             {{no}errorvariables}
             {{no}prescale}
     unset fit
     show fit

< filename> ϡñ䤫ŰǰϤɬפޤ

ե̾ꤷʤä硢ޤ unset fit Ѥϡ եϥǥեȤͤǤ "fit.log"ޤϴĶѿ FIT_LOG ͤ˥ꥻåȤޤ

Ϳ줿ե̾ / \ ǽäƤ硢ϥǥ쥯ȥ ̾Ȳᤵ졢եϤΥǥ쥯ȥ "fit.log" Ȥʤޤ

ץ 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 'a=%6.2f', a, '+/- %6.2f', a_err
      plot 'datafile' using 1:2, f(x)

ץ prescale 򥪥ˤȡMarquardt-Levenberg 롼 ˡƥѥ᡼ͤ򤽤νͤ˽äƻ˥Ѵ ϡƥѥ᡼礭ˤʤ礭ʰ㤤ˡͭ Ǥͤ 0 ƤϤѥ᡼ˤϡ褷Ƥ ѴϹԤޤ

ǥեȤǤϡե˽񤭽Фϲ̤ˤɽޤ set fit quiet ȤФβɽϾäޤ

82.22 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 椵ޤ

82.23 Format

ɸιߤθФϡޥ set format ޤ set tics format ޤϸ̤˥ޥ set {}tics format ǽ񼰤Ǥޤ

:

     set format {<axes>} {"<format-string>"}
     set format {<axes>} {'<format-string>'}
     show format

ǡ< axes> () x, y, xy, x2, y2, z, cbޤϲ ꤷʤ (ξ礽ν񼰤Ϥ٤ƤμŬѤޤ) Τ줫 Ǥʲ 2 ĤΥޥɤƱǤ:

     set format y "%.2f"
     set ytics format "%.2f"

ʸĹ 100 ʸޤǡ¤ƤޤǥեȤν ʸ "% g" Ǥ"%.2f" "%3.0em" ʤɤν񼰤ޤ뤳Ȥ ¿Ǥ礦LaTeX ѤˤϤ褯 "$%g$" ޤޤʸ򲿤Ϳʤϡformat ϥǥեȤޤʸ "" ꤷ 硢߼ȤɽޤФϤĤޤ󡣹߼Ȥäˤϡ unset xtics ޤ set tics scale 0 ѤƤ

ʸǤϡʸ ( \ n) ĥʸ (enhanced text) ѤΥ åפȤޤ ξϡñ (') Ǥʤ (") Ȥä ʲ⻲: syntax (24) "%" ƬˤĤʤʸϤΤޤɽޤäơʸ˥ڡʸʤɤ뤳ȤǤޤ㤨 "%g m" ȤС ͤθ " m" ɽޤ"%" Ȥɽˤ "%g %%" 褦 2 ĽŤͤޤ

ߤ˴ؤܤˤĤƤϡʲ⻲: set xtics (82.96)ޤ ˡǽϤ˥ǥեȰʳξʬΥʸȤˤĤƤϡʲ: set decimalsign (82.17) ʲ⻲ȡ

쥯ȥ (Ż) ǥ (electron.dem).

82.23.1 Gprintf

ʸؿ gprintf("format",x) ϡgnuplot ޥɤ set format, set timestamp ʤɤƱͤΡgnuplot ȼν񼰻ҤȤޤ ν񼰻ҤϡɸŪ C δؿǤ sprintf() ΤΤƱ ǤϤޤgprintf() ϡϰĤĤޤ 󡣤Τˡgnuplot ˤ sprintf("format",x1,x2,...) ؿѰդ Ƥޤgnuplot ν񼰥ץΰˤĤƤϡʲ:format specifiers (82.23.2)

82.23.2 񼰻 (format specifiers)

Ѳǽʽ (/ե⡼ɤǤʤ) ϰʲ̤Ǥ:

٥οͽ񼰻
%f 꾮ɽ
%e, %E ؿɽ; ؿ "e", "E" Ĥ
%g, %G %e%E) %f ά
%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 (82.75)

82.23.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 ǯ̻ (1-366)
%m (01-12)
%M ʬ (0-60)
%p "am" ޤ "pm"
%r "%I:%M:%S %p" δά (ϤΤ)
%R "%H:%M" δά (ϤΤ)
%S (ϤǤ 0-60 ϤǤϼ¿)
%s 2000 ǯǽ餫ÿ
%T "%H:%M:%S" δά (ϤΤ)
%U ǯ̻ (ȿ)
%w ֹ (0-6, = 0)
%W ǯ̻ (Ϸȿ)
%y (0-991969-2068 ǯβ 2 )
%Y (4 )

ɽ񼰤Ǥϡλ (% θҤ) "0" ("" Ǥʤ "") Ĥ뤳ȤǡƬ˶򤬤Ǥ˶ 0 뤳ȤǤޤǾνǻꤹ뤳 ȤǤޤ (ϤɽΤ˻ꤷ­ʤ̵ 뤵ޤ) %S ϼ¿ĤޤΤǡä񤱤ޤ ɽʸĹ 24 ʸޤǡȤ¤ꡢĹʬڤ ΤƤޤ

:

Υǡ "76/12/25 23:11:11" ξ

     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"

Υǡ "98/07/06 05:04:03.123456" ξ

     set format x "%1y/%2m/%3d %01H:%02M:%06.3S"  # "98/ 7/  6 5:04:03.123"

82.24 Function style

ΥޥɤηϸߤϿ侩Ƥޤ󡣰ʲ:set style function (82.66.5)

82.25 Functions

show functions ޥɤϥ桼ؿȤƤɽ ޤ

:

       show functions

gnuplot ˤؿȤλȤˤĤƤϡʲ:expressions (14) ʲ⻲

桼ؿǤΥץ饤 (spline.dem)

ؿʣѿ˻ (airfoil.dem)

82.26 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 <major_linestyle>}
                | {linetype | lt <major_linetype>}
                  {linewidth | lw <major_linewidth>}
                { , {linestyle | ls <minor_linestyle>}
                    | {linetype | lt <minor_linetype>}
                      {linewidth | lw <minor_linewidth>} } }
     unset grid
     show grid

ʻǤդμǤդμ/Фͭ/̵ˤǤμ ФǤߤν֤ݡȤ ϰϤǡ餫饤󥹥Ѥ뤳ȤǤޤ

ˡ2 Ǥ϶˺ɸʻҤȤȤǤޤǽʶ Фơ򤵤줿̤Ʊߤ濴; (ζ֤ set angles ˤä١ޤϥ饸ǻ ޤ)˺ɸʻҤϸߤ϶˺ɸ⡼ɤǤϼưŪˤʤ դƤ

set grid ˡɬפͭˤʤäƤʤФʤޤ gnuplot ϡ¸ߤʤФʻҤ̿ñ̵뤷ޤ Ǥ꤬ͭˤʤФФʻҤޤ

ʻФ򲿤ꤷʤСʻƱ郎Ȥ ǥեȤζ˺ɸγ٤ 30 ٤Ǥ

front ꤹȡʻϥդΥǡξޤback ꤵ줿ϳʻϥդΥǡβޤfront С̩ǡdzʻʤʤ뤳ȤɤȤǤޤ եȤǤ layerdefault ǡ 2D Ǥ back ƱǤ 3D ΥǥեȤϡʻҤȥդȤ 2 Ĥñ̤ʬΥʻ ϸˡȤǡޤϴؿ˽񤭤ޤhidden3d ⡼ɤǤϡ줬켫Ȥ¤Ӵ򤷤ƤޤΤǡʻν֤Υ ץ̵뤵졢ʻⱣˤޤΥץ ϡºݤˤϳʻǤʤset border ˤ붭Ȥ ι (ʲ: set xtics (82.96)) ˤƶڤܤޤ

z γʻ̤ޤμʬŪȢ ƤˤϤǤ礦ʲ: set border (82.7)

82.27 Hidden3d

set hidden3d ޥɤ϶ (ʲ: splot (84)) 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 (84.1)) Ǥɬפꡢޤ with lines with linespoints ƤʤФޤ

hidden3d ͭʤȤϡʻǤʤʬξ (ʲ: set contour (82.14)) Ᵽޤʣ̤褷Ƥϡ ƶ̤ϼʬȤ¾ζ̤DZʬޤ̾ؤ ɽ (set contour surface) ϵǽޤ

ФϾɽ졢ƶޤ󡣥դ (key) ̤˱뤳ȤϤޤgnuplot С 4.6 Ǥϡվ ̤Ĥʤ֤Ǥ⡢hidden3d points, labels, vectors, impulses 3 襹˱ƶͿޤγơ 򤳤νŪ˽Ȥϡwith ̤Υץ nohidden3d ɲäƤ

hidden3d ϡpm3d ⡼ɤ褵줿ɤ٤줿̤ˤϱƶͿ pm3d ζ̤ФƱͤθ̤ʤС set pm3d depthorder ȤäƤʣ pm3d ̤̾ hidden3d Ȥ߹碌ˤϡhidden3d ƤǤŪ Ĥ¾Ǥθ褹뤿Υץ set hidden3d front Ѥƶ̤ 2 褷Ƥǽ with lines lt -2 ǡ2 ܤ with pm3d 褷ޤǽǤϡ η׻ԤäƤ֤ϱζ̤ޤޤƤΤǤºݤˤϤ ̼Τ褵ޤ

ؿͤϳʻҸΩθɾޤ뤳Ȥνʬ ϸġδؿ͡뤤ϥǡδ֤ϤΥ르ꥺˤä ֤ޤϡhidden3dnohidden3d 褹 Ǵؿθۤʤ뤳Ȥ̣ޤʤʤСԤξ ͤϳɸɾ뤫Ǥΰ㤤˴ؤˤĤƤϡ ʲ: set samples (82.64), set isosamples (82.29)

̤αʬõΤ˻Ȥ륢르ꥺϡΥޥɤ 椵뤤ĤɲåץäƤޤ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).

82.28 Historysize

: ޥ set historysize ϡgnuplot GNU readline 饤֥ Ȥ褦 configure 줿ΤͭǤ

:

     set historysize <int>
     unset historysize

historysize ͤϡgnuplot νλ history ιԤ⡹ιԿޤ ڤΤƤ뤿˻ȤޤǥեȤ 500 Ǥ unset historysize history ڼΤƤ̵ˤޤΤǡhistory ˽񤭽ФԿ¤򤷤ޤ

82.29 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 (82.64),set hidden3d (82.27)롼ϡؿɸܲϳƸΩθ ǹԤȲꤷƤΤǡؿζ̤β٤ѹȤ ϡisosamples Ʊ褦 samples ѹΤ˾ޤǤ礦

82.30 Key

ޥ set key 褵줿ɽɽ뤳Ȥǽ ޤ

(key) ơʤ褵ġΥǡؿˤĤ̾ Ӥ饰դζȥվɽ椫ʤ륵ץϡ plotsplot) ޥɤ title, with ץˤ ꤵޤܤˤĤƤϡʲ: plot title (72.10),plot with (72.11)

:

     set key {on|off} {default}
             {{inside | outside} | {lmargin | rmargin | tmargin | bmargin}
               | {at <position>}}
             {left | right | center} {top | bottom | center}
             {vertical | horizontal} {Left | Right}
             {{no}opaque}
             {{no}reverse} {{no}invert}
             {samplen <sample_length>} {spacing <vertical_spacing>}
             {width <width_increment>}
             {height <height_increment>}
             {{no}autotitles {columnheader}}
             {title "<text>"} {{no}enhanced}
             {font "<face>,<size>"} {textcolor <colorspec>}
             {{no}box { {linestyle | ls <line_style>}
                        | {linetype | lt <line_type>}
                          {linewidth | lw <line_width>}}}
             {maxcols {<max no. of columns> | auto}}
             {maxrows {<max no. of rows> | auto}}
     unset key
     show key

() ϡγФ륿ȥȥץ (; Ȣ) ޤεǽϡset key off ޤ unset key ̵ˤǤޤġΥΥȥϡб plot ޥ˥  notitle ȤȤ̵ˤǤޤ

γǤ vertical () ޤ horizontal () ˽äƽŤ ޤvertical ξ硢key ϲǽʤ 2,3 ĤνĤȤޤ ʤǤϿľڡʤʤޤǤ 1 Ĥ󤵤ޤ 鿷󤬳Ϥޤľڡϡmaxrows Ȥä ¤Ǥޤhorizontal ξϡkey ϲιԤǤʤ ȤޤʿΥڡ maxcols ˤ¤Ǥޤ

ǥեȤǤϡkey ϥΰ¦αγѤ֤ޤ left, right, top, bottom, center, inside, outside, lmargin, rmargin, tmargin, bmargin (, above, over, below, under) ϡΰ¾ξؤμưŪ֤Τ˻Ѥޤ key ɤ֤ܤؼ뤿 at < position> ޤξ硢 left, right, top, bottom, center Ʊͤδ碌ŪǻȤޤ ܤϡʲ: key placement (82.30.1)

դΥȥι· Left, Right (ǥե) ǻؼ ޤ٥ʸȶΥץϺؤ뤳ȤǤޤ (reverse) ΤȤǰϤळȤǤޤ (box {...})Ȥ ϡ (linetype), (linewidth)뤤ѤΥ饤 (linestyle) ꤹ뤳ȤǤޤ

ǥեȤǤϡkey ϰĤΥդƱ˺ޤʤkey ȥȥϡб륰դƱޤϡ դˤ key ξǤ򤫤֤֤뤳Ȥ̣ޤ set key opaque ϡkey 򤹤٤ƤΥդ褬ä ξ硢key ΰطʿɤĤ֤ key εȥȥ ޤäơkey ȤϤĤǤʤƤޤ 뤳Ȥˤʤޤset key noopaque ǥǥեȤǤޤ

ǥեȤǤϡǽΥ٥뤬ΰ־˸졢³ ٥뤬β¤ǹԤޤץ invert ϡǽΥ٥ ΰֲ֤³٥򤽤ξ¤٤ƹԤޤΥץ ϡΥ٥νĤ¤Ӥν֤Ѥ߾夲Υҥȥ (histograms) Ȣν֤˹碌ȤǤ礦

< height_increment> ϡȢι⤵˲ä긺餷ꤹ⤵ ( ʸʬ) ɽͤǤϼˡβȢǡ ¤Ӥβζ礭ΤΤǤ

plot splot 褵ƤζϡǥեȤΥץ autotitles ˽äɽ (title) Ĥޤɽμưϡ noautotaitle Ǥޤξ硢(s)plot ... title ... Ū˻ꤵ줿ɽΤߤ뤳Ȥˤʤޤ

ޥ set key autotitle columnheader ϡϥǡƬԤγ ΥȥƥʸȲᤷб襰դΥȥȤ ƻѤޤ褵̤ʣǡδؿǤϡ gnuplot Ϥɤ򥿥ȥ˻ȤФΤ狼ޤΤǡ 褦ʾ硢plot ޥɾǡ㤨аʲΤ褦Ū˥ȥꤹɬפޤ


     plot "datafile" using (($2+$3)/$4) title columnhead(3) with lines

ΤϤɽξˤĤ뤳ȤǤޤ (title "< text> ")ñ (') Ű (") ΰ㤤ˤĤƤϡʲ⻲: syntax (24) ɽι·ϡդɽι·ƱΤȤޤ

set key ΥǥեȤϡon, right, top, vertical, Right, noreverse, noinvert, samplen 4, spacing 1.25, title "", nobox ǤȤϥǥեȤǤϥγȤƱ Ȥޤset key default ȤȥǥեȤޤ

ϡ1 Ԥ 1 ʬĤοԤΤޤȤޤȤƽ񤫤ޤƹԤα ¦ˤ (reverse ȤäƤк¦ˤ) ζƱľΥ ץ뤬졢¾¦ˤ plot ޥɤʸ (title) ֤ޤιԤϡͶľκ¦ȱ¦ʬ뤫Τ ˿ľ󤵤ޤޥ set key ǻꤹɸϤβͶ ʬξüκɸǤplot Ǥľΰ֤ꤹ뤿 x y Ȥ졢splot Ǥϡx, y, z ƤȤդ 2 ƤΤƱˡȤäơͶľ 2 ̤Ǥΰ֤ ޤ

TeX 䡢ʸޤϤȤϡgnuplot ΰֹ碌Τʸɾ뤳ȤǤޤ󡣤 ä򺸤֤ set key left Left reverse Ȥȹ礻 ΤǤ礦

splot 񤯾硢ˤΥ٥ɽޤ Υ٥¤Ӷ礬ޤʤޤ̤ʰ֤˾ ֤ϤΥ٥ν񼰤Ǥޤܺ٤ϡʲ:set clabel (82.9)

:

ʲϥǥեȤΰ֤ɽޤ:

     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

82.30.1 (key placement)

֤λȤߤ򤿤κǤפʳǰϡΰ衢ʤ⤫ ȤȤȡΰζȤδ֤; (margin) ͤ뤳ȤǤ ΰ˱äơ left/center/right (l/c/r) top/center/bottom (t/c/b) ϡkey 򤽤ΰ¦Τɤ֤ 椷ޤ

inside Ǥϡkey ϥ 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 ǤƱͤ˼ưŪ֤ޤΰζ ФơȤषܤФơȤ٤Ǥ礦 դζϡΰγ key ξ뤿ˡ¦ ư뤳Ȥˤʤޤ¾Υ٥μ򤷤ޤ⤷ ϥǥХˤäƤϥ顼⤷ޤkey Ϥ˹碌Ƥɤ趭ư뤫ϡ˽Ҥ٤ key ΰ֡ ӽŤ;夲˰¸ޤ4 濴·Υץ (center) ˴ؤƤϡɤζưΤ˴ؤ뤢ޤϤޤ󤬡Ѥؤ ϤΥץˤĤƤϡŤ;夲 vertical ξϺޤ ζhorizontal ξϾޤϲζ줾¦Ŭ ڤ˰ưޤ

; (margin) νϡŤ;夲ˤʤưŪ֤ǽ ˤƤޤlmargin (lm), rmargin (rm), tmargin (tm), bmargin (bm) ΤΰĤ̷⤷ʤ 1 ΥɤȤ߹ ƻѤ硢ʲοޤ˼ key ֤ޤ:


         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 (10)< position> Ϳ줿 left, right, top, bottom, center θ̤ϡ label ޥɤ֤ʸξƱ褦˴֤ΰֹ碌 ˻Ѥޤʤleft key < position> α֤ƺ 碌ǽϤޤ¾ξƱͤǤ

82.30.2 (key samples)

ǥեȤǤϡվγϥˤ줾б륨ȥ ޤΥȥˤϡ西ȥȡǻȤΤƱ ƱɤĤ֤°ˤ//Ȣ Υץ뤬ޤfont textcolor °ϡ˸ġ西ȥθܤ椷 textcolor "variable" ˥åȤȡγƥȥʸϡ 襰դɤĤ֤ƱˤʤޤϡΤ gnuplot ΥǥեȤεưǤ

նΥץʬĹ samplen ǻǤޤĹ Ĺȡ< sample_length> *(ʸ) ¤ȤƷ׻ޤ sapmlen ϡվΥץΰ֤ˤ (⤷ץʬȤ 񤫤ʤƤ) ƶͿƤޤϡεϥץʬ ˽񤫤뤿Ǥ

Դ֤οľڡϡspacing ǻǤޤϡΥ (pointsize) ȿľΥ < vertical_spacing> Ѥˤʤޤ οľڡϡʸι⤵⾮ϤʤʤȤݾڤƤ ޤ

< width_increment> ϡʸĹ˲ä긺餷ꤹ (ʸʬ ) ɽͤǤϡ˳Ȥ񤭡ʸʸȤ ˤͭѤǤ礦gnuplot ϳȤ׻Ȥϡ٥ʸ ʸñ˿ʤΤǡΤ˻Ȥޤ

82.31 ٥ (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>}
     unset label {<tag>}
     show label

(< position> ) x,y x,y,z Τɤ餫ǻꤷɸϤ򤹤 ˤϤκɸ first, second, graph, screen, character Ĥޤܺ٤ϡʲ: coordinates (10)

(< tag> ) ϸФ̤뤿ͤǤꤷʤä ̤ѤΤΤǺǤ⾮ͤưŪ˳ƤޤߤθФ ѹȤϤΥѹܤꤷ set label ޥ ɤȤޤ

< label text> ʸǤ⹽ޤ󤷡ʸѿޤʸ ͤļǤ⹽ޤ󡣰ʲ: strings (22), sprintf (14.1), gprintf (82.23.1)

ǥեȤǤϡꤷ x,y,z ˸ФʸϤκü褦 ޤx,y,z 򸫽ФΤɤ·뤫ѹˤѿ < justification> ꤷޤˤϡleft, right, center 줫Ǥ줾ʸϤκ椬ꤷ褦 ֤褦ˤʤޤϰϤγˤϤ߽Ф褦ʻ ɸθФ¾ʸȽŤʤ礬ޤ

rotate ꤹȥ٥ϽĽ񤭤ˤʤޤ (ϥɥ饤Ф бƤСǤ)rotate by < degrees> Ϳ줿ϡ Ŭ礷Ƥϥɥ饤Фϻꤵ줿٤ʸ񤳤Ȥޤ ǤʤϷǤϡľʸȤưޤ

եȤȤΥϡϷեȤ򥵥ݡȤƤ font "< name> {,< size> }" ŪǤޤǤʤϷ ϡǥեȤΥեȤȤޤ

̾ϡߤνϷݡȤƤС٥ʸƤʸ ˳ĥʸ⡼ (enhanced text mode) Ѥޤ noenhanced Ѥ뤳ȤǡΥ٥ĥʸ鳰 ȤǤޤϡ٥뤬㤨Х (_) ޤǤ ʤɤͭѤǤʲ: enhanced text (12)

front ͿȡФϥǡΥդξ˽񤫤ޤback Ϳ (ǥե)Фϥդβ˽񤫤ޤfront ȤȤǡ̩ʥǡˤäƸФƤޤȤ򤱤뤳 ޤ

textcolor < colorspec> ϸФʸοѹޤ< colorspec> rgb ޤϥѥåȤؤγΤ줫Ǥޤ ʲ: colorspec (17.1), palette (82.54)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"` ϡǤդ 24-bit RGB 򤷤ޤ

< pointstyle> lt, pt, ps ȤȤͿ (ʲ: style (72.11))Ϳ줿ȡͿ줿οǸФ֤ (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 (10)

⤷ (뤤Ϥʾ) ּǤ硢ɸ timefmt ν񼰤ˤäưǰϤޤ줿ʸͿɬפޤʲ: set xdata (82.91), set timefmt (82.75)

EEPIC, Imagen, LaTeX, TPIC ǽϤϡ \ \ ȤȤǸФ Ԥ뤳ȤǤޤ

٥κɸʸǡե뤫ɤ߹ळȤǤޤ (ʲ: labels (42))

:

(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

82.32 (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 ǿƳ줿Τǡ С 4.2 Τޤʥޥ "set style increment user" ֤ ΤǤŤޥɤϸߤ侩Ǥ

λȤߤϡgnuplot ǻѤФĿŪʹߤꤹ ˤȤޤԤˤϡ¹Իե ~ /.gnuplot ˡ㤨 аʲΤ褦ʤѤΥޥɲä뤳Ȥ򤪴ᤷޤ:


     if ((GPVAL_VERSION < 4.5) \
     ||  (!strstrt(GPVAL_COMPILE_OPTIONS,"+USER_LINETYPES"))) \
         exit
     set linetype 1 lc rgb "dark-violet" lw 2 pt 0
     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 Ϥεǽ̵ ޤ礭ֹ°ŪϡϾ ֹ°κѤͥ褵ޤ

82.33 Lmargin

ޥ set lmargin Ϻ;Υ򥻥åȤޤܺ٤ϡʲ: set margin (82.39)

82.34 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 ͤ ̵뤷ޤ

82.35 Locale

locale {x,y,z}{d,m}tics դθꤷޤ

:

     set locale {"<locale>"}

< locale> ˤϥ󥹥ȡ뤵줿ƥǻȤȤνǤդθ ǤޤǽʥץˤĤƤϥƥΥɥȤ򻲾Ȥ Ƥޥ set locale "" ϡĶѿ LC_TIME, LC_ALL, LANG ͤꤷ褦Ȥޤ

˴ؤ locale ѹϡʲ: set decimalsign (82.17) ʸ󥳡ɤ򸽺ߤΥΤΤѹϡʲ:set encoding (82.20)

82.36 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 (82.96)

:

x, z ξˤĤпꤹ:

      set logscale xz

y ˤĤ 2 Ȥпꤹ:

      set logscale y 2

pm3d plot Ѥ z ȿμпꤹ:

      set logscale zcb

z п:

      unset logscale z

82.37 Macros

ˤꥳޥɥ饤Υޥִǽͭˤȡޥɥ饤 @< stringvariablename> ηʬʸϡʸѿ < stringvariablename> ˴ޤޤƥʸ֤ޤʲ: substitution (23)

:

    set macros

82.38 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 Υǥ⡣

82.39 Margin

margin (Ϥ;) Ȥϡΰζ饭Хΰֳ¦ޤ δֳ֤ΤȤǤ;礭ϼưŪˤȤޤޥ set margin ѹ뤳ȤǤޤshow margin ϸߤɽ ޤΰζ¦ǤޤǤδֳ֤ѹ ʲ: set offsets (82.48)

:

     set bmargin {{at screen} <margin>}
     set lmargin {{at screen} <margin>}
     set rmargin {{at screen} <margin>}
     set tmargin {{at screen} <margin>}
     show margin

< margin> ΥǥեȤñ̤ˤϡŬڤȻפ롢ʸι⤵Ȥ ޤͤ;Ū礭 (ޤ̵) gnuplot ˤäƼư׻ͤȤȤˤʤޤ3 Ǥ ; (lmargin) Τߤʸ礭ñ̤ȤǤޤ

at screen ϡ;λ꤬ΤΰФ Ǥ뤳Ȥ̣ޤϡ¿ (multiplot) ⡼ɤǤ 2D, 3D դγѤΤ·Τ˻Ȥޤ֤ϸߤ set origin set size ̵ͤ뤹褦ˤʤäƤơ¿Υ ֤̤ˡȤƻȤ뤳ȤտޤƤޤ

;̾ꡢθФθФΥȥ롢 աƶγˤ key (ոФ) Υ򸵤˷ ޤιߤǤʤˤĤƤ ( set xtics axis ˤä)ι߼ȤȤθФ; ׻ˤϴޤޤޤ󤷡;˽񤫤¾ʸΰ֤η׻ˤޤޤ ޤ󡣤ϡȶ˶ᤤ硢θФ¾ʸ ǽ򼨺ޤ

82.40 Mouse

ޥ set mouse ϡߤ÷ϷФƥޥǽͭ ˤޤ÷⡼ɤǤ̾ǥեȤǤͭˤʤäƤޤ ޥɤե뤫ɤ߹ޤϥǥեȤǤ̵ˤʤäƤ

ޥ⡼ɤ 2 ѰդƤޤ2 ⡼ɤϡplot ޥ splot 2 ͱ (ʤz βžѤ 0, 90, 180, 270, 360 ٤ set view set view map) ưޤΥ⡼ɤǤϡ ޥ֤פ졢ޥܥȤäƳ礷ư Ǥޤդб key ȥ̤ʥåȥ ʤɤ򥯥å뤳ȤǡġΥդ򥪥/դڤؤ Ȥ򥵥ݡȤϷ⤢ޤ

splot ˤ 3 դФƤϡդλ (view) Ƚ̼ܤ ѹ줾ޥܥ 1 2 (ˤɥå) ǹԤޤܥ 2 οľΥɥå shift Ʊ˹Ԥȡz ΰֲΰ (xyplane) 岼ޤΥܥˤ < ctrl> 򲡤 ȡɸɽޤǡɽϾäޤ礭ʥǡ ФͭѤǤ礦

ޥ¿ (multiplot) ⡼Ǥ̵Ǥunset multiplot ¿褬뤹Сޥǽ ON ˤʤޤκѤ multiplot κǸ (replot 褵褦ʤ) ФƤΤ Ǥ

:

     set mouse {doubleclick <ms>} {nodoubleclick} \
               {{no}zoomcoordinates} \
               {noruler | ruler {at x,y}} \
               {polardistance{deg|tan} | nopolardistance} \
               {format <string>} \
               {clipboardformat <int>/<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 (18.1)) ɽޤ桼 hotkeys ǥեȤΥ̵ˤޤ ʲ⻲: bind (18.1), label (82.31)

82.40.1 Doubleclick

֥륯åβ٤ϥߥ (ms) ñ̤Ϳޤϡܥ 1 ѤΤΤǡߤΥޥ֤򥯥åץܡ (clipboard) ˥ԡ Τ˻ȤޤǥեȤͤ 300 ms Ǥ 0 ms ꤹ 󥰥륯åǤΥԡԤ褦ˤʤޤ

82.40.2 Mouseformat

ޥ set mouse format ϡsprintf() Фʸλǡޥ [x,y] ɸ襦ɥȥåץܡɤˤɤΤ褦ɽ뤫ꤷޤǥեȤ "% #g" Ǥ

set mouse clipboardformat 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"

82.40.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 ˱äƤΤߥॢȤޤ

82.40.4 X11 ǤΥޥ (X11 mouse)

x11 νϷΥץ set term x11 < n> Ȥäʣ X11 ɥƤ硢ޥޥɤȥۥåȥεǽ ȤΤϸߤ襦ɥΤߤǤ¾Υɥ⺸ ޥκɸɽ̤ϤƤǤ礦

82.40.5 Zoom

(zoom) ϡ̾Ϻޥܥ򲡤ȤǹԤ졢ϰϤ ϥޥΥɥåǹԤޤȤϰۤʤޥܥ׵᤹ ¹ԴĶ⤢뤫⤷ޤ󡣸Υդϡեɥǥۥå 'u' 򥿥פ뤳ȤǤޤۥåȥ 'p' 'n' ϡ ˤɤޤ

ץ zoomcoordinates ϡκݤˡȤüˤκɸ 񤯤ɤꤷǥեȤǤ ON ˤʤäƤޤ

ץ zoomjump ON ξ硢ܥ 3 ˤϰϤ Ϥȡޥݥ󥿤ϼưŪ˾줿֤˰ưޤ ϡ (ޤ϶Ǥ) ϰϤ򤷤ƤޤȤ ΤǤ礦ǥեȤǤ zoomjump OFF Ǥ

82.41 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>}}
         }
     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 (82.49), set size (82.65)

:

     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 (7)趭·ʤ Сset margin ޥɤǡγ;򥵥Ʊ· ȤޤλѤ˴ؤƤϡʲ: set margin (82.39);򥵥 ʸñ̤Ūʿñ̤Ѥ뤳ȤդƤ äƻĤäڡ륰դɽǥХɽ˰¸ ޤ㤨Сץ󥿤ȥǥץ쥤ɽ¿ʬäΤˤʤǤ 礦

ץ layout ˤꡢˤ줾ͿƤ set size set origin ޥɤʤˡñʣդǤޤ ϼưŪ˹Ԥʤ졢ĤǤ⤽ѹǤޤ layout Ǥɽ < rows> Ԥ < cols> γʻҤʬ䤵졢ƳʻҤϡ θ³б̾Υץˤäƹ (rowsfirst)뤤 (columnsfirst) ƹԤޤ襰դѤ߾夲ϲ (downwards) ˡޤϾ (upwards) ˿Ӥ褦ˤǤޤ եȤ rowsfirst downwards Ǥ

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 Ȥʤޤ

ʲ⻲

multiplot Υǥ (multiplt.dem)

82.42 Mx2tics

x2 () ξߤΰ set mx2tics 椵ޤʲ:set mxtics (82.43)

82.43 Mxtics

x ξߤΰ set mxtics 椵ޤunset mxtics ˤäƤɽʤ뤳ȤޤƱͤ楳ޥɤƼ ѰդƤޤ

:

     set mxtics {<freq> | default}
     unset mxtics
     show mxtics

ν񼰤 mytics, mztics, mx2tics, my2tics, 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 (82.96)

82.44 My2tics

y2 () ξߤΰ set my2tics 椵ޤʲ:set mxtics (82.43)

82.45 Mytics

y ξߤΰ set mytics 椵ޤʲ:set mxtics (82.43)

82.46 Mztics

z ξߤΰ set mztics 椵ޤʲ:set mxtics (82.43)

82.47 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>}

< 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 (17.1), fillstyle (82.66.4)default ꤹ ȡ°褬ºݤ˹ԤȤΥǥեȤ ޤʲ: set style rectangle (82.66.9)

82.47.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 (10)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

Ĺĺ򥹥꡼ɸǻꤹȡϸߤΥդüޤǿ Ӥ뤳ȤǤޤʳκɸϤǤϡĹϥ˼ޤ褦˥åԥ󥰤ޤ

82.47.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 (10)) 缴ĹϡκɸͿʤФޤʱߤθ (orientation) ϡʿʱߤμ缴Ȥδ֤γ٤ǻꤷޤ٤Ϳ ʤСǥեȤʱߤθ˻Ȥޤ (ʲ:set style ellipse (82.66.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 ǻꤷľ¤Ʊñ̤Ƿ׻Τǡʱߤ ڥꥵƤ⤽Υڥݻޤ

82.47.3 Circle

:
   set object <index> circle {at|center} <position> size <radius>
       {arc [<begin>:<end>]}
       {<other-object-properties>}

ߤΰ֤ϡ濴ꤷθȾ¤ꤷޤ at center Ʊ̣Ǥΰ֤Ⱦ¤ˤϡx κɸΰ кɸ (graph)꡼ɸ (screen) Τ줫ѤǤ ޤ (ʲ: coordinates (10))ΤξǤ⡢Ⱦ¤ϼա ꡼οʿν̼ܤФƷפ졢ʿȿľν̼ܤˤ 줬äƤ⡢̤ߤˤʤ褦ľޤ

ǥեȤǤϡʱߤ褵ޤץ arc ˳ϳѤ λѤ٤ñ̤Ȥƻꤹȱ߸̤褷ޤ߸̤ϡȿײ ޤ

82.47.4 Polygon

:
   set object <index> polygon
       from <position> to <position> ... {to <position>}

ޤ
       from <position> rto <position> ... {rto <position>}

¿ѷΰ֤ϡĺΰ֤Ϳ뤳ȤǻǤޤϡ κɸ (first, second)ΰкɸ (graph)꡼ ɸ (screen) Τ줫ѤǤޤŪʺɸ (rto) ϡκɸϤĺƱɸϤǤʤФޤ󡣰ʲ: coordinates (10)

:

   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

82.48 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 γФ뤿Ǥ

82.49 Origin

ޥ set origin ϥ꡼Ƕθ (ʤ դȤ;) Τ˻ѤޤκɸϤϥ꡼ɸ (screen) ͿޤκɸϤ˴ؤˤĤƤϡʲ:coordinates (10)

:

     set origin <x-origin>,<y-origin>

82.50 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 ɬפ ե饰򥻥åȤ뤳Ȥ뤫Ǥ㤨СOS ե򳫤 Ȥ (鵷ɤ) ե뤬եޥåȤƤ뤫ɤΤɬפ 褦 OS ʤɤ쳺ޤ

popen ؿĤ褦ʥޥ (Unix ) Ǥϡե̾κǽ '| ' 뤳ȤˤꡢϤ򥷥륳ޥɤ˥ѥפϤȤǽǤ㤨 аʲ̤Ǥ:


     set output "|lpr -Plaser filename"
     set output "|lp -dlaser filename"

MS-DOS Ǥϡset output "PRN" ȤɸΥץ󥿤˽Ϥޤ VMS ǤϽϤǤդΥסǽʥǥХ뤳ȤޤϤ DECnet Ʃʥ뤳ȤǽǡϤνͿƤ ޤ

82.51 Parametric

set parametric ޥɤ plot splot ΰ̣̾δؿ 褫޲ѿɽ (parametric) ؿѹޤunset parametric Ȥи⡼ɤޤ

:

     set parametric
     unset parametric
     show parametric

2 դˤƤϡ޲ѿɽؿϤҤȤĤ޲ѿФ 2 ĤδؿޤȤƤ plot sin(t),cos(t) Ȥ뤳Ȥˤ Ʊߤޤ (ڥ椬ꤵƤСʲ:set size (82.65))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] ȤʤäƤޤ ŪˤϤΥǥեͤäͭդʤΤѹͽǤ

82.52 Plot

ޥ show plot ϸߤ襳ޥɡʤ replot ޥ ǺƸ롢ľ˹Ԥ줿 plot splot ޥɤɽޤ

˥ޥshow plot add2history ϡθߤ襳ޥɤ history ˽񤭽Фޤϡreplot Ȥäľ襳ޥ ˶ɲä硢ƥޥɹΤ򤹤Խ Ǥ

82.53 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|median|min|max|c1|c2|c3|c4 } }
                { 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 (82.53.2)ʲΥޥɤϡۤʤä⤵ 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 (82.54), set cbrange (82.126), set colorbox (82.12)Ƥ ǥե demo/pm3d.dem ⻲ͤˤʤǤ礦

82.53.1 Pm3d Υ르ꥺ (algorithm)

ޤϿ/̤ɤΤ褦ΤˤĤƵҤޤϥǡ ϡؿɾ뤫ޤ splot data file ޤ ̤ϡ (Ω) η֤ǹޤpm3d 르ꥺǤϡ ǽǸФ줿٤礦 2 ȡǸФ줿¾ 2 ֤ΰ褬 4 z (ޤɲä줿 'color' Ѥ͡ ʲ: using (72.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 (82.54)

2. 2 Ĥ 4 ĤΥǡ󤫤ʤǡ splot: /顼ͤϡz ͤ˺ǸκɸȤäޤΤǡ z ɸΩ ʤΤˤʤޤ 4 ǡ˻ȤȤǤޤ

¾:

1. ʪؼԤδ֤Ǥϡgnuplot ʸ䥽˸ 'iso_curve' ( Ω) Ȥդ⡢Ǹڤ ' (scan)' Ȥդ Ƥޤ1 ٤¾εϿˤ꿧Ͽޤɾ롢Ȥ ΤϤ̣Ǥ

2. 'gray' 'color' (scale) ϡ餫Ѳ륫顼ѥåȤ ΡϢ³ѿǤμͻҤ襰դ٤Ĺ ɽޤʸǤϤ "顼ܥå (colorbox)" ȸƤӡ ѿ򥫥顼ܥåѿȸƤӤޤʲ: set colorbox (82.12),set cbrange (82.126)

3. pm3d οŤ 3 ̤ǤϤʤ 2 ˻Ȥˤϡ set view map set pm3d map ѤƤ

82.53.2 Pm3d ΰ (position)

ζ̤̤ŷ (ξϳ/顼ʿϿ) ̾ z ɸ (/顼) ȤǤޤϡץ at ˡb, t, s 6 ĤޤǤȹ礻ʸĤƻꤹ뤳 ǹԤޤ㤨 at b ̤Τߤ褷ޤat st Ϻǽ˶ ̤Ƽŷ̤˿Ͽޤޤat bstbst ... ܤ áʤΤϻȤޤ

ɤ줿ͳѷϡ鼡ؤ褵ƹԤޤ̤褹 (at s)λͳѷΤΤ˽Ťʤ (񤭤) ޤ (gnuplot ɤ 줿¿ѷ֤νŤʤߺѤ׻褦ʲ۸¥ġǤϤ ޤ) ǽǡǽǸؤ륹 åץ scansforward scansbackward ƤߤƤ ǥեȤ scansautomatic ǡ gnuplot Ȥν ¬ޤǡץ depthorder ϻͳѷν˺ ޤɤĤ֤Ͽ¤Ѥ줿ǹԤ졢ˤ꤫ ʤʣʶ̤ǤŪʤΤˤ뤳ȤǤޤܺ٤ϡʲ:pm3d depthorder (82.53.3)

82.53.3 ν (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 ̤ˤϱƶʤȤդƤ

82.53.4 åԥ (clipping)

ͳѷ x,y ɸ˴ؤ륯åԥ󥰤 2 ĤˡǹԤޤ clip1in: ƻͳѷƤ 4 ƤʤФʤ餺ʤ ⤽Τ 1 x, y ϰϤˤޤäƤʤФʤޤ clip4in: ƻͳѷƤ 4 x, y ϰϤˤޤäƤʤФ ޤ

82.53.5 γ

3 Υǡ (x,y,z) ξ:

Ťϥ顼ܥåƱͤ set palette Ƿꤵ ĤǤϰĤΥѥåȤΤߤ¸ߤޤĤζ̤ ʤѥåȤ褹ˤϡorigin sizemutiplot ȤȤǹԤޤϥɥ饤ФѤǤ뿧ȤԤƤޤ ˤ set palette maxcolors ȤȤ˺줺ˡ

褵 pm3d ͳѷˤϰĤγ/顼ͤбޤ (4 ĺ dz餫ʥ顼Ѳϵޤ)ͤϡcorners2color < option> ˽äƼϤγѤ z ɸ׻ޤ< option> 'mean' (ǥե )'geomean', 'median' ǡ̤Υ顼ʿ경˴ĤμͿ 'min','max' Ϥ줾Ǿͤ͡򤷤ޤϱҤʡ 뤤ϵ޷ʥԡͤĤ褦ʥԥ륤᡼俧ϿޤȤ ɬפޤ󡣤Τ褦ʾˤϡषץ 'c1', 'c2', 'c3', 'c4' ȤäơͳѷογˤĤγѤ z ɸȤ褦 ˤФǤ礦ɤγѤ 'c1' бΤΤ뤿ˤϲ ¸ƤߤɬפǤ礦θ˰¸Ƥޤ pm3d 르ꥺϡ顼̤ϥǡϰϤγˤʤ ǡץ 'c< j> ' ϡʻҤ 2 ĤΤؤ˱äԥ뤬ɤλ ѷοˤͿʤȤ̤⤿餷ޤ㤨Сpm3d 르 ꥺ 4x4 ΥǡγʻҤŬѤ륹ץ demo/pm3d.dem ( 󸫤Ƥ) Ǥϡ(4-1)x(4-1)=9 ʤĹޤ

4 Υǡ (x,y,z,color) ξ:

4 ܤ˥ǡͿ硢̤̾˥ѥåȤ˳Ƥ볥 ĴͤȤߤʤޤġλͳѷκ̿ϾƱͤ˹Ԥޤͤ z ͤȤڤΥޤ̤κ̿ץˤꡢ4 ܤΥǡ RGB Ϳ뤳ȤǤޤʲ: rgbcolor variable (17.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 (82.82),set colorbox (82.12)

82.53.6 Hidden3d

ץ set pm3d hidden3d ϡƻͳѷζ򡢻ͳѷ켫 褵ΤƱ褷ޤ̾ϡϵŪʱã 뤿ˡץ depthorder ȤȤ˻Ѥޤϡޥ set hidden3d Ѥ⤺äȸŪǤ礦Υޥɤϡ θܤ椹뤿ɲäΥ饤󥹥륪ץļ ޤ饤ѥ᡼Ȼꤹ뤫άϡ plot ޥɤͿ줿°Ѥޤ侩:


     set pm3d at s hidden3d depthorder
     unset hidden3d
     unset surf
     splot x*x+y*y linecolor rgb "black" linewidth 0.5

82.53.7 Interpolate

ץ interpolate m,n ϡʻ٤ܤ֤ ѷŪ֤ޤǡФƤϡ϶̤οѲ 餫ˤ̤οޤؿФƤϡ֤ ٤˥񤷤ƤޤȤäȤ餤ΰ̣ ޤ󤫤顢ؿξ samples isosamples Ȥ Ǥ礦 m, n ФƤϡƻͳѷޤϻѷϡ줾 m n ֤ޤ m, n Ǥ֤٤ϡʤȤ | m| , | n| 褵褦򤵤ޤ̤ʳʻҴؿȸ ȤǤޤ0 ξ硢ʤ interpolate 0,0 ϡưŪ˺ Ŭֶ򤷤ޤ

82.53.8 侩ʥץ

Υޥɤˤϥץ {transparent| solid} ȤƤޤ ߤϡƱ̤򤽤줾 set grid {front| layerdefault} ˤä ȤǤޤ

ޥ set pm3d map ϰʲΰϢΤΤƱͤǤ: set pm3d at b;set view map; set style data pm3d; set style func pm3d; set view map ʤäεСؤθߴΤΤΤǤ ϥǡե륿뤿 zrangeӿϰϤѹѤ cbrange դŬڤ˻ѤƤset (no)surface ( ?) 褦Ǥ

82.54 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 Τ褦¾β ꥱϤȤǤޤΤ褦ʥƥȷ RGB ΰ ɽ˲ätest palette ޥɤˤꡢߤΥѥåȤ R,G,B ξ 褵뤳ȤǤޤ

ʲΥץϡդ°ꤷޤ

ΥѥåȤѤޤϡ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 (87)

Ϸ¿ϡͭ¸ĤοݡȤƤޤ (㤨 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

82.54.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

82.54.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" )

82.54.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)

82.54.4 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

82.54.5 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 (72.2.1)R,G,B double Υǡ 64 Ĥ 3 Ȥե palette.bin ˽Ϥɤ߹:

     set palette file "palette.bin" binary record=64 using 1:2:3

82.54.6 (gamma correction)

ۿФ륬 set palatte 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 )

ޤϡ֤ "" ֤˽ʬɤŬ礹ޤǤɤ ֤õƤ

82.54.7 Postscript

postscript եΥ򾮤Ūǡε͡ ƤǤϤʤĤη׻줿 RGB εͤΥե˽񤫤 ʬؿ postscript ľܥɲ졢pm3d ľ إåȤƤޤ/g /cF 򻲾ȤƤ̾綠 򤽤˽񤯤Ȥϡ3 ĤμΤߤȤ˰̣ޤ multiplot 䤽¾ͳ postscript եΤѴؿ ľܼԽȻפΤޤ󡣤줬ǥեȤΥץ nops_allcF Ǥץ ps_allcF ȤȡƤθ postscript ե˽񤫤ޤĤΥǡۤʤ̤˰ۤ ѥåȤȤŪ postscript եԽ ˡΥץ˴ؿĤǤ礦εǽϡorigin sizemultiplot ȤȤǼ¸ǤǤ礦

pm3d ϿޤʻҾ뤤Ϥۤܵ§ǡ postscript Ȥ褵줿硢gnuplot Ʊۤ awk ץ pm3dCompress.awk ȤȤǡ postscript եΥ 50% ̤ޤǾ뤳ȤǤޤΥեʸ˼ 硢뤤®Υץ󥿤礭ʥեʤɤˡεǽ ˴ؿĤȤǤ礦ˡϰʲ̤Ǥ:

   awk -f pm3dCompress.awk thefile.ps >smallerfile.ps

pm3d ϿޤͳѷγʻҾǡ postscript եȤ褵 줿硢Ʊۤ awk ץ pm3dConvertToImage.awk ȤȤǡΥ򹹤˾뤳ȤǤޤˡ:

   awk -f pm3dConvertToImage.awk <thefile.ps >smallerfile.ps

postscript ϤγĴ򥫥顼ءޤϤεա < maxcolors> ʤɤ򡢼ưѹ뤳ȤǤޤ

82.55 Pointintervalbox

° pointintervallinespoints ǻȤޤ pointinterval ͡㤨 -N Ȥȡε N ˽񤭡 ƳεθȢ (ºݤˤϱ) ʬطʿɤĤ֤ƾ ޤޥ set pointintervalbox Ϥξäΰ礭 (Ⱦ) 椷ޤϥǥեȤȾ (= pointsize) ФΨǤ

82.56 Pointsize

ޥ set pointsize ǻȤ礭ѹޤ

:

     set pointsize <multiplier>
     show pointsize

ǥեȤ 1.0 ܤǤǡϤǤϡ礭ݥȥ 䤹Ǥ礦

ĤФݥȥ plot ޥɤξǤѹǤޤ ܺ٤ϡʲ: plot with (72.11)

ݥȥϡɬƤνϷǥݡȤƤ櫓 ǤϤʤȤդƤ

82.57 Polar

ޥ set polar ϥդˡ xy ľɸϤ˺ɸϤ ѹޤ

:

     set polar
     unset polar
     show polar

˺ɸ⡼ɤǤϡѿ (t) ϳ٤ɽޤt ΥǥեȤϰϤ [0:2*pi] Ǥñ̤Ȥ٤򤵤Ƥ [0:360] Ȥʤޤ (ʲ: set angles (82.1))

ޥ unset polar ˡǥեȤ xy ľɸϤᤷ

set polar ޥɤ splot ǤϥݡȤƤޤsplot ФƱͤεǽ˴ؤƤϡʲ: set mapping (82.38)

˺ɸ⡼ɤǤ t οΰ̣ r=f(t) Ȥʤꡢt ϲžѤȤʤޤ trange ϴؿ () 椷rrange, xrange, yrange Ϥ줾 쥰դ x,y ϰϤ椹뤳ȤˤʤޤϰϤ rrange ϼưŪꤵ뤫ޤŪǤޤܺ٤˴ؤ Ƥϡʲ: set rrange (82.62), set xrange (82.95)

:

     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)

82.58 Print

ޥ set print print ޥɤνϤե˥쥯 ޤ

:

     set print
     set print "-"
     set print "<filename>"
     set print "<filename>" append
     set print "|<shell_command>"

"< filename> " ʤϽϤ < STDERR> ˤʤޤ"-" Ȥ < filename> < STDOUT> ̣ޤappend ե饰ϥեɲ (append) ⡼ɤdzȤ̣ޤѥפ򥵥ݡȤץåȥ Ǥϡ< filename> "| " ǻϤޤäƤ顢< shell_command> ؤΥ פޤ

82.59 Psdir

ޥ set psdir < directory> ϡpostscript Ϸ prologue.ps ʸ󥳡ѤΥեõΤ˻Ѥ븡ѥ椷ޤ λȤߤϡ̤˥˥ޥ prolog ե뷲ڤؤ Τ˻Ȥޤν֤ϰʲΤ褦ˤʤäƤޤ
     1) `set psdir` ꤷϤΥǥ쥯ȥ
     2) Ķѿ GNUPLOT_PS_DIR ǻꤷǥ쥯ȥ
     3) Ȥ߹ޤ줿إåޤϥǥեȤΥƥǥ쥯ȥ
     4) `set loadpath` ǻꤷǥ쥯ȥ

82.60 Raxis

ޥ set raxis unset raxis ϡư¼ʻ x ʬ Υ褹뤫ɤڤؤޤߤ rrange κǾͤ 0 Ǥ (Ƽư̼ܤǤʤ) 硢դȼãʤȤ򼨤 ݤ˺ɸդ濴ޤϡդζƱ 褵ޤʲ: polar (82.57), rrange (82.62), rtics (82.63), set grid (82.26)

82.61 Rmargin

ޥ set rmargin ϱ;Υ򥻥åȤޤ ܺ٤ϡʲ: set margin (82.39)

82.62 Rrange

ޥ set rrange ϶˺ɸ⡼ɤΥդưϰϤꤷ xrange yrange ξꤷƤޤޤξԤϡ [-(rmax-rmin) : +(rmax-rmin)] ˤʤޤθ xrange yrange ѹƤ (㤨г礹뤿) rrange ѹʤ Τǡǡ rrange ˴ؤƥåԥ󥰤줿ޤޤȤʤޤrmin ˴ؤ뼫ư̼ܤϾ rmin = 0 Ȥʤޤ

82.63 Rtics

ޥ set rtics ϡư¼˱ä֤ޤϡ ɸ⡼ɤǤΤɽޤȤθФϸα¦  mirror ϡκ¦ˤޤ¾Υ ɤ˴ؤäˤĤƤϰʲ: polar (82.57), set xtics (82.96)

82.64 Samples

ؿޤϥǡ֤˴ؤ륵ץ󥰿ϥޥ set samples ѹǤޤ

:

     set samples <samples_1> {,<samples_2>}
     show samples

ǥեȤǤϥץ 100 ꤵƤޤͤ䤹 Τ褬ޤ٤ʤޤΥѥ᡼ϥǡե ˤϲαƶͿޤ󤬡/Υץ󤬻ȤƤ Ϥθ¤ǤϤޤ2 ˤĤƤ plot smooth 3 ˴ؤƤϡʲ: set dgrid3d (82.18)

2 Υ褬ԤʤȤ < samples_1> ͤΤߤطޤ

ʤǶ褬ԤʤȤϡsamples ͤϸΩɾ 륵ץλˤʤޤ v-Ω < samples_1> ĤΥ u-Ω < samples_2> ĤΥץޤ< samples_1> Τ߻ꤹȡ< samples_2> ͤ < samples_1> Ʊͤꤵޤ ʲ⻲: set isosamples (82.29)

82.65 Size

:
     set size {{no}square | ratio <r> | noratio} {<xscale>,<yscale>}
     show size

< xscale> < yscale> ΤγΨǡΤȤϥդȥ ٥;ʬޤߤޤ

פ:

     gnuplot ΰǤǤϡ`set size` ͤ򡢽Ϥΰ
     (Х) Υ椹ΤˤȤäƤϷ⤢
     ٤ƤνϷä櫓ǤϤޤǤ
     version 4.6 ǤϡۤȤɤνϷʲΥ롼˽褦ˤ
     ޤ:

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 (82.82.1)< r> =-2 ΤȤy ñĹ x ñĹ 2 ܤꤵ < r> ͤ˴ؤưʲƱͤǤ

gnuplot ꤵ줿ڥΥդȽ񤱤뤫򤵤 Ϸ˰¸ޤդΰϽϤλꤵ줿ʬˤȼ ޤꡢڥ椬 < r> Ǥ褦ʺĹȤʤޤ ( Ŭ;Ĥޤ)

square ratio 1 Ʊ̣Ǥ

noratio nosquare Ϥ⥰դ򤽤νϷ (terminal) Ǥ ǥեȤΥڥᤷޤ< xscale> < yscale> ϤΥǥ Ȥ (1.0) ˤᤷޤ

ratio square 3 Ǥϰ̣ޤ󤬡set view map Ѥ 3 2 ͱƤˤϱƶͿޤ ʲ⻲:set view equal (82.82.1)ϡ3 x y ŪƱ ޤ

:

դߤΥХ褦礭ꤷޤ:

     set size 1,1

դ̾Ⱦʬ礭ˤޤ:

     set size square 0.5,0.5

դι⤵ 2 ܤˤޤ:

     set size ratio 2

82.66 Style

ǥեȤ襹ϡset style data set style function ǤޤؿǡΥǥեȤ襹ġѹ ˡˤĤƤϡʲ: plot with (72.11)ΰΤϡʲ: plotting styles (II)

:

     set style function <style>
     set style data <style>
     show style function
     show style data

ǤǤΥǥեȥǤޤ


     set style arrow <n> <arrowstyle>
     set style fill <fillstyle>
     set style histogram <histogram style options>
     set style line <n> <linestyle>

gnuplot object 򥵥ݡȤ褦˥ѥ뤵ƤСʲΥץͭǤ:

:

     set style rectangle <object options> <linestyle> <fillstyle>
     set style circle radius <size> {clip|noclip}
     set style ellipse size <size> units {xy|xx|yy} {clip|noclip}

82.66.1 Set style arrow

ƽϷηΥǥեȤνäƤơϥޥ test ǻȤǤޤset style arrow ηη ǻȤȤˤƱ򷫤֤ƻꤷʤ Ƥ⥤ǥåǻȤǤ褦ˤޤ

:

     set style arrow <index> default
     set style arrow <index> {nohead | head | heads}
                             {size <length>,<angle>{,<backangle>}}
                             {filled | empty | nofilled}
                             {front | back}
                             { {linestyle | ls <line_style>}
                               | {linetype | lt <line_type>}
                                 {linewidth | lw <line_width} }
     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 (10)< backangle> ϡfilled ޤ empty Ȥ˻Ȥ줿Τ߸Ϥξ硢 < backangle> θʬ𼴤Ȥڤ (< angle> Ʊ; ñ̤) ˤʤޤϷ fig ϡ¤줿ڤѴؿä ơ 3 Ĥΰۤʤ򥵥ݡȤƤơ 2 ĤͤǷ ޤ: 70 ̤ξ硢ϤؤڤѤ110 ٤Ķ 硢ʬäѤδ֤γѤǤϡθľˤʤ ޤ

filled ꤹȡɤĤ֤줿ޤ (heads Ȥ Ƥ)ɤĤ֤ϡ¿ѷɤĤ֤Ԥ褦ʽϷ ݡȤƤơΥꥹȤˤĤƤϡʲ: pm3d (82.53)¾νϷ ǤĤޤɤĤ֤ޤ󡣤Ʊ (Ĥ ɤʤ) ϡempty ꤷƤޤޤmetafont, metapost, latex, tgif Τ褦ˡ򤽤鼫ȤȼΥ롼 褦ʽϷǤϡɤĤ֤Ϥ󥵥 Ȥޤ

ϥ桼饤󥹥ΥꥹȤ֤ȤǤޤ (ʲ: set style line (82.66.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 (82.2)

82.66.2 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 (28), candlesticks (30), financebars (35)

82.66.3 Set style data

ޥ set style data ϥǡФǥեȤ襹 ѹޤ

:

     set style data <plotting-style>
     show style data

ܤˤĤƤϡʲ: plotting styles (II)ܤꤷʤä 硢ΰɽޤshow style data ϸߤΥǥեȤΥ 襹ɽޤ

82.66.4 Set style fill

ޥ set style fill ϡboxes, histograms, candlesticks, filledcurves ǤˤǤΥǥեȤΥ˻ ޤΥǥեȤϡġɤ٤ (fillstyle) ꤹ뤳ȤǾ񤭤Ǥޤʲ: set style rectangle (82.66.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 ϡȢɤĤ֤ޤ󤬡줬ǥեȤǤ

ǥեȤ border ϡߤμμȢζޤ border < colorspec> Ƕοѹ뤳ȤǤޤnoborder ʤ褦ˤޤ

82.66.4.1 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 ǤϥѥɤĤ֤ΰ ɽǤޤ

82.66.5 Set style function

ޥ set style function ϴؿФǥեȤ襹 (lines, points, filledcurves ʤ) ѹޤʲ:plotting styles (II)

:

     set style function <plotting-style>
     show style function

82.66.6 Set style increment

: Υޥɤ侩Ǥ˿ޥ set linetype ѤƤϡѤΤΰŪŬ򸡺 ǤϤʤKΤޤʲ: set linetype (82.32)

:

     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 褵ޤ

82.66.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>}
                            {palette}
     unset style line
     show style line

default ϡƤΥ饤󥹥ѥ᡼򤽤Ʊ index (linetype) ꤷޤ

< index> linestyle ¸ߤ硢¾Ƥ¸줿ޤޡͿ 줿ѥ᡼Τߤѹޤ< index> ¸ߤʤСꤵ ʤäͤϥǥեȤͤˤʤޤ

Τ褦ˤĤ饤󥹥ϡǥեȤη (, ) ̤ʤΤ֤뤳ȤϤʤΤǡ饤󥹥롢ǥեȤη ɤȤޤ饤󥹥ϰŪʤΤǡޥ reset ¹ԤФĤǤ⤽ϾäޤKΤϡ ʲ: set linetype (82.32)

ϡ 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 (17), colorspec (17.1),set palette (82.54), colornames (82.13), cbrange (82.126)

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 (82.54), set pm3d (82.53)


     set style line 10 linetype 1 linecolor rgb "cyan"

ϡRGB 顼򥵥ݡȤ뤹٤ƤνϷǡ饤󥹥 10 ˼ ο忧Ƥޤ

82.66.8 Set style circle

:

     set style circle {radius {graph|screen} <R>} {clip|noclip}

Υޥɤϡ襹 "with circles" ǻȤǥեȤȾ ꤷޤϡǡ 2 Υǡ (x,y) Ϳʤä 硢뤤ϴؿΤȤŬѤޤ "noclip" ϡդζǤαߤΥåԥ󥰤̵ˤޤ ǥեȤϰʲ̤: "set style circle radius graph 0.02 clip"

82.66.9 Set style rectangle

ޥ set object 줿Ĺˤ̡ΥǤ ̤Υ򤷤ʤСΥ֥Ȥϥޥ set style rectangle ˤǥեȤѤޤ

:

   set style rectangle {front|back} {lw|linewidth <lw>}
                       {fillcolor <colorspec>} {fs <fillstyle>}

ʲ: colorspec (17.1), fillstyle (82.66.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

ǥեȤϡطʿǤɤ٤ǡϹˤʤäƤޤ

82.66.10 Set style ellipse

:

     set style ellipse {units xx|xy|yy} {clip|noclip}
                       {size {graph|screen} <a>, {{graph|screen} <b>}}
                       {angle <angle>}

Υޥɤϡʱߤľ¤Ʊñ̤Ƿ׻뤫ɤ椷ޤ ǥեȤ 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 ȤʤѤǡñ̤٤Ϳ ɬפޤ

"noclip" ϡդζǤʱߤΥåԥ󥰤̵ˤޤ

ʱߤ object ˴ؤƤϰʲ⻲: set object ellipse (82.47.2)2 襹˴ؤƤϰʲ: ellipses (32)

82.67 Surface

ޥ set surface splot ˤ̤ɽ椷ޤ

:

     set surface
     unset surface
     show surface

̤ϥǡؿФơwith ǻꤵ줿롢뤤¾ Ŭڤʥǽ񤫤ޤ

unset surface ˤ splot ϡؿǡեФ ʤʤޤ̤ˤؿ䤢ǡեζ ̵ˤƤ¾ͭˤˤϡޥ splot Υ  nosurface ѤƤξǤ set contour ˤ̤Ͻ񤫤ޤunset surface; set contour base ȤϡʻҤɽݤǤʲ⻲:set contour (82.14)

82.68 Table

table ⡼ɤͭʾ硢plot splot ޥɤϡߤνϷ Фºݤؤ X Y {Z} R ͤʣ󤫤ʤ ɽΥϤԤʤޤʸ R ϡ 3 ΤΰĤ : ͭϰˤ "i"ϰϳξ "o"̤ (undefined) ξ "u" Ǥǡν񼰤ϡΥ٥ν (ʲ: set format (82.23)) ˤäƷޤꡢϰĤζǶڤޤ ϡ㤨 plot 褹ʤɡѤ ¸ȤǤˤĤƤϡʲ: set contour (82.14) ˡϡ֤줿ǡ¸ΤˤȤȤǤޤ (ʲ: set samples (82.64), set dgrid3d (82.18))

:

     set table {"outfile"}
     plot <whatever>
     unset table

ɽνϤϡꤵ줿ե˽񤭽Фޤ꤬ʤ set output ǻꤵƤͤ˽ϤޤߤνϷɸ Ū᤹ˤϡunset table Ū˹Ԥʤɬפޤ

82.69 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 (92)

82.70 Termoption

ޥ set termoption ϡ߻ѤƤϷο񤤤򡢿 set terminal ޥɤȯԤʤѹ뤳Ȥǽˤޤ ޥɰĤФưĤΥץΤߤѹǤޤƤˡ ѹǤ륪ץϤ¿Ϥޤ󡣸߻Ѳǽʥץ ϰʲΤΤΤߤǤ


    set termoption {no}enhanced
    set termoption font "<fontname>{,<fontsize>}"
    set termoption fontscale <scale>
    set termoption {solid|dashed}
    set termoption {linewidth <lw>}{lw <lw>}

82.71 Tics

Ƥμ (ФΤĤ) ٤˹ԤȤϡޥ set tics DzǽǤ

Ƥμ (ФΤĤ) ޥ set tics ǰ٤ Ǥޤ unset tics Ǿäset tics (ǥեȤξ ֤) ꤬Ĥޤñ켴ԤʤƱͤΥޥ ޤ (tics ˼̾Ĥ)

:

     set tics {axis | border} {{no}mirror}
              {in | out} {scale {default | <major> {,<minor>}}}
              {{no}rotate {by <ang>}} {offset <offset> | nooffset}
              {left | right | center | autojustify}
              { format "formatstring" } { font "name{,<size>}" }
              { textcolor <colorspec> }
     set tics {front | back}
     unset tics
     show tics

κǽν񼰤ΤȤ˽񤤤ץϡġμˤ⡢ޤϤ٤ μ (x, y, z, x2, y2, cb) ˤŬѤǤޤ

tics front ޤ back ϡ2D (splot Բ) ˤΤ ٤Ƥμ 1 ŬѤޤϡǤŤʤä Ǥ̤˽Ф֤椷ޤ

axis border gnuplot (ιKȤȤθФ) 򡢤줾켴ˤĤΤˤĤΤؼޤˤ Ƥᤤ硢axis ѤȶɽƤ (ʲ:set border (82.7)) θФʸ򶭳γ˽ФƤޤǤ礦 缫ưŪʥ쥤ȥ르ꥺˤ;褯ʤΤȤ äƤޤޤ

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 ΥǥեȤ nomirror Ǥ

< offset> x,y ޤ x,y,z ηǤ˺ɸϤ򤷤ơ first, second, graph, screen, character Τ줫 Ĥ뤳ȤǤޤ< offset> ϡθФʸΥǥե ΰ֤Τ餷֤ǡΥǥեȤñ̷Ϥ character Ǥ ܺ٤ϡʲ: coordinates (10)nooffset offset OFF ˤޤ

ǥեȤǤϸФ٥ϡ̤褦ˡȲžѤ˰¸ ֤˼ưŪ˰ֹ碌ޤ줬ˤʤСŪ left, right, center Υɤˤֹ碌ѹǤޤ autojustify ǥǥեȤεưޤ

ץʤ set tics ϡιߤ¦ˤޤ¾ ƤΥץľͤݻޤ

(٥ΤĤ) ¾˴ؤƤϡʲ: set xtics (82.96) ˴ؤƤϡʲ: set mxtics (82.43)Υޥɤϡ 줾μФ̡˼󶡤ޤ

82.72 Ticslevel

ߤϿ侩Ƥޤ󡣰ʲ: set xyplane (82.97)

82.73 Ticscale

ޥ set ticscale ϸߤϿ侩Ƥޤ set tics scale ȤäƤ

82.74 Timestamp

ޥ set timestamp դȻ򺸤;ɽޤ

:

     set timestamp {"<format>"} {top|bottom} {{no}rotate}
                   {offset <xoff>{,<yoff>}} {font "<fontspec>"}
     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 (82.75)

82.75 Timefmt

ΥޥɤϡǡηˤʤäƤˡλǡ ŬѤޤϥޥ set xdata 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 (82.23)

2 %y ɤ硢69-99 2000 ǯ̤00-68 2000 ǯʸȸʤޤ: ϡUNIX98 λͤ˹碌ΤǤδ Ϥǰ㤤Τǡ2 ܼͤŪˤޤǤ

¾ξˤĤƤϡʲ⻲: set xdata (82.91), time/date (25)

:

     set timefmt "%d/%m/%Y\t%H:%M"

ϡgnuplot դȻ֤֤ʬΥƤ뤳Ȥ򶵤ޤ ( ʤΥǡ衼Ƥ֤äΤɤʣΥ ѴƤޤ ? ʸϥե˼ºݤˤʪȰפƤʤФʤޤ) ʲ⻲

ǡ (time data) ǥ⡣

82.76 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 (10)ǥեȤǤ character ɸ ϤȤޤ㤨С"set title offset 0,-1" ϥȥ y ΰ֤Τѹ礶äѤ˸ä 1 ʸʬι⤵ȥ򲼤˲ ޤ1 ʸ礭ϡեȤȽϷξ˰¸ޤ

< font> ϥȥ뤬񤫤եȤꤹΤ˻Ȥޤ< size> ñ̤ϡɤνϷ (terminal) ȤäƤ뤫ˤäѤޤ

textcolor < colorspec> ϡʸοѹޤ< colorspec> ϡ rgb ޤϥѥåȤؤγΤ줫Ǥޤʲ:colorspec (17.1), palette (82.54)

noenhanced ϡĥʸ (enhanced text) ⡼ɤͭˤʤäƤ Ǥ⡢ȥĥʸʤ褦ˤޤ

set title ѥ᡼ʤǻȤȥȥõޤ

ХååʸκѡڤʸϤñŰ 㤤ˤĤƤϡʲ: syntax (24)

82.77 Tmargin

ޥ set tmargin Ͼ;Υ򥻥åȤޤܺ٤ϡʲ: set margin (82.39)

82.78 Trange

ޥ set trange ϡ޲ѿ⡼ɡ뤤϶˺ɸ⡼ɤǤ x,y ͤ׻Τ˻Ȥ޲ѿϰϤꤷޤܺ٤ϡʲ:set xrange (82.95)

82.79 Urange

set urange set vrange ϡsplot ޲ѿ⡼ɤ x,y,z ׻Τ˻Ȥ޲ѿϰϤꤷޤܺ٤ϡʲ:set xrange (82.95)

82.80 Variables

show variables ޥɤϥ桼ѿѿθߤͤΰ ɽޤgnuplot ϡGPVAL_, MOUSE_, FIT_, TERM_ ǻϤޤ̾ ѿƤޤ

:

     show variables      # GPVAL_ ǻϤޤΰʳѿɽ
     show variables all  # GPVAL_ ǻϤޤΤޤƤѿɽ
     show variables NAME # NAME ǻϤޤѿΤߤɽ

82.81 Version

ޥ show version ϸߵưƤ gnuplot ΥС󡢺ǽ ԤȡFAQ info-gnuplot ᡼󥰥ꥹȡХݡ Υ᡼륢ɥ쥹ɽޤŪ˥ץबƤФƤȤ ꡼ˤξɽޤ

:

     show version {long}

long ץͿȡ˥ڥ졼ƥ󥰥ƥࡢgnuplot 󥹥ȡΥѥ륪ץ󡢥إץե֤ꡢ (Ƥ) ͭѤʥ᡼륢ɥ쥹ɽޤ

82.82 View

ޥ set view splot λγ٤ꤷޤϡ 3 ɸɤΤ褦 2 β (screen) Ƥ뤫 椷ޤϡ褵줿ǡβžȽ̼ܤͿƤޤ ͱƤݡȤƤޤ3 ͱơ 2 ŪϿ޾ ؤ 2 ľͱƤݡȤƤޤ

:

     set view <rot_x>{,{<rot_z>}{,{<scale>}{,<scale_z>}}}
     set view map
     set view {no}equal {xy|xyz}
     show view

< rot_x> < rot_z> ϡ̤Ƥ벾Ū 3 ɸϤ ž (ñ̤) ǡǽ (ʤžԤʤ) οʿ x, οľ y, ̼Ȥ˿ľʼ z Ȥʤ Ƥޤǽ x μ < rot_x> žޤˡ z μ < rot_z> žޤ

ޥ set view map ϡϿޤȤɽΤ˻Ȥޤ (contour) 衢ӥ顼ɽ (pm3d) οϿޤ˻Ȥ ޤԤ˴ؤƤϡϥǡΥե륿Ѥ 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 ѹƤޤ

82.82.1 Equal_axes

ޥ set view equal xy x y ñ̤ĹŪ ʤ褦˽̼ܤ碌դڡٹ礦褦ˤν̼ܤ ޤޥ set view equal xyz ϡ z x y ˹ 褦ˤޤߤ z ϰϤ趭ϰϤ˹礦ݾڤϤ ޤ󡣥ǥեȤǤϡ3 ĤμΩͭΰ褦˿̤ ޤ

ʲ⻲: set xyplane (82.97)

82.83 Vrange

ޥ set urange set vrange ϡsplot ޲ѿ (ѥ᡼ ) ⡼ɤ x, y, z ͤ׻Τ˻Ȥ޲ѿϰϤꤷ ޤ ܺ٤ϡʲ: set xrange (82.95)

82.84 X2data

ޥ set x2data x2 () Υǡ () ޤܺ٤ϡʲ: set xdata (82.91)

82.85 X2dtics

ޥ set x2dtics x2 () ѹޤܺ٤ϡ ʲ: set xdtics (82.92)

82.86 X2label

ޥ set x2label x2 () θФꤷޤܺ٤ϡʲ: set xlabel (82.93)

82.87 X2mtics

ޥ set x2mtics ϡx2 () 1 ǯγƷꤷޤܺ٤ϡ ʲ: set xmtics (82.94)

82.88 X2range

ޥ set x2range x2 () ɽʿϰϤꤷޤ ܺ٤ϡʲ: set xrange (82.95)

82.89 X2tics

ޥ set x2tics x2 () ΡФդ Ԥʤޤܺ٤ϡʲ: set xtics (82.96)

82.90 X2zeroaxis

ޥ set x2zeroaxis ϡ̤ x2 () (y2 = 0) ܺ٤ϡʲ: set zeroaxis (82.119)

82.91 Xdata

Υޥɤ x Υǡǡ˥åȤޤƱͤΥ ɤ¾μ줾ѰդƤޤ

:

     set xdata {time}
     show xdata

ydata, zdata, x2data, y2data, cbdata ˤƱ񼰤ƤϤ ޤ

time ץϥǡǡǤ뤳Ȥޤץ Ĥʤ硢ǡ̾ΤΤޤ

gnuplot ˤɤΤ褦ǡɤߤޤ뤫ˤĤƤϡʲ:set timefmt (82.75)ǡϺλϤޤ (: ̩ˤ 2000 ǯ 1 1 λϤޤ) ÿѴޤֽ (timefmt) ϸߤϤ ĤȤޤ󡣤ϡƤǡܤν񼰤˰ ʤФʤʤȤ̣ޤޤϰϤλϡ꤬ ȲᤵΤ򤱤뤿ˡν񼰤˽äʸǰϤǻ ꤹ٤Ǥ

ߤθФ (label) ɽΤˤϴؿ 'strftime' (unix Ǥ Ĵ٤ˤ "man strftime" ȥפƤ) Ȥޤ set format x "string" ǡ10 ʿν񼰤ǤϤʤʤ (2 İʾ '%'ޤ %f Ǥ %g Ǥʤ) ͿƤʤС gnuplot ϤŬ˰̣Τ񼰤Ƿ׻ɽޤ

¾ξˤĤƤϡʲ: time/date (25)

82.92 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 (82.23)

82.93 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 (10)ǥեȤǤ 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 (24)

82.94 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 (82.23)

82.95 Xrange

ޥ set xrange ɽʿϰϤꤷޤ¾μ ˤƱͤΥޥɤ¸ߤޤ˺ɸǤư r, ޲ѿ t, u, v ˤ¸ߤޤ

:

     set xrange { [{{<min>}:{<max>}}] {{no}reverse} {{no}writeback} }
                | restore
     show xrange

< min> < max> ˤޤ '*' ǡ'*' ϼư̼ܵ ǽ̣ޤư̼ܵǽ˴ؤܺ٤ϲ˽Ҥ٤ޤǡξ 硢ϰϤ set timefmt ν񼰤˽äʸǰϤɬפ ޤά줿ͤѹޤ

yrange, zrange, x2range, y2range, cbrange, rrange, trange, urange, vrange Ʊ񼰤Ѥޤ

ץ reverse ϼդˤޤ㤨 set xrange [0:1] reverse ϡ1 0 Ǥ褦ʼˤޤ ϡ set xrange [1:0] ƱǤreverse ϼ˼ư ̼ (autoscale) Ѥ뤳ȤտޤƤޤ

ư̼ܵǽ: < 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:]

82.96 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>}" }
               { rangelimited }
               { textcolor <colorspec> }
     unset xtics
     show xtics

Ʊ񼰤 ytics, ztics, x2tics, y2tics, cbtics ˤŬѤ ޤ

axis border gnuplot (ιKȤȤθФ) 򡢤줾켴ˤĤΤˤĤΤؼޤˤ Ƥᤤ硢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 (10)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 (82.23)⤷ʸͿʤ СǥեȤοθФѤޤ

ŪʷǤ 3 ܤΥѥ᡼Ȥ "٥" (level) Ϳ뤳 ȤǤޤǥեȤΥ٥ 0 ạ̇̄ 뤬 1 ξ羮꤬ޤ٥ꤹϥ٥ɬ ꤹɬפޤ

:

     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, ...) ηͿ ȤǤޤ

82.96.1 Xtics time_data

ǡξ硢֤ͤ timefmt ν񼰤ˤä աޤϻǰϤͿʤФޤ< start> , < incr> , < end> Ȥ硢< start> < end> timefmt ˽äͿ ޤ< incr> ñ̤Ϳɬפޤλϼºݤˤ set format Ϳ񼰤˽äɽޤ

:

     set xdata time
     set timefmt "%d/%m"
     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"
     set xrange ["01/12":"06/12"]
     set xtics ("01/12", "" "03/12", "05/12")

ξȤ "Dec 1", "Dec 3", "Dec 5", ޤ2 ܤ "Dec 3" ϸФդޤ

82.96.2 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"

82.97 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 ticslevel ߴΤ˻Ĥ Ƥޤ

xy ʿ̤ z 'pos' ΰ֤֤ˤϡticslevel ͤ (pos - zmin) / (zmin - zmax) ȤƤΰ֤ z (zrange) ѹѤäƤޤޤ

⤦ĤηǤ set xyplane at < zvalue> ϡߤ z ϰϤ ˤ뤳Ȥʤꤷ z ͤΰ֤ xy ʿ̤ꤷޤäơ x,y,z ̤θ̤褦ˤˤϡset xyplane at 0 Ȥ Ȥˤʤޤ

ʲ⻲: set view (82.82), set zeroaxis (82.119)

82.98 Xzeroaxis

ޥ set xzeroaxis y = 0 ľޤܺ٤˴ؤƤϡʲ: set zeroaxis (82.119)

82.99 Y2data

ޥ set y2data y2 () Υǡ () ޤܺ٤ϡʲ: set xdata (82.91)

82.100 Y2dtics

ޥ set y2dtics y2 () ѹޤܺ٤ϡ ʲ: set xdtics (82.92)

82.101 Y2label

ޥ set y2label y2 () θФꤷޤܺ٤ϡʲ: set xlabel (82.93)

82.102 Y2mtics

ޥ set y2mtics y2 () 1 ǯγƷѹޤ ܺ٤ϡʲ: set xmtics (82.94)

82.103 Y2range

ޥ set y2range y2 () ɽľϰϤꤷޤ ܺ٤ϡʲ: set xrange (82.95)

82.104 Y2tics

ޥ set y2tics y2 () ΡФդ Ԥʤޤܺ٤ϡʲ: set xtics (82.96)

82.105 Y2zeroaxis

ޥ set y2zeroaxis ϡ̤ y2 () (x2 = 0) ܺ٤ϡʲ: set zeroaxis (82.119)

82.106 Ydata

ޥ set ydata y Υǡ () ꤷޤ ʲ: set xdata (82.91)

82.107 Ydtics

ޥ set ydtics y ѹޤܺ٤ϡʲ: set xdtics (82.92)

82.108 Ylabel

Υޥɤ y θФꤷޤʲ: set xlabel (82.93)

82.109 Ymtics

ޥ set ymtics ϡy ѹޤܺ٤ϡʲ: set xmtics (82.94)

82.110 Yrange

ޥ set yrange ϡy οľϰϤꤷޤܺ٤ϡʲ: set xrange (82.95)

82.111 Ytics

ޥ set ytics y (Фդ) 椷ޤ ܺ٤ϡʲ: set xtics (82.96)

82.112 Yzeroaxis

ޥ set yzeroaxis x = 0 ľ (y ) 񤭤ޤܺ٤ϡʲ: set zeroaxis (82.119)

82.113 Zdata

ޥ set zdata z Υǡ () ꤷޤ ʲ: set xdata (82.91)

82.114 Zdtics

ޥ set zdtics z ѹޤܺ٤ϡʲ: set xdtics (82.92)

82.115 Zzeroaxis

ޥ set zzeroaxis (x=0,y=0) ̤ľޤϡ2D 衢 set view map Ǥ splot ǤϸϤޤ󡣾ܺ٤ϡ ʲ: set zeroaxis (82.119), set xyplane (82.97)

82.116 Cbdata

Υޥɤϥ顼ܥåΥǡ () ˼ꤷ ޤʲ: set xdata (82.91)

82.117 Cbdtics

ޥ cbdtics ϥ顼ܥåιߤѴޤ ܺ٤ϡʲ: set xdtics (82.92)

82.118 Zero

zero ͤϡ0.0 ˶ᤤǥեȤͤɽޤ

:

     set zero <expression>
     show zero

gnuplot ϡ(ʣǿͤˤƤ) ͤεʬ ͤ zero ͤ礭 (Ĥޤ¿Ǥʤͤ) ϡ 褷ޤ󡣤ͤ gnuplot ¾͡ʬˤƤ (ޤ) ͸ͤȤƤȤƤޤǥեȤ zero ͤ 1e-8 Ǥ1e-3 (= ŵŪʥӥåȥޥåץǥץ쥤β٤εտ) 礭 zero ͤꤹ٤ǤϤʤǤ礦zero 0.0 ꤹΤϰ̣ΤʤȤǤϤޤ

82.119 Zeroaxis

x set xzeroaxis ˤä졢unset xzeroaxis ˤäƺ ޤƱͤ y, x2, y2, z ѤΥޥɤƱͤƯ򤷤ޤ

:

     set {x|x2|y|y2|z}zeroaxis { {linestyle | ls <line_style>}
                                | { linetype | lt <line_type>}
                                  { linewidth | lw <line_width>}}
     unset {x|x2|y|y2|z}zeroaxis
     show {x|y|z}zeroaxis

ǥեȤǤϡΥץϥդˤʤäƤޤ򤵤줿 0 μ < line_type> η< line_width> (߻ѤƤ ϷݡȤƤ) ǡ뤤Ϥ餫줿 < line_style> Υޤ

ηꤷʤС̾μη ( 0) ޤ

set zeroaxis set xzeroaxis; set yzeroaxis ƱǤz ϡ set zzeroaxis ȤäΩꤹɬפ뤳ȤդƤ

:

y=0 μ򸫤褦˴ñ˽񤯾:


      set xzeroaxis

ˤơäޤѥˤ:


      set xzeroaxis linetype 3 linewidth 2.5

82.120 Zlabel

Υޥɤ z θФꤷޤʲ: set xlabel (82.93)

82.121 Zmtics

ޥ set zmtics z ѹޤܺ٤ϡʲ: set xmtics (82.94)

82.122 Zrange

ޥ set zrange z ɽϰϤꤷޤΥ ޥɤ splot ˤΤͭǡplot Ǥ̵뤵ޤܺ٤ϡʲ: set xrange (82.95)

82.123 Ztics

ޥ set ztics z (Фդ) 椷ޤ ܺ٤ϡʲ: set xtics (82.96)

82.124 Cblabel

Υޥɤϥ顼ܥåθФꤷޤʲ:set xlabel (82.93)

82.125 Cbmtics

ޥ set cbmtics ϥ顼ܥåθФѴ ޤܺ٤ϡʲ: set xmtics (82.94)

82.126 Cbrange

ޥ set cbrange ϡ with pm3d, with image with palette ʤɤˤäƸߤΥѥå (palette) Ȥäƿդ ͤϰϤꤷޤϰϳͤФƤϡǤᤤ³ͤ Ѥޤ

顼ܥå (cb-) splot Ǽư̼ܤƤϡ 顼ܥåϰϤ zrange Ȥޤsplot ... pm3d| palette 褵ϡۤʤ zrange cbrange ȤȤǥե륿 󥰤Ǥޤ

set cbrange ν񼰤˴ؤܺ٤ϡʲ: set xrange (82.95)ʲ⻲:set palette (82.54), set colorbox (82.12)

82.127 Cbtics

ޥ set cbtics ϥ顼ܥå (Фդ) 椷ޤܺ٤ϡʲ: set xtics (82.96)

83 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"

84 Splot

splot 3 ΤΥޥɤǤ (¸ΤǤ礦 ºݤˤϤ 2 ؤμͱ)ϴؿޤϥե뤫ɤ߹ ǡ plot ޥɤȤȤƤɤˡǤޤ splot ϡ줾ñ x, y, z 󶡤ǡplot Ѱդ Ƥ 2 x2, y2 Τ褦ʤΤϤޤ

2 3 ξǻȤ¿ΥץˤĤƤϡʲ:plot (72)

:

     splot {<ranges>}
           {<iteration>}
           <function> | "<datafile>" {datafile-modifiers}}
           {<title-spec>} {with <style>}
           {, {definitions{,}} <function> ...}

ǡؿ < function> ޤϥȤǤ줿ǡե̾ ɤ餫ɬפǤؿϡܤο뤤޲ѿ⡼ɤǤ 3 ĤοȤǤ

ǥեȤǤϡsplot 褵ǡβ˴ xy ̤ޤ z ΰֲ xy ʿ̤ΰִط set xyplane ѹǤޤ splot μͱƤθ set view Ǥޤܺ٤ϡʲ:set view (82.82), set xyplane (82.97)

splot ޥɤϰϤλν񼰤 plot ξƱǤ޲ѿ ⡼ɤǤʤϰϤ xrange, yrange, zrange νǤꡢ޲ ⡼ɤǤ urange, vrange, xrange, yrange, zrange νǤ

title ץ plot ƱǤwith plot ȤۤƱ Ǥsplot ǤѲǽ襹 lines, points, linespoints, dots, impulses ˸¤Ƥޤplot ǻȤ 顼Сεǽ splot ˤϤޤ

datafile ץˤϤ˰㤤ޤ

ʲ⻲: show plot (82.52)

84.1 ǡե (datafile)

plot Ʊ褦ˡsplot ǥե뤫饰դǤޤ

:

     splot '<file_name>' {binary <binary list>}
                         {{nonuniform} matrix}
                         {index <index list>}
                         {every <every list>}
                         {using <using list>}

"" "-" Ȥä̤ʥե̾ plot Ʊͤ˵ޤʲ: special-filenames (72.3.6)

ûˤȡbinary matrix ϤΥǡ̤ʷǤ뤳Ȥ index ¿ťǡե뤫ɤΥǡ褹뤫 every ϳƥǡ礫ɤΥǡ (ʬ) 褹뤫 using ϳƥǡԤɤΤ褦֤ꤷޤ

index every ץ plot ξƱ褦˿񤤤ޤ usingusing ΥꥹȤ 2 ĤǤʤ 3 ɬפǤȤȤ ƤƱͤǤ

thru smooth Ȥä plot Υץ 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 (84.2)

3 splot ǡˤƤϡ޲ѿ⡼ (parametric) 뤳ȤϤϤפǤ

84.1.1 Matrix

gnuplot ϡmatrix () Υǡ2 ĤΰۤʤDz᤹뤳 ȤǤޤ 1 Ĥϡx, y κɸͤǤȲꤷơͤ ΰͤʳʻҤ matrix Τ줾Ǥ˳ƤˡǤϡ ASCII ǡФƤϥǥեȤǤХʥǡФƤϤ Ϥޤ ͤ matrix ǡ褹륳ޥɤ:
    splot 'file' matrix using 1:2:3          # ASCII ǡ
    splot 'file' binary general using 1:2:3  # Хʥǡ

ͤʳʻҤ matrix ǡǤϡƥ֥å z ͤϰԤǰ٤ɤ ޤʤ

   z11 z12 z13 z14 ...
   z21 z22 z23 z24 ...
   z31 z32 z33 z34 ...

ASCII ϤǤϡԤ䥳ȹԤǡλʶ̤ (mesh) 򳫻ϤޤĤΤȤǤsplot ޥ index ץȤäƥե֤ͳǤޤ 2 ܤηϡͤʳʻҤǡx, y ɸƤȲꤹ ǡϥǡκǽιԤ y ɸǽ x ɸȤߤʤޤ ХʥǡФƤϡ1 ܤκǽǤϡǡǤʤФ ޤ (ASCII ǡǤϤο̵뤵ޤ)ɸȥǡͤϡ ХʥǡǤñưͤȤߤʤޤ ͤ matrix ǡ褹륳ޥɤ:

    splot 'file' nonuniform matrix using 1:2:3  # ASCII ǡ
    splot 'file' binary matrix using 1:2:3      # Хʥǡ

äơͤ matrix ǡι¤ϰʲΤ褦ˤʤޤ:


     <N+1>  <y0>   <y1>   <y2>  ...  <yN>
      <x0> <z0,0> <z0,1> <z0,2> ... <z0,N>
      <x1> <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 ̾ˡλĤԤޤ

٥ȥΥ֥롼 (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 ŬѤ 뤳ȤŪ˹ԤǤޤ

- ASCII ǡեμγ:

   splot `a.dat` matrix using (1+$1):(1+$2*10):3

- ASCII ǡե 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 (72.2.1))

84.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 ϸġΥǡ֥åο ȤɬפȤƤǤƳΤѤ ̤ܤϡбŪǷ֤ᡢ·γʻҥǡФ ̤ؤαƶͽۤǤޤ󡣤ϥХθǥ Ȥ٤Ǥ礦

84.2 ʻҾǡ (grid data)

3 ΤΥ롼ϡġܤγʻҤˤƤϰĤɸ ĤΥǡ롢ȤγʻҾǡѤ߷פƤޤƥ ϡؿͤɾ뤳 (ʲ: set isosamples (82.29))ޤ ǡեɤ߹ळ (ʲ: splot datafile (84.1)) ˤä ޤ"Ω" ȤդϴؿФƤ⡢ǡФƤ⤽ ܤɽΤȤѤޤܤϡɬ x, y ˴ؤĹ ǤʤƤ褯u,v ޲ѿɽƤ⹽ʤȤդƲ ʲ: set isosamples (82.29)

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

84.3 Splot ζ (splot surfaces)

splot νޤȤơ뤤ϡ֤Ȥˤäƶ ɽ뤳ȤǤޤplot Ʊͤˡϥǡե뤫ɤ ȤǤޤꤵ줿֤Ǵؿͤɾ뤳ȤǤޤ ʲ: set isosamples (82.29)̤ϡʬǷ֤ȤǶŪ˺ ޤʲ: set surface (82.67)Ƥξ̤ϡset hidden3d ƩˤǤޤ3 ̤įϡset view ѹǤ ޤ

ˡʻҾΥǡФƤϡsplot Ʊ⤵֤ 뤳ȤǤ (ʲ: set contour (82.14))Ƥ ȤǤޤˡηˤϿľʬ餫Ȥ ȤǤޤ (ʲ: set cntrparam (82.11))ؿϡ set isosamples set samples ǷꤵʻҾǡȤɾޤ Υǡϡdata-file ˽񤫤Ƥ褦ʳʻҾǡե åȤˤ뤫뤤ϳʻҥǡ (ʲ: set dgrid3d (82.18)) ȤȤ򤷤ʤФϤʤޤ

϶̤ξɽ뤳ȤǤޤ̤˼ͱƤ뤳ȤǤ ̤ؤμͱƤϡե˽񤭽ФȤǤƤ plot ǺƤɤ߹ plot Τ궯ǽϤȤǤޤ

85 Stats (ñ׾)

:
    stats 'filename' [using N[:M]] [name 'prefix'] [[no]output]]

Υޥɤϡե 1 󡢤ޤ 2 Υǡδñ׾ 󶡤ޤusing Ҥϡplot ޥɤƱDzᤵޤ index, every, using ˴ؤܺ٤ˤĤƤϰʲ: plot (72) ǡϡβϤ xrange, yrange ˽äƥե륿ˤ ʲ: set xrange (82.95)ξϥǥեȤǤϥ꡼˽Ϥ ޤޥ set print ˻ȤȤǽϤե˥ 쥯Ȥꡢץ nooutput ȤȤǽϤʤ褦ˤ뤳 ȤǤޤ

̽Ϥ˲ägnuplot ϸġ׾ 3 Ĥѿ롼פ¸ ޤ 1 ܤѿ롼פϡɤʥǡ¤Ǥ뤫򼨤ޤ:

    STATS_records           # ϰΥǡԤ
    STATS_outofrange        # ϰϳȤƽ줿Կ
    STATS_invalid           # ̵/Դ/»ǡԤ
    STATS_blank             # Ԥ
    STATS_blocks            # ե index ǡ֥å

2 ܤѿ롼פϡ1 ĤΡϰΥǡ򼨤ޤ 뼴 (1 ܤˤ x ɲä 2 ܤˤ y ) ư̼ ξϡϰϤ¤Ϥޤ2 Ĥ 1 stats ޥɤ Ϥϡѿ̾ˤ "_x", "_y" Ȥɲäޤ STATS_mix_x ϡ1 ܤΥǡκǾͤǡSTATS_min_y 2 ܤΥǡκǾ̣ͤޤ

    STATS_min               # ϰΥǡκǾ
    STATS_max               # ϰΥǡκ
    STATS_index_min         # data[i] == STATS_min Ȥʤź i
    STATS_index_max         # data[i] == STATS_max Ȥʤź i
    STATS_lo_quartile       #  () ʬ̶
    STATS_median            # ᥸ (ʬ̶)
    STATS_up_quartile       # 軰 () ʬ̶
    STATS_mean              # ϰΥǡʿ
    STATS_stddev            # ϰΥǡɸк
    STATS_sum               # 
    STATS_sumsq             # ʿ

3 ܤѿ롼פϡ2 ĤΥǡβѤǤ

    STATS_correlation       # x  y ط
    STATS_slope             # ľ y = Ax + B η A
    STATS_intercept         # ľ y = Ax + B η B
    STATS_sumxy             #  (x*y )
    STATS_pos_min_y         # y κǾͤͿ x ɸ
    STATS_pos_max_y         # y κͤͿ x ɸ

Ʊ 2 İʾΥե뤫׾ȤȤǤǤ礦顢ѿΥǥեȤƬǤ "STATS" 򥪥ץ name ǥ桼ꤹʸ֤뤳ȤǤ褦ˤʤäƤޤ㤨 Сۤʤ 2 ĤΥեΤ줾 2 ܤΥǡʿͤϰʲΤ褦ˤӤǤޤ:

    stats "file1.dat" using 2 name "A"
    stats "file2.dat" using 2 name "B"
    if (A_mean < B_mean) {...}

STATS_index_xxx Ǽźͤϡplot ޥɤ 0 ($0) ͤбǽź 0Ǹź N-1 Ȥʤޤ

᥸Ȼʬ̶ͤõݤϥǡͤ򥽡Ȥ N ξϡ (N+1)/2 ܤͤ᥸ͤȤN ξϡ N/2 ܤ (N+2)/2 ܤͤʿͤ᥸ͤȤޤʬ̶ Ʊͤ˽ޤ

θĤ뤿˥ޥ stats ѤˤĤ ϡʲ򻲾ȤƤ

stats.dem

ߤμǤϡX Y ΰпξϲϤǤޤ󡣤 ¤ϺΥСǤϲäǤ礦

86 System

system "command" ϡɸŪʥȤä "command" ¹Ԥޤ ʲ: shell (83)ؿȤƸƤФ줿硢system("command") Ϸ ȤɸϤήʸʸͤȤ֤ޤɲä ʸ̵뤵ޤ

ϡgnuplot ץ˳ؿΤ˻Ȥޤ:


     f(x) = real(system(sprintf("somecommand %f", x)))

87 Test

ΥޥɤϡϷѥåȤǤɤΤ褦ʽϤԤʤ뤫 ƥȤɽޤ

:

     test {terminal | palette [rgb|rbg|grb|gbr|brg|bgr]}

test ޤ test terminal ϡ߻νϷ (terminal) ȤμࡢμࡢޤͭѤʤѲǽʤ¾ ޤ

test palette ϡR(z),G(z),B(z) (0< =z< =1) ξ֤褷ޤ ϸߤΥ顼ѥå (palette) RGB ʬ򼨤ޤޤRGB Ĵ˼ NTSC ѤƷ׻줿٤褷ޤɲ Υѥ᡼ϡr,g,b ʸȹ礻ǡˤ褹֤ꤵ ޤ

88 Undefine

1 ġޤʣѤߤΥ桼ѿޤϡƥ Ȥޤ褦ʥץȤξ֤ꥻåȤΤǤ礦

ѿ̾ˤϡǸʸȤƥ磻ɥʸ * ȤȤǤ 磻ɥʸĤȡʬǻϤޤ뤹٤Ƥ ޤϡ̤ƬȤäƤʣѿ Ǥ礦磻ɥʸѿ̾κǸˤȤʤ ȤդƤundefine ˥磻ɥʸΤߤȤ Ϳϲ⤷ޤ

:


     undefine foo foo1 foo2
     if (!exists("foo")) load "initialize.gp"


     bar = 1; bar1 = 2; bar2 = 3
     undefine bar*                 # 3 Ĥѿ

89 Unset

ޥ set ꤷץϡб unset ޥ ˤäƤΥǥեȤ᤹ͤȤǽǤunset ޥɤˤϷ ֤ѤǤޤʲ: iteration (68)

:

     set xtics mirror rotate by -45 0,10,100
     ...
     unset xtics


     # ֹ 100  200 ޤǤΥ٥ unset
     unset for [i=100:200] label i

89.1 Terminal

ץκǽͭˤʤǥեȤνϷϡġΥƥĶ gnuplot Υѥ륪ץ󡢤ӴĶѿ GNUTERM ˰¸ޤ ΥǥեȤǤäƤ⡢gnuplot Ϥѿ GNUTERM ¸ Ƥޤޥ unset terminal ϡνͤޤ ϡset terminal GNUTERM Ȥ뤳ȤƱǤ

90 Update

ΥޥɤƤϤ (fit) Υѥ᡼θߤͤ򡢽ͤΥե η (fit ιƤ)Ϳ줿ե˽񤭽Ф ޤϡߤͤ򡢸ǻȤˡ뤤Ͻλ/ǤƤ Ƽ¹Ԥ뤿¸ƤΤͭѤǤ

:

     update <filename> {<filename>}

2 ܤΥե̾ꤹȡΥѥ᡼եѹ 2 ܤΥե˹줿ͤ񤭽Фޤ

ǤʤСꤷե뤬¸ߤ gnuplot ϤΥե ̾ .old Ĥƥե̾ѹꤷե̾Υե ˳ľޤĤޤꡢ"update 'fred'" Ȥȡ "!rename fred fred.old; update 'fred.old' 'fred'" ȤȤƱ Ȥˤʤޤ["filename.ext" 12 ʸȤʤ MS-DOS ¾Υ ƥǤϡ"ext" "old" ˤʤä "filename" ϺǽΥե˴ط (¿ʬɤ줫ʬǤ礦) ȤޤVMS Ǥϡ ΥСƥबȤ뤿ᡢ̾ѹϹԤʤޤ ]

ܤ˴ؤƤϡʲ: fit (64)

91 While

:
     while (<expr>) {
         <commands>
     }

ϡޥɤΥ֥å< expr> 0 Ǥʤͤɾ֡ ֤¹ԤޤΥޥɤϡŤ (äʤ) if/else ʸ Ȱ˻ȤȤϤǤޤ󡣰ʲ: if (67)

4 Ϸ (Terminal)

92 Ϸΰ

gnuplot ϤȤƤ¿νϷ򥵥ݡȤƤޤϡŬڤ Ϸɬפʤ鵡ǽѹɲåץĤ򤹤뤳 ˤꤵޤʲ: set terminal (82.69)

ʸϡʤΥƥǽꤪӥ󥹥ȡ뤬ʤʤ äѤǤʤϷˤĤƤ⵭ҤƤ뤫Τޤ 󥹥ȡ뤵줿ġ gnuplot ǡɤνϷͭʤΤΰ ˤϡץ򲿤Ĥ 'set terminal' ǤäƤ

(: ܸ˴ޤޤ terminal Υޥ˥奢ϡΰˤϤ ϷΤΤޤޤƤ뤫⤷ޤ󤷡դˤΰνϷ ǥޥ˥奢뤬ʤΤ⤢뤫⤷ޤ)

92.1 Aed767

ϥɥ饤 aed512 aed767 AED եåü򥵥ݡȤ ޤ 2 ĤΥɥ饤ФϡʿϰϤΤߤäƤơ줾 512 ԥ 767 ԥǤľϤ 575 ԥǤ Υɥ饤ФˤϥץϤޤ

92.2 Aifm

: ٤νϷ Adobe Illustrator 3.0+ ѡAdobe Illustrator ϥ٥ 1 PostScriptեľǧΤǡ set terminal post level1 Ȥ٤Ǥ礦

:

     set terminal aifm {color|monochrome} {"<fontname>"} {<fontsize>}

92.3 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 (12)) 򡢽Ťͽ񤭰ʳϥݡȤƤޤեȤλѤϥ ͭʥեȤ¤Ƥޤʸ󥳡ǥ󥰤ϡ set encoding Ǥޤߤ iso_latin_1, iso_latin_2, cp1250 UTF8 (default) 򥵥ݡȤƤޤ

ϡ (ǥեȤϼ) Τ줫Ǥδֳ֤ Ψ < dashlength> (> 0) ѹǤޤ

92.4 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 ¹ԻˤѹǤޤ

92.4.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 ̤ΥȾʬȤޤ

92.4.2 ץ (monochrome_options)

ǥץ쥤ФƤ gnuplot 迧 (foreground) طʿ (background) Ϳޤ󡣥ǥեȤǤطʤϹǤ-rv gnuplot*reverseVideo: on ξˤطʤˤʤޤ

92.4.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

92.4.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

92.4.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

92.5 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} {solid|dashed}
                    {{no}transparent} {{no}crop} {background <rgbcolor>}
                    {font <font>} {fontscale <scale>}
                    {linewidth <lw>} {rounded|butt} {dashlength <dl>}
                    {size <XX>{unit},<YY>{unit}}

cairolatex Ϸϡepscairo Ϸ (termnal epscairo) pdfcairo Ϸ (terminal pdfcairo) ƱΥդϤޤ ƥʸϥդΤǤϤʤLaTeX ϤޤʲǿʤץˤĤƤϡʲ: pdfcairo (92.47)

eps pdf ϡսϤη򤷤ޤlatex/dvips Ѥˤ eps pdflatex Ѥˤ pdf ѤƤ

blacktext ϡ顼⡼ɤǤ⤹٤Ƥʸǽ񤯤褦ˤޤ

cairolatex ϥɥ饤Фϡʸΰ֤̤ˡ󶡤ޤ: (a) '{' ǻϤޤ뤹٤Ƥʸϡ'}' ⤽ʸκǸɬפǤ ʸΤ LaTeX DzˤĤˤ⥻󥿥󥰤ޤ (b) '[' ǻϤޤʸϡμ˰ֻʸ (t,b,l,r,c Τ 2 Ĥ )']{'оʸ󡢤³Ǹ '}' Ĥޤʸϡ LaTeX LR-box ȤƽǤΤʤʤǤ⹽ޤ󡣰ֹ碌 ˹Ԥˤϡ \ rule{}{} ͭѤǤ礦ʲ⻲: pslatex (92.52) ʣԤϤ٥硢 \ 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 Ȥäƾ񤭤뤳ȤǤޤ

92.6 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}
                         {solid | dashed {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")

92.7 Cgi

cgi hcgi ϥɥ饤Ф SCO CGI ɥ饤Ф򥵥ݡȤޤhcgi ϥץѤǡĶѿ CGIPRNT ꤵƤɬפޤcgi ϥǥץ쥤ޤϥϡɥԡ˻Ȥޤ: Ķѿ CGIDISP ޤ å CGIPRNT Ĵ٤ޤνϥɥ饤Фˤϥץ Ϥޤ

92.8 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    # ݤʤɾäƤޤ !

92.8.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 ޥɤǤϿեȤƳ뤳ȤϤǤޤ

92.8.2 CGM Υեȥ (fontsize)

եȤϡڡ 6 ǤȲꤷƿ̤ޤsize ޥɤǥڡνIJ椬ѹƤꡢCGM ե뤬ۤʤ Ƥ硢̤ȤƥեȤΥ礵줿̾줿 뤳ȤˤʤޤꤵƤѹˤϡwidth ץ ѤƤ

92.8.3 Cgm linewidth

linewidth ץݥñ (pt) ꤷޤǥե Ȥ 1 pt Ǥfontsize width ץΤȤ Ƥ褦ˡڡμºݤˤäƤν̼ܤϱƶޤ

92.8.4 Cgm rotate

norotate ץϥƥȤβž򤷤ʤ褦ˤޤ㤨 Word for Windows 6.0c Ѥ CGM ϥե륿ϲž줿ʸդޤ Word ° DRAW ǥϤդ뤳ȤǤ դԽ (㤨ж˸ФĤ)Ƥβž줿ʸ ʿˤʤä¸ƤޤY θФϥåפ붭 ۤƤޤǤ礦norotate ץȤСɤɤʤ ꤫ Y θФϤޤäƤޤޤԽˤäƥ᡼ 뤳ȤϤʤʤޤrotate ץϥǥեȤεưݾڤ ޤ

92.8.5 Cgm solid

solid ץ襹̵Τ˻Ȥޤ ϡ顼ͭǤ硢ޤˤ뤳Ȥǥդˤ ͭѤǤ礦dashed ץϥǥեȤεưݾڤ ξġ˰ۤʤΥѥͿޤ

92.8.6 CGM Υ (size)

CGM դΥǥեȤΥϡ֤ (landscape) Ǥ 32599, 23457֤ (portrait) Ǥ 23457, 32599 Ǥ

92.8.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 

92.8.8 Cgm nofontlist

ǥեȤΥեȥꥹ (font table) WebCGM Ǵ𤵤Ƥե ȤޤǤơ Microsoft Office Corel Draw CGM (Computer Graphics Metafile) ϥե륿Ŭ礷Ƥޤ¾Υץꥱ ϰۤʤեȡ뤤ϰۤʤե̾Ѥ뤫Τޤ󤬡 ϥޥ˥奢ˤϽ񤫤ƤʤΤޤ󡣥ץ nofontlist (winword6 Ʊ̣) Ѥ CGM ե뤫ե ȥꥹȤޤξ硢ɤ߹ץꥱϥǥե ȤΥեȥꥹȤѤǤ礦gnuplot ϤξǤե Τ˼ʬΥǥեȤΥեȥꥹȤѤޤäơ 'Helvetica' 1 ֤ˤʤꡢ줬ʤλѤ륢ץꥱΥ եȥեȥꥹȤκǽΤΤˤʤޤ'Helvetica Bold' եȥꥹȤ 2 ܤΥեȤб¾ƱͤȤʤޤ

92.9 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]'

92.9.1 Requirements

ConTeXt Ѥ gnuplot ⥸塼:

http://ctan.org/pkg/context-gnuplot

ȡǿ ConTeXt ɬפǤ gnuplot ƤӽФˤϡwrite18 ǽˤɬפޤ ۤȤɤ TeX ʪǤϡ texmf.cnf shell_escape=t Ȥ뤳 ȤǤޤ

νϷȤܤإפ˴ؤƤϰʲ⻲ȤƤ:

http://wiki.contextgarden.net/Gnuplot

92.9.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 ¹Ԥη̤βʸ˼ߤޤ

92.10 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 Ǥ

92.11 Debug

Υɥ饤Ф gnuplot ΥǥХåΤ󶡤ƤΤǤ 餯ɤ桼ΤߤѤΤǤ礦

92.12 Dumb

ü (dumb) ɥ饤ФϡASCII ʸѤƥƥΰ褷 ޤλȲѤΥץ󤬤ޤ

:

     set terminal dumb {size <xchars>,<ychars>} {[no]feed}
                       {[no]enhanced}

< xchars> , < ychars> ϥƥΰΥꤷǥեȤ 79 x 24 ȤʤäƤޤǸβԤϡfeed ץꤵƤΤ Ϥޤ

:

     set term dumb size 60,15
     plot [-5:6.5] sin(x) with impulse


          1 +-------------------------------------------------+
        0.8 +|||++                   ++||||++   sin(x) +----+ |
        0.6 +|||||+                 ++|||||||+                |
        0.4 +||||||+               ++|||||||||+               |
        0.2 +|||||||+             ++|||||||||||+             +|
          0 ++++++++++++++++++++++++++++++++++++++++++++++++++|
       -0.2 +        +|||||||||||+              +|||||||||||+ |
       -0.4 +         +|||||||||+                +|||||||||+  |
       -0.6 +          +|||||||+                  +|||||||+   |
       -0.8 +   +       ++||||+   +       +        ++||||+  + |
         -1 +---+--------+--------+-------+--------+--------+-+
               -4       -2        0       2        4        6

92.13 Dxf

dxf ɥ饤ФϡAutoCad (꡼ 10.x) ˼ळȤǤ ޤΥɥ饤мȤˤϥץϤޤ󤬡˴ؤ Ĥħ¾ˡѹǤޤǥեȤ礭 AutoCad ñ̤Ǥ 120x80 ǡ set size ѹǤޤdxf 7 (֡С忧ġֻ) Ȥޤѹˤϥɥ Хեɬפޤν֤Ȥ硢 οΰ㤤ɽޤܺ٤ AutoCad ΰ/ץ ϥޥɤ˴ؤ뵭Ҥ򻲾ȤƤ

92.14 Dxy800a

Υɥ饤Ф Roland DXY800A ץå򥵥ݡȤޤץϤ ޤ

92.15 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}}'

92.16 Emf

emf ɥ饤Ф EMF (Enhanced Metafile Format) եޤ ηΥե¿ MS-Windows ץꥱǧǤޤ

:

     set terminal emf {color | monochrome} {solid | dashed}
                      {enhanced {noproportional}}
                      {rounded | butt}
                      {linewidth <LW>} {dashlength <DL>}
                      {size XX,YY} {background <rgb_color>}
                      {font "<fontname>{,<fontsize>}"}
                      {fontscale <scale>}

monochorome ⡼ɤޤΥѥ۴ĤǤФޤ color ⡼ɤޤ򤤤ĤοǤФ٤Ƥ 8 ĤΥǥե ȿȤĤˤΤѥѲޤ solid Ƥǽ񤭡ΥѥɤĤ֤ޤ linewidth < factor> Ƥ򤳤ǻꤹܤˤޤ dashlength < factor> ϡˤǤ礦 < fontname> ϥե̾ < fontsize> ϥݥñ̤ǤΥեȤ礭Ǥ

ϲηŪ (̾Ф) ϡǥեȤǤŬñ̤Ǥ 1024x768 ˤʤäƤޤץ size Ȥä̤ʷŪʥ Ǥޤ

ĥʸ⡼ (enhanced text mode) ϡץݡʥʸֳ 褦ȤޤΥڡեȤȤ硢뤤Ϥζ 򹥤ޤʤ硢ץ noproportional ȤȤǤ򥪥 ˤǤޤ

ǥեȤϡcolor solid font "Arial,12" size 1024,768 ǡ default 򤹤ƤΥץ󤬤ΥǥեȤͤˤʤޤ

:

     set terminal emf 'Times Roman Italic, 12'
     set terminal emf dashed    # ʤʬϤ٤ƼǤ

92.17 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 ȤʤäƤޤ

92.18 Epscairo

Ϸ epscairo ϡcairo, pango 饤֥Ѥ EPS (Encapsulated PostScript) ޤcairo version 1.6 ʹߤɬפǤ

ܺ٤ϡpdfcairo ϷΥإפ򻲾ȤƤ

92.19 Epslatex

epslatex ɥ饤Ф LaTeX ǽ٤Ϥޤ

:

     set terminal epslatex   {default}
     set terminal epslatex   {standalone | input}
                             {oldstyle | newstyle}
                             {level1 | leveldefault}
                             {color | colour | monochrome}
                             {background <rgbcolor> | nobackground}
                             {solid | dashed}
                             {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 (92.51.3)Ƥλؼ˽äƤ

ץ color ϥ顼ͭˤmonochrome ϳǤ 褷ޤˡmonochrome ϳ palette Ѥޤ ϡŪ colorspec ǻꤵ줿ʤοѹޤ

solid ƤΥդΥѥǾ񤭤ޤ 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 ᤹Ȥϸʤä˷ٹʸ֤ޤ

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 (92.52) ˴ؤ ʣԤθФˤ \ 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 Ȥäƾ񤭤뤳ȤǤޤ

92.20 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 Ǥ

92.21 Excl

excl ɥ饤Ф EXCL 졼ץ󥿡 1590 Τ褦 Talaris ץ 󥿤򥵥ݡȤޤץϤޤ

92.22 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 (72.11)

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

92.23 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

92.24 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 (7), set size (82.65) 轪λü;ϡץ crop ǼȤǤη ̤ȤƤβϾʤޤǥեȤ nocrop Ǥ

92.24.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 (15)ϥ֥եȤʤΤǡĥʸ ⡼ɤѤǤޤ


     set term gif animate transparent opt delay 10 size 200,200
     load "animate2.dem"

ϡ˥᡼ GIF եκѤ gif Ϸ򳫤ޤ ˥᡼θġΥե졼ϡɸǥե뽸ˤ륹ץ ե animate2.dem ˤäޤ

92.25 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 ιοޤޤ

ʲΥޥɤǤƱȤǤޤ


     set terminal gpic x y

㤨аʲΤ褦˻Ȥޤ


     .PS 6.0
     copy "trig.pic"
     .PE

92.26 Grass

grass ɥ饤Ф GRASS 󥷥ƥΥ桼 gnuplot Ѥ 뤳ȤǽˤޤܤˤĤƤ grassp-list@moon.cecer.army.mil ϢäƤڡ GRASS եɥθߤΥե졼 ˽񤫤ޤץϤޤ

92.27 Hp2623a

hp2623a ɥ饤Фϥҥ塼åȥѥå (Hewlett Packard) HP2623A 򥵥ݡȤޤץϤޤ

92.28 Hp2648

hp2648 ɥ饤Фϥҥ塼åȥѥå (Hewlett Packard) HP2647 HP2648 򥵥ݡȤޤץϤޤ

92.29 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 ǰ̤ϤʤǤ٤Ǥ 饹饤ϤΥɬפȤޤ

92.30 Hpgl

hpgl ɥ饤Ф HP7475A ץåΤ褦Ѥ HPGL ϤԤʤ 2 Ĥǽʥץޤ: ϥڥο eject ץǡ"eject" ˥ץå˥ڡӽФ褦ؼ ǥեȤǤ 6 ĤΥڥȤΥڡӽФϹԤʤޤ

Ūʸå ISO-8859-1 CP850 set encoding iso_8859_1 set encoding cp850 ǧ뤳ȤǤޤ (ܺ٤ϡʲ:set encoding (82.20))

:

     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 եå¿ΥեȥѥåǼळȤǽ

92.31 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 ϲäƥ顼 ̤⥵ݡȤƤޤ

92.32 Hppj

hppj ɥ饤Ф HP PaintJet HP3630 ץ󥿤򥵥ݡȤޤ ϥեȤ򤹤ΤΤߤǤ

:

     set terminal hppj {FNT5X9 | FNT9X17 | FNT13X25}

֥ե (FNT9X17) ǥեȤǤ

92.33 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) ֤ޤ

92.34 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 (7), set size (82.65) 轪λü;ϡץ crop ǼȤǤη ̤ȤƤβϾʤޤǥեȤ nocrop Ǥ

92.35 Kyo

kyo prescribe Υɥ饤Ф Kyocera () 졼ץ󥿤 ݡȤޤξԤͣΰ㤤ϡkyo "Helvetica" Ȥ Ф prescribe "Courier" ȤȤǤץϤ ޤ

92.36 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}}'

92.37 Linux

linux ɥ饤Фˤϻꤹ륪ץϲ⤢ޤ󡣤ϥǥե ȤΥ⡼Ѥ˴Ķѿ GSVGAMODE 򻲾Ȥޤ⤷줬ꤵƤ ʤ 1024x768x256 ǥեȤȤƻѤޤ줬Ǥʤ 640x480x16 (ɸ VGA) Ȥޤ

92.38 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' ϡץȤ켫Ȥˡ ץѤΥץ˴ؤɲäΥإפɽޤ

92.38.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' ʤɤ̤ʸ뤳ȤǤ ޤ

92.39 Macintosh

:
    set terminal macintosh {singlewin | multiwin} {vertical | novertical}
                           {size <width>, <height> | default}

'singlewin' ñ쥦ɥؤ¤Ǥꡢ˥᡼ѤͭѤǤ 'multiwin' ʣΥɥȤ褦ˤʤޤ 'vertical' gx ץθǤΤͭǤΥץǤϲž ʸľ˽񤭤ޤnovertical ϤΥץ̵ˤ ޤ size < width> , < height> preferences dialog ꤵ줿ե 񤭴'set term mac size default' 'set term mac default' ꤵޤǤͤݻޤ

'set term mac size default' ϥɥ preferences dialog ꤷΤˤޤ

'set term mac default' ƤΥץǥեȤͤꤷޤ ǥեͤ nogx, multiwin, novertical Ǥ

multiwin ץθǥդθ singlewin ˥å 硢 plot ޥɤǤϹ˰ĥɥ졢ο ɥǤ singlewin ͭʴֻѤޤ multiwin ꡢ ĤΥդޤƤ singlewin ˥åȡ⤷ 'singlewin' ɥޤƤФ줬Ȥ졢Ǥʤ п 'singlewin' ɥޤ'singlewin' ɥ ֹդϤޤ

92.40 Mf

mf ɥ饤Ф METAFONT ץؤϥեޤä οޤ TeX ʸǤʸƱ褦˻ȤȤǤޤ

ʸǿޤȤˤϡgnuplot νϤեϤȤ METAFONT ץ¹Ԥɬפޤäơ桼ϥեȤ ץȿäեȤɥȤ˼िδμ ɬפȤʤޤѤ륵Ȥ METAFONT ץबŬڤ ꤵƤСиΤʤ桼Ǥ⤽ʤϤǤǤ礦

ʸ METAFONT ʸåȤ˴ŤƥݡȤޤ Ǥ Computer Modern Roman եȥåȤϤǤ桼ɬפ եȤ򲿤Ǥ⼫ͳ֤ȤǤޤեȤ METAFONT ե뤬Ȥ֤ˤʤäƤɬפޤġ ʸ METAFONT ̡Υԥ㡼ѿ¸졢ʸɬפˤʤ Ȥˤѿ (ž) ޤϡMETAFONT ץबפ֤Ǥ׻ (Ĥޤ PC) Ǥϡԥ 㡼ѿ򤿤Ѥ뤳ȤǡȤ̤θ³ Ȥ⤢ޤ

mf ɥ饤ФˤϥץϤޤ

92.40.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 ޥɤȤʤǤ

92.41 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

92.42 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 󥿥ץ꥿äƤ⡢ ʸϽϤʤǤ礦

92.42.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 ѿꤹ뤳Ȥ˺ʤǤ

92.43 Next

next ɥ饤ФˤΤΤĤΥץ󤬤ޤ

:

     set terminal next {<mode>} {<type> } {<color>} {<dashed>}
                {"<fontname>"} {<fontsize>} title {"<newtitle>"}

< mode> default Τ߻ǤξƤΥץ󤬥ǥե ˤʤޤ< type> new old ǡold ϸŤñ쥦ɥ ׵ᤷޤ< color> color (顼) monochrome () < dashed> solid (Τ) dashed (ͭ)"< fontname> " ͭ PostScript եȤ̾< fontsize> PostScript ݥ ñ̤ǤΥեȤΥ< title> GnuTerm ɥΥȥ 򤽤줾ꤷޤǥեȤ new, monochrome, dashed, "Helvetica", 14pt Ǥ

:

     set term next default
     set term next 22
     set term next color "Times-Roman" 14
     set term next color "Helvetica" 12 title "MyPlot"
     set term next old

set linestyle ѹǤޤ

92.44 Openstep (next)

openstep (next) ɥ饤ФˤΤΤĤΥץ󤬤ޤ

:

     set terminal openstep {<mode>} {<type> } {<color>} {<dashed>}
                {"<fontname>"} {<fontsize>} title {"<newtitle>"}

< mode> default Τ߻ǤξƤΥץ󤬥ǥե ˤʤޤ< type> new old ǡold ϸŤñ쥦ɥ ׵ᤷޤ< color> color (顼) monochrome () < dashed> solid (Τ) dashed (ͭ)"< fontname> " ͭ PostScript եȤ̾< fontsize> PostScript ݥ ñ̤ǤΥեȤΥ< title> GnuTerm ɥΥȥ 򤽤줾ꤷޤǥեȤ new, monochrome, dashed, "Helvetica", 14pt Ǥ

:

     set term openstep default
     set term openstep 22
     set term openstep color "Times-Roman" 14
     set term openstep color "Helvetica" 12 title "MyPlot"
     set term openstep old

set linestyle ѹǤޤ

92.45 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 

92.46 Pdf

Υɥ饤Ф Adobe PDF (Portable Document Format) Ϥ Acrobat Reader Τ褦ʥġɽǤޤ

:

     set terminal pdf {monochrome|color|colour}
                      {{no}enhanced}
                      {fname "<font>"} {fsize <fontsize>}
                      {font "<fontname>{,<fontsize>}"} {fontscale <scale>}
                      {linewidth <lw>} {rounded|butt}
                      {solid|dashed} {dl <dashlength>}}
                      {size <XX>{unit},<YY>{unit}}

ǥեȤǤϡġФưۤʤ뿧Ѥޤmonochrome 򤹤ƤޤΤǡ̤뤿 dashed ȤɤǤ礦Υ⡼ɤǤɤĤ֤ΰ饤󥹥 Ū˿Ѥ뤳ȤǤޤ

< font> ϥǥեȤǻȤե̾ (ǥեȤǤ Helvetica) < fontsize> ϥݥñ̤ǤΥեȥ (ǥեȤǤ 12) Ǥ ɤΤ褦ʥեȤȤơեȤ򥤥󥹥ȡ뤹ˤϡȤ äȤ˴ؤƤϡ˥󥹥ȡ뤵Ƥ pdflib Υɥ Ȥ򻲾ȤƤ

ץ enhanced ϡĥʸǽ (դʸդʸ ʣΥեȤ) ͭˤޤʲ: enhanced (12)

ˤƤ linewidth ǻꤹ < n> ä뤳 ȤǤޤƱͤˡdashlength ϥǥեȤζʬФ ѰҤǤ

rounded ϡüܹݤǥեȤ butt äü ĥäܹѤޤ

PDF ϤΥǥեȤΥϡ5inch x 3inch Ǥץ size ϡ桼λꤹΤѹޤǥեȤ X, Y ñ̤ϥǤ¾ñ̤ѲǽǤ (ߤ cm Τ)

92.47 Pdfcairo

Ϸ pdfcairo ϡPDF Ϥޤºݤϡ2D å饤֥Ǥ cairo ȡʸ֤ȥѤΥ饤 pango ͳƹԤޤ

:

       set term pdfcairo
                    {{no}enhanced} {mono|color} {solid|dashed}
                    {background <rgbcolor>
                    {font <font>} {fontscale <scale>}
                    {linewidth <lw>} {rounded|butt} {dashlength <dl>}
                    {size <XX>{unit},<YY>{unit}}

νϷϡĥʸ⡼ (enhanced text mode) 򥵥ݡȤ ƤơեȤ񼰥ޥ (ադʤ) ٥¾ʸ ळȤǤޤĥʸ⡼ɤν񼰤¾ gnuplot ν Ϸȶ̤Ǥܺ٤ϡʲ: enhanced (12)

ˤƤϡlinewidth ǻꤹ < lw> ѹǤ ޤǥեȤ 0.25 ݥȤǤ(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 (82.20)

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') ɤΤ򤱤ޤ

92.48 Pm

pm ɥ饤Фϡդ褵 OS/2 ץ쥼ơޥ͡ ɥ󶡤ޤΥɥϺǽΥդ褵줿Ȥ ޤΥɥϰåץܡɤؤΥԡĤ 俧ĴΤεǽƤ켫ȤΥ饤إפäƤ ޤmultiplot ץ⥵ݡȤƤޤ

:

     set terminal pm {server {n}} {persist} {widelines} {enhanced} {"title"}

persist ꤹȡƥդϤ줾켫ȤΥɥ ٤ƤΥɥ gnuplot λⳫޤޤˤʤޤ server ꤹȡƤΥդƱɥ˸졢 gnuplot λⳫޤޤˤʤޤΥץϡɲä ꡢοϥХץΥ󥹥󥹤ˤʤޤä ƱʣΥХɥȤȤǤޤ

widelines ꤹȡƤΥդιޤ enhanced ꤹȡդʸ䲼դʸʣΥեȤȤ ȤǤޤ (ܺ٤ϡʲ: enhanced text (12)) PostScript ȤΥե̾ 1 ʸ˾άǤޤ (T/H/C/S Ϥ줾 Times/Helvetica/Courier/Symbol ̣ޤ)

title ꤹȡ襦ɥΥȥȤƻȤޤ ϥХ󥹥̾ȤƤȤ졢ɲäο񤭤 ޤ

set linestyle ѹǤޤ

92.49 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 (82.66.4)طʤƩϡֹդ TrueColor ǽǤ

butt ʬǡüǤΤϤߤ򵯤ʤ᥽å Ȥ褦ɥ饤Ф˻ؼޤϡ 1 礭 ΤͭǤϡʿľξͭѤǤ礦 ǥեȤ rounded (ݤ) Ǥ

եȤξܺ٤ϡʣǤ ʲƱ̣Ĵñ򼨤ޤ:

    set term png font arial 11
    set term png font "arial,11"

ܤˤĤƤϡfonts βγ륻򻲾ȤƤ

< x,y> ϥԥñ̤ͿޤǥեȤ 640x480 ʲ⻲: canvas (7), set size (82.65) 轪λü;ϡץ crop ǼȤǤη ̤ȤƤβϾʤޤǥեȤ nocrop Ǥ

92.49.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 (15)


     set terminal png transparent truecolor enhanced

ϡ24 ӥå/ԥοѤطʤƩޤ ɽʸȤ enhanced text ⡼ɤѤޤ

92.50 Pngcairo

Ϸ pngcairo ϡPNG Ϥޤºݤϡ2D å饤֥Ǥ cairo ȡʸ֤ȥѤΥ饤 pango ͳƹԤޤ

:

       set term pngcairo
                    {{no}enhanced} {mono|color} {solid|dashed}
                    {{no}transparent} {{no}crop} {background <rgbcolor>
                    {font <font>} {fontscale <scale>}
                    {linewidth <lw>} {rounded|butt} {dashlength <dl>}
                    {size <XX>{unit},<YY>{unit}}

νϷϡĥʸ⡼ (enhanced text mode) 򥵥ݡȤ ƤơեȤ񼰥ޥ (ադʤ) ٥¾ʸ ळȤǤޤĥʸ⡼ɤν񼰤¾ gnuplot ν Ϸȶ̤Ǥܺ٤ϡʲ: enhanced (12)

ˤƤϡ < 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 (82.20)

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') ɤΤ򤱤ޤ

92.51 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}
                             {color | colour | monochrome}
                             {background <rgbcolor> | nobackground}
                             {solid | dashed}
                             {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 (92.51.3)Ƥλؼ˽äƤ

landscape portrait ϽϤ֤֤򤷤ޤ eps ⡼ɤ EPS (Encapsulated PostScript) Ϥޤ ̾ PostScript ˡ¾¿ΥץꥱǼळ Ǥ褦ˤĤιԤɲäΤǤ (ɲäԤ PostScript ΥȹԤʤΤǡäƤ켫ȤȰǤޤ)EPS Ϥ ˤ eps ⡼ɤѤ1 ĤΥեˤ 1 ĤΥդΤߡ Ƥeps ⡼ɤǤϥեȤޤƥΤǥեȤ 礭Ⱦʬ˽̤ޤ

enhanced ϳĥʸ⡼ (դʸդʸʣ ΥեȤ) εǽͭˤޤܺ٤ϡʲ: enhanced (12) blacktext ϡȤ顼⡼ɤǤƤʸǽ񤭤ޤ

PostScript ξ̰̿ (duplex) ϡץ󥿤 1 λξ̰ 뤳Ȥǽˤޤdefaultplex ϥץ󥿤ΥǥեȤ simplex ϻ̤Τ߰duplex ξ̰Ԥʤޤ ( ʤΥץ󥿤Ԥʤʤʤ̵뤵ޤ)

"< fontname> " ͭ PostScript եȤ̾ǡ< fontsize> PostScript ݥñ̤ǤΥեȤ礭Ǥ ɸŪ postscript եȰʳˡɽΤ obliqueSymbol ե ("Symbol-Oblique") Ƥޤ

default ƤΥץʲΥǥեȤͤꤷޤ:landscape, monochrome, dashed, dl 1.0, lw 1.0, defaultplex,noenhanced, "Helvetica", 14ptPostScript ΥդΥǥեȤ礭 ϡ10 7 ι⤵Ǥ ץ color ϥ顼ͭˤmonochrome ϳǤ 褷ޤˡmonochrome ϳ palette Ѥޤ ϡŪ colorspec ǻꤵ줿ʤοѹޤ

solid ƤΥդΥѥǾ񤭤ޤ 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 ᤹Ȥϸʤä˷ٹʸ֤ޤ

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 (92.51.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 (92.51.1)

92.51.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" ˽Ҥ٤Ƥޤ

92.51.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 (82.22)

ޤ줿եȥեȤˤϡե̾ (̾ե̾Ʊ ǤϤޤ) ꤹɬפޤå⡼ɤ 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 ϡŷդ˥١饤 ޤ)

92.51.3 PostScript prologue ե

PostScript ϥե %%Prolog ޤߤޤ㤨ʸ 󥳡ǥ󥰤ʤɤޤɲå桼ޤफ⤷ޤ 󡣤Υϡgnuplot μ¹ԥե˥ѥ뤵 롢뤤ϤʤΥԥ塼̤ΤȤ¸Ƥ PostScript prologue ե뷲饳ԡޤΥե뤬 ǥեȤΥǥ쥯ȥϡgnuplot Υ󥹥ȡꤵ ΥǥեȤ gnuplot ޥɤ set psdir ȤĶ GNUPLOT_PS_DIR 뤳ȤѹǤޤʲ: set psdir (82.59)

92.51.4 Postscript adobeglyphnames

ϡUTF-8 󥳡ǥ󥰤Ǥ PostScript ϤˤΤߴطޤ ϡ0x00FF 礭 Unicode ȥݥ (Ĥޤ Latin1 Τ٤) ʸ򵭽ҤΤ˻Ȥ̾椷ޤ̤ˡ unicode ʸϰդ̾ unicode ֹ椷ޤ 󡣤Adobe ϡϰϤʸ (ĥƥʸꥷʸ) ̾Ƥ侩§äƤޤեȤˤäƤϤε§ ѤƤΤޤǤʤΤ⤢ޤgnuplot ϥǥե ȤǤ Adobe ̾Ѥޤ㤨СꥷʸξʸΥ ե /alpha Ȥʤޤnoadobeglyphnames ꤷ硢ʸ Ф gnuplot /uni03B1 ȤȤޤ ǤʤäȤСϤʸեˤˤ 餺줬ĤʤǤAdobe եȤФƤϡǥե ȤȤΤ⤷ޤ󤬡¾ΥեȤǤξ ƤߤʤȤʤ⤷ޤ󡣰ʲ⻲: fontfile (92.51.2)

92.52 Pslatex and pstex

pslatex ɥ饤Ф LaTeX ǸϤpstex ɥ饤 Ф TeX ǸϤޤpslatex dvips xdvi ǧǽ \ special ̿Ѥޤpstex ޤϡǤ plain-TeX ١ TeX (LaTeX ⤽Ǥ) ǼळȤǤޤ

:

     set terminal [pslatex | pstex] {default}
     set terminal [pslatex | pstex]
                             {rotate | norotate}
                             {oldstyle | newstyle}
                             {auxfile | noauxfile}
                             {level1 | leveldefault}
                             {color | colour | monochrome}
                             {background <rgbcolor> | nobackground}
                             {solid | dashed}
                             {dashlength | dl <DL>}
                             {linewidth | lw <LW>}
                             {rounded | butt}
                             {clip | noclip}
                             {palfuncparam <samples>{,<maxdeviation>}}
                             {size <XX>{unit},<YY>{unit}}
                             {<font_size>}

ʲΤ褦ʥ顼åФ:

     "Can't find PostScript prologue file ... "

ʲ: postscript prologue (92.51.3)Ƥλؼ˽äƤ

ץ color ϥ顼ͭˤmonochrome ϳǤ 褷ޤˡmonochrome ϳ palette Ѥޤ ϡŪ colorspec ǻꤵ줿ʤοѹޤ

solid ƤΥդΥѥǾ񤭤ޤ 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 ᤹Ȥϸʤä˷ٹʸ֤ޤ

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 ѹ줺˻ĤäƤޤ꡼ɸºݤθ³бƤޤǤ

rotate ꤵ y θФžޤ < font_size> ϴ˾եȤ (ݥñ̤Ǥ) 礭Ǥ

auxfile ꤵȡɥ饤Ф PostScript ޥɤLaTeX ե ľܽϤˡե˽񤭽Ф褦ˤʤޤ ϡdvips 򰷤ʤ餤礭դǤͭѤǤ PostScript ե̾ϡset output ޥɤͿ TeX ̾ƳΤǡϤκǸ .tex ʬ (ºݤ ե̾κǸγĥҤʬ) .ps ֤ΡޤϡTeX ե˳ĥҤʤʤ .ps Ǹդ­Τˤʤޤ .ps ե \ special{psfile=...} Ȥ̿ .tex ե ޤޤmultiplot ⡼ɰʳǤϡԤʤˤνϥե򥯥Τ˺ʤǤ

version 4.2 gnuplot ps(la)tex ϷǤ 5 x 3 ϤǤߤǤ 5 x 3.5 ˤʤäƤޤ postscript eps Ϸ˹碌ѹǤäơʸϡ epslatex Ϸϥեȥ 50% ȸʤޤߤ 60% ɾƤޤη᤹ˤϡץ oldstyle ꤷƤ

pslatex ɥ饤Фʸ֤̤ˡ󶡤ޤ: (a) '{' ǻϤޤʸϡ'}' Ĥɬפޤʸ LaTeX ˤäƿʿˤľˤ⥻󥿥󥰤ޤ (b) '[' ǻϤޤʸξϡ֤λ򤹤ʸ (t,b,l,r Τ 2 Ĥޤ) ³ ']{'ʸΡǺǸ '}' Ȥޤ ʸ LaTeX LR-box Ȥޤ \ rule{}{} ȤФ ֹ碌ǽǤ礦

˵ҤƤʤץ Postscript terminal ΤΤƱ Τǡ餬ԤʤΤΤꤿФ򻲾ȤƤ

:

     set term pslatex monochrome dashed rotate       # ǥեȤ

PostScript ޥɤ "foo.ps" ˽񤭽Ф:
     set term pslatex auxfile
     set output "foo.tex"; plot ...; set output

Фΰֹ碌˴ؤ: 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}}'

set style line ѹǤޤ

92.53 Pstricks

pstricks ɥ饤Ф LaTeX "pstricks.sty" ޥѥåȶ˻ 뤳ȤտޤƤޤ eepic latex ɥ饤Ф ΰĤǤ"pstricks.sty" ɬפǤ PostScript ᤹ץ󥿡ޤ Ghostscript Τ褦ѴեȤɬפǤ

PSTricks anonymous ftp Princeton.EDU /pub ǥ쥯ȥ꤫ ǤޤΥɥ饤ФϡPSTricks ѥåƤǽϤȤ ʤɤȤͤƤϤޤ

:

     set terminal pstricks {hacktext | nohacktext} {unit | nounit}

ǽΥץϡޤǤϤʤˡǿΤɤϤ Τǡ2 ܤΥץϥդ򿭽̤ݤˤɬפǤǥե ȤǤ hacktext nounit Ǥ

92.54 Qms

qms ɥ饤Ф QMS/QUIC 졼ץ󥿡Talaris 1200¾򥵥 ȤޤץϤޤ

92.55 Qt

qt ϷϡQt 饤֥Ѥ̥ɥؤνϤޤ

:

       set term qt {<n>}
                   {size <width>,<height>}
                   {{no}enhanced}
                   {font <font>}
                   {title "title"}
                   {{no}persist}
                   {{no}raise}
                   {{no}ctrl}
                   {close}
                   {widget <id>}

ʣ襦ɥ⥵ݡȤƤơset terminal qt < n> Ȥ ֹ n 襦ɥؽϤޤ

ǥեȤΥɥȥϡΥɥֹ˴ŤƤޤ Υȥϥ "title" ǤǤޤ

襦ɥϡgnuplot νϷ̤ʤΤѹǤⳫ ޤ޻Ĥޤ襦ɥϡΥɥϥեä ֤ʸ 'q' ǤĤɥޥ͡˥塼 close 򤹤뤫ޤ set term qt < n> close Ȥ뤳ȤĤ뤳ȤǤ ޤ

ΰΥϥԥñ̤ͿޤǥեȤ 640x480 Ǥ ˲äơɥμºݤΥˤϡġС䥹ơС ѤΥڡɲäޤ ɥΥѹȡ襰դ⥦ɥο Ԥä礦褦ˤ˿̤ޤqt Ϸϥեȡ Τ򿭽̤ޤΤΥڥϰݤޤ θ replot ȥפ뤫ߥʥġС replot 򥯥å뤫 plot ޥɤϤȡο ǤϴˤΥɥ˹碌ޤեȥϤ ΥǥեȤ˥ꥻåȤޤ

ߤ襦ɥ (set term qt < n> 򤵤줿) ÷ǡ εưϡ¾νϷȶ̤Ǥܺ٤ϡʲ: mouse (82.40)ˤ ɲäΥ⤤ĤĤƤޤϤ켫ΤŪʤ ˤʤäƤϤǤ

νϷϡĥʸ⡼ (enhanced text mode) 򥵥ݡȤ ƤơեȤ񼰥ޥ (ադʤ) ٥¾ʸ ळȤǤޤĥʸ⡼ɤν񼰤ϡgnuplot ¾ν Ϸȶ̤Ǥܺ٤ϡʲ: enhanced (12)

< font> "FontFace,FontSize" ηǡFontFace FontSize Ȥ ޤʬΥưĤʸȤƽ񤭤ޤFontFace ϡ'Arial' Τ ̾Υե̾ǤFontFace Ϳʤϡqt Ϸ 'Sans' ѤޤFontSize ϥݥñ̤ΥեȥǤ FontSize Ϳʤϡqt Ϸ 9 ݥȤѤޤ

   :
     set term qt font "Arial,12"
     set term qt font "Arial" # ե̾Τѹ
     set term qt font ",12" # եȥΤѹ
     set term qt font "" # ե̾եȥꥻå

Qt Υ®٤ϡѤ󥰥⡼ɤˤä礭Ѥ ޤQt С 4.7 ʹߤǤϡϴĶѿ QT_GRAPHICSSYSTEM Ǥ褦ˤʤäƤޤꤹ륪ץϡ®٤ ˡ"native", "raster", "opengl" ȤʤäƤޤ Qt ǤǤϡνϷǤϥǥեȤ "raster" ˤޤ

ǽʸ¤ǤɤϤ뤿ˡΥ󥰤ϥꥢ Сץ󥰡ҥ󥰤 3 ĤεäƤޤ Сץ󥰤ϡꥢȤǥԥ⾮ Ǥ٤󶡤gnuplot ɸľ񤱤褦ˤʤޤ ϡгľ (㤨 'plot x') ɤΤ򤱤ޤ ҥƥ󥰤ϡСץ󥰤ˤäưʿľ ʬΤܤ򤱤ޤνϷϡľɸ· ˤꡢ1 ԥľ 1 (1 Ĥ¿⾯ʤ ʤ) Υԥ褷ޤ

ǥեȤǤϡ褬Ԥ줿Ȥ˥ɥϥǥȥåפΰ־ () ɽޤϡ "raise" Ǥޤ  "persist" ϡ٤Ƥ襦ɥŪĤʤ ϡgnuplot λʤ褦ˤޤ ǸˡǥեȤǤ < space> gnuplot 󥽡륦ɥ ˾夲'q' 襦ɥĤޤ "ctrl" ϡ ΥƤ򡢤줾 < ctrl> +< space> < ctrl> +'q' ѹޤ

ץΥѥ򤷤ˡgnuplot γɥ饤 gnuplot_qt 󥹥ȡ뤵ޤĶѿ GNUPLOT_DRIVER_DIR ʾꤹ뤳Ȥ֤ѹ뤳ȤǤޤ

92.56 Regis

regis ɥ饤Ф REGIS եåǤνϤޤΥ 饤ФˤϿ 4 Ȥ (ǥե) 16 ȤΥץ󤬤

:

     set terminal regis {4 | 16}

92.57 Sun

sun ɥ饤Ф SunView ɥƥ򥵥ݡȤƤޤ Ϥޤ

92.58 Svg

Υɥ饤Ф W3C SVG (Scalable Vector Graphics) եޥåȤ ޤ

:

     set terminal svg {size <x>,<y> {|fixed|dynamic}}
                      {{no}enhanced}
                      {fname "<font>"} {fsize <fontsize>}
                      {mouse} {standalone | jsdir <dirname>}
                      {name <plotname>}
                      {font "<fontname>{,<fontsize>}"}
                      {fontfile <filename>}
                      {rounded|butt} {solid|dashed} {linewidth <lw>}
                      {background <rgb_color>}

< x> < y> SVG դΥǤdynamic svg ӥ塼Υꥵfixed Х׵ᤷޤ (ǥե)

linewidth < w> ϿޤǻѤƤ < w> ä ޤ

< font> ϥǥեȤȤƻȤե̾ (ǥեȤǤ Arial) < fontsize> ϥݥñ̤ǤΥեȥ (ǥեȤ 12) Ǥ svg ӥ塼諒եȤϡΥեɽκݤˤ̤ѥեȤȤ ȤˤʤǤ礦

svg Ϸϳĥʸǽ (enhanced) 򥵥ݡȤƤޤ ϡեȻ¾ν̿٥¾ʸळȤ ǽˤޤĥʸ⡼ɤν񼰻¾νϷξƱ ܺ٤ϡʲ: enhanced (12)

ץ mouse ϡޥȥå󥰵ǽȡб key ǥ å뤳ȤǤ줾Υդ On/Off ˤ뵡ǽ򥵥ݡȤ ä뤳Ȥ gnuplot ˻ؼޤǥեȤǤϥǥ쥯ȥꡢ ̾ /usr/local/share/gnuplot/< version> /js Τ륹ץȤؤ 󥯤ळȤǹԤޤץ jsdir ̤Υǥ 쥯ȥ꤫̾ URL ꤹ뤳ȤǤѹǤޤSVG Web ڡΤǤС̤ϸԤ URL ꤷޤ ץ standalone ϡޥץ SVG ʸΤ ߡ꥽ؤΥ󥯤ϹԤޤ

SVG ե򲿤γեȤ߹碌Ѥ硢㤨Ф 줬 PNG ˻äƤꡢ Web ڡ䤽줬Ǥ ʸ javascriptɤ黲ȤƤ褦ʾ硢¾ SVG ؤλȤȤξͤ򤱤뤿˰Ū̾ɬפˤʤޤξ ץ name ȤäƸͭ̾ݤƤ

SVG ǤϡSVG ʸ˥եȤľळȤǤޤʥ ȤؤΥϥѡ󥯤Ϳ뤳ȤǤޤfontfile ץ ˤϡ̤ȤƽϤ SVG ե < defs> ˥ ե̾ꤷޤΥեϡ켫Ȥե ȤޤǤ뤫ޤϴԤեȤ򻲾Ȥϥѡ󥯤 뤿ιԤޤΤΤɤ餫Ǥgnuplot ϡĶѿ GNUPLOT_FONTPATH Υǥ쥯ȥꥹȤ׵ᤵ줿եõޤ : TrueType PostScript եȤǤϤʤ svg եȤɬ ޤ

92.59 Svga

svga ɥ饤Ф SVGA եå PC 򥵥ݡȤޤ DJGPP ǥѥ뤵줿Τ߻ȤȤǤޤץϥե Ȥ˴ؤΤΤߤǤ

:

     set terminal svga {"<fontname>"}

92.60 Tek40

Υɥ饤з VT-饤üΤĤ򥵥ݡȤޤtek40xx Tektronix 4010 Ȥ¾ۤȤɤ TEK ߥ졼򥵥ݡȤޤ vttek VT-饤 tek40xx üߥ졼򥵥ݡȤޤ ʲΤΤϡgnuplot Υѥ򤵤줿ΤΤߤѤǤޤ:kc-tek40xx ϥ顼 MS-DOS Kermit Tek4010 ߥʥ륨ߥ졼km-tek40xx ϤǤ򥵥ݡȤޤ selanar Selanar եåü򥵥ݡȤޤ bitgraph BBN Bitgraph ü򥵥ݡȤޤ ⥪ץϤޤ

92.61 Tek410x

tek410x ɥ饤Ф Tektronix 410x, 420x եߥ꡼򥵥ݡȤƤ ץϤޤ

92.62 Texdraw

texdraw ɥ饤Ф LaTeX texdraw Ķ򥵥ݡȤޤ texdraw ѥå "texdraw.sty" "texdraw.tex" ȶ˻Ѥ뤳Ȥ Ƥޤ

ǡ (point) ϡLaTeX Υޥ " \ Diamond", " \ Box" ʤɤ ȤäޤΥޥɤϸߤ LaTeX2e Υˤ¸ߤ latexsym ѥå˴ޤޤƤޤΥѥåۤΰ ꡢä¿ LaTeX ΥƥΰˤʤäƤޤΥѥå ȤȤ˺ʤǤ

ץϤޤ

92.63 Tgif

Tgif X11 ١ΥɥġǤ -- GIF ˴ؤƲ 櫓ǤϤޤ

tgif ɥ饤Фʣ礭 (set pointsize )ʣθФ Υեȡեȥ (㤨 set label "Hallo" at x,y font "Helvetica,34") 1 ڡʣΥ򥵥ݡȤޤ Ψѹޤ

:

     set terminal tgif {portrait | landscape | default} {<[x,y]>}
                       {monochrome | color}
                       {{linewidth | lw} <LW>}
                       {solid | dashed}
                       {font "<fontname>{,<fontsize>}"}

< [x,y]> ˤϤΥڡ x y Υդοꤷ color ϥ顼ǽͭˤlinewidth Ƥ < LW> ܤ "< fontname> " ˤͭ PostScript ե̾< fontsize> Ϥ PostScript եȤ礭ꤷޤdefaults ƤΥץ ͤǥեȤͤ˥åȤޤǥեȤ portrait, [1,1], color, linewidth 1.0, dashed, "Helvetica,18" Ǥ

solid ץϡԽˤǤ褦ˡ顼Ǥ ̻Ȥޤϡɥԡˤʤ뤳Ȥ¿Τǡξ dashed 򤹤٤Ǥ礦

¿ (multiplot) 2 ˡǼƤޤ

ΰĤϡɸŪ gnuplot ¿ΤǤ:


     set terminal tgif
     set output "file.obj"
     set multiplot
     set origin x01,y01
     set size  xs,ys
     plot ...
          ...
     set origin x02,y02
     plot ...
     unset multiplot

ܤˤĤƤϡʲ: set multiplot (82.41)

⤦Ĥˡϥɥ饤Ф [x,y] ץǤˡĹϡ (origin) 礭 (size) 򤷤ʤƤƤΥդưŪ˽ ܤ֤뤳ȤǤդ x/y ϡ 3/2 (ޤ set size ꤵ줿) ݻޤ

ξ¿μ򤵤줿硢ɸŪʤ򤵤졢 Υåɽޤ

ñ (ޤɸŪ¿) :

     set terminal tgif                  # ǥե
     set terminal tgif "Times-Roman,24"
     set terminal tgif landscape
     set terminal tgif landscape solid

ɥ饤Фλ¿λȤߤѤ:

     set terminal tgif portrait [2,4]  # ֡x- 2 ġy-
                                       #  4 ĤΥ
     set terminal tgif [1,2]           # ֡x- 1 ġy-
                                       #  2 ĤΥ
     set terminal tgif landscape [3,3] # ֡ξ 3 ĤΥ
                                       # 

92.64 Tikz

Υɥ饤ФϡTeX Υեåޥ TikZ ѥåȤȤ˻ Ϥޤߤϡ lua script ˤäƼƤơ set term tikz set term lua tikz ξάǤܺ٤ϰʲ:term lua (92.38)ϷΥץɽˤϡset term tikz help ѤƤ

92.65 Tkcanvas

Υɥ饤Ф Tcl/Tk ١ (ǥե)ޤ Perl ١ Tk canvas widget ޥɤޤȤˤϡ"term.h" ΤΥ 饤ФбԤΥȵ򳰤ŬʹԤ񤭲ä gnuplot make ľơʲΤ褦˼¹Ԥޤ


gnuplot> set term tkcanvas {perltk} {interactive}
gnuplot> set output 'plot.file'

"wish" ưǡʲ Tcl/Tk ޥ¹ԤƤ:


% source plot.file
% canvas .c
% pack .c
% gnuplot .c

Perl/Tk ξϰʲΤ褦ˤƤΥץȤޤ:


use Tk;
my $top = MainWindow->new;
my $c = $top->Canvas->pack;
my $gnuplot = do "plot.pl";
$gnuplot->($c);
MainLoop;

gnuplot ˤä줿ɤ "gnuplot" ȸƤФ³ꡢ Ϥΰ canvas ̾Ȥޤμ³ƤФȡ canvas 򥯥ꥢcanvas Υ򸫤Ĥټޤ褦˥ դ񤭤ޤ

2 (plot) Ǥ 2 Ĥμ³ɲäޤ: "gnuplot_plotarea" ϰϤζޤꥹ "xleft, xright, ytop, ybot" canvas ꡼ɸ֤2 ĤФμɸǤϰ "x1min, x1max, y1min, y1max, x2min, x2max, y2min, y2max" ϼ³ "gnuplot_axisranges" Ƥ٤ޤ"interactive" ץ ꤹȡcanvas ʬǥޥ򥯥åȤʬκɸ ɸϤ˽Ϥ褦ˤʤޤˡ"user_gnuplot_coordinates" Ȥ³뤳Ȥǡ뿷ư򵯤Ȥǽ Ǥμ³ˤϰʲΰϤޤ: "win id x1s y1s x2s y2sx1e y1e x2e y2e x1m y1m x2m y2m"ϡcanvas ̾ʬ id2 ĤκɸϤǤΤʬγκɸλκɸκɸǤκɸпФƤΤͿޤ

tkcanvas θߤǤǤ multiplot replot ⥵ݡȤƤޤ

92.66 Tpic

tpic ɥ饤Ф tpic \ special Ǥ LaTeX picture Ķ򥵥ݡ Ȥޤ latex eepic ɥ饤Ф̤Ǥ 礭 (pointsize) (linewidth)δֳ (interval) ˴ؤ륪ץ󤬤ޤ

:

     set terminal tpic <pointsize> <linewidth> <interval>

pointsize linewidth ǥߥꥤñ̡interval ϼ¿ ñ̤ϥǤǤʤͤꤹȥǥեȤͤȤޤ եȤǤ pointsize = 40, linewidth = 6, interval = 0.1 Ǥ

LaTeX ˴ؤƤΥɥ饤Фʸ֤̤ˡ󶡤 : '{' ǻϤޤʸϡ'}' Ĥɬפޤʸ LaTeX ˤäƿʿˤľˤ⥻󥿥󥰤ޤ'[' Ϥޤʸξϡ֤λ򤹤ʸ (t,b,l,r Τ 2 Ĥޤ) ³ ']{'ʸΡǺǸ '}' Ȥޤʸ LaTeX LR-box Ȥޤ \ rule{}{} ȤФɤֹ ǽǤ礦

: Фΰֹ碌˴ؤ: 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}}'

92.67 Vgagl

ɥ饤 vgagl ϥޥ pm3d ˥ݡȤlinux ι® 󥽡ɥ饤ФǤǥեȥ⡼ɤˤ Ķѿ SVGALIB_DEFAULT_MODE 򻲾ȤޤꤵƤʤ 256 ⡼ ɤͭʲ٤ΤǤ⤤Τ򤷤ޤ

:

  set terminal vgagl \
               background [red] [[green] [blue]] \
               [uniform | interpolate] \
               [mode]

顼⡼ɤ mode ץͿ뤳ȤǤޤG1024x768x256 褦ʵŪ̾ΤͿ뤳ȤǤޤץ background [0, 255] ϰϤ 1 ġޤ 3 ĤȤޤ 1 Ĥ Ϥطʤγͤȸʤ졢3 ĤȤξϤб طʤ˼ޤ ߤ¾Ūʥץ interpolate uniform ϡѷɤ ֤κݤ˿֤Ԥɤ (ǥեȤǤ ON) 椷ޤ

٥⡼ɤˤϡ¿ʬ libvga ե (̾ /etc/vga/libvga.conf) ɬפǤ礦VESA fb ȤΤ ɤǤϥͥΥѥ뤬ɬפǤ

vgagl ɥ饤ФϡʲΥꥹȤΤ *ͭ* vga ⡼ɤκǽΤΤѤޤ

- vgagl Ϳ⡼ɡ㤨 `set term vgagl G1024x768x256`
  Ϻǽ G1024x768x256 ⡼ɤͭɤåޤ
- Ķѿ SVGALIB_DEFAULT_MODE
- G1024x768x256
- G800x600x256
- G640x480x256
- G320x200x256
- G1280x1024x256
- G1152x864x256
- G1360x768x256
- G1600x1200x256

92.68 VWS

VWS ɥ饤Ф VAX ɥƥ򥵥ݡȤޤץ ޤ󡣤Υɥ饤Фϥǥץ쥤ξ (쥤뤫 顼) ưΤޤƤϼ褵ޤ

92.69 Vx384

vx384 ɥ饤Ф Vectrix 384 Tandy 顼ץ󥿤򥵥ݡȤ ץϤޤ

92.70 Windows

Ϸ windows ϡʸ Windows GDI Ѥ ®÷ϥɥ饤ФǤWindows ǤϡʣδĶư wxt Ϸ⥵ݡȤƤޤ

:

     set terminal windows {<n>}
                          {color | monochrome}
                          {solid | dashed}
                          {enhanced | noenhanced}
                          {font <fontspec>}
                          {linewdith <scale>}
                          {fontscale <scale>}
                          {linewdith <scale>}
                          {background <rgb color>}
                          {title "Plot Window Title"}
                          {size <width>,<height>}
                          {position <x>,<y>}
                          {close}

ʣΥɥ褬ݡȤƤޤ: set terminal win < n> Ϥֹ n 襦ɥޤ

color, monochrome ϡ顼ϤϤǡ dashed solid ϡȼǤcolor Ǥ solid ǥեȤǡmonochrome Ǥ dashed ǥեȤǤ enhanced ϳĥʸ (enhanced text mode) εǽ (աʸ եȤκ) ͭˤޤܺ٤ϰʲ: enhanced text (12) < fontspec> "< fontface> ,< fontsize> " ηǡ"< fontface> " ͭ Windows Υե̾ǡ< fontsize> ϥݥñ̤ǤΥեȤ 礭ǤξǤϤάǽǤ Ǥ gnuplot Ǥϡfont ɤϾάǽǡ< fontsize> ϰʤοͤͿ뤳ȤǤޤߤϤηϥݡȤƤޤΤդƤ linewidth fontscale ʸ򿭽̤Ǥޤ title ϡեɥΥȥѹޤ size ϥɥΥԥñ̤Ǥȹ⤵position ϥ θʤѤΥ꡼Υԥñ̤Ǥΰ֤ Υץϡե wgnuplot.ini ΥǥեȤ 񤭤ޤ

¾Υץ⥰ե˥塼ե wgnuplot.ini ѹ ޤ

Windows Ǥϡ÷⡼ɤǤ̾ޥɥ饤󤫤Ϳե κǸãľ˽λޤޥɥ饤κǸ - ̤ǤޤΥ⡼ɤǤϥƥȥɥɽ դΤߤɽȤʤޤץȤ -persist (x11 Ǥ gnuplot Ʊץ; Windows ΤߤΥץ /noend -noend ȤȤǤޤ) ꤹ gnuplot Ͻλʤʤ ξ¾ OS Ǥ gnuplot εưȤϰۤʤꡢ-persist ץ gnuplot ÷ޥɥ饤դޤ

ޥ set term gnuplot νϷѹ硢襦ɥ ϤΤޤ޻Ĥޤset term windows close 襦ɥĤ ȤǤޤ

gnuplot ϡWindows ǤνϤΤΤĤˡ򥵥ݡ Ƥޤʲ: windows printing (92.70.2)windows Ϸϡå ܡɤ EMF ե̤¾ΥץȤΥǡθ򴹤򥵥ݡȤ Ƥޤʲ: graph-menu (92.70.1)EMF եˤϡemf ϷȤȤǤޤ

92.70.1 ե˥塼 (graph-menu)

gnuplot graph ɥǥޥαܥ(*) 򲡤ƥ 塼 Options 򤹤ȰʲΥץĥݥåץåץ˥塼ޤ:

Copy to Clipboard åץܡɤ˥ӥåȥޥåפ EMF 򥳥ԡ

Save as EMF... ߤΥեɥ EMF եȤ¸

Print... եåɥ Windows ץ󥿥ɥ饤Фǥץ ȡץ󥿤ȳΨ򤬲ǽǤ Print ץ ̤ gnuplot λĥץ󥿥ɥ饤ФˤɤϤ ޤ󡣰ʲ⻲: windows printing (92.70.2)

Bring to Top åȥեɥ¾Ƥ襦 ɥμɽ

Color åȥ顼郎ͭå̵Ǥ

Double buffer դ򥹥꡼˼̤˥Хåե褹뤳 Ȥͭˤޤϡ㤨Х˥᡼ 3 դβž Τ (եå) 򤷤ޤʲ: mouse (82.40), scrolling (82.40.3)

Oversampling ۥХΥܤˤޤ꡼˼̤ݤ ϺƤȾʬ˽̾ޤˤꡢեåϤ餫ˤʤ ׻֤ɬפǤ double buffer ɬ פǤ

Antialiasing ޤüʿ경򤷤ޤ ȤդƤ

Background... ɥطʿ

Choose Font... եåɥǻȤեȤ

Line Styles... οΥޥ

Update wgnuplot.ini ߤΥɥΰ֡ɥ礭ƥ ȥɥΥեȤȤΥեȥեɥΥե ȤȤΥեȥطʿե wgnuplot.ini ¸

(*) Υ˥塼ϡunset mouse ˤäƱޥܥ󲡤Ȥ ʤΤա

92.70.2 (printing)

ߤˤꡢդϰʲΤ褦ˡǰǤޤ

1. gnuplot Υޥ set terminal ǥץ󥿤򤷡set output ǽϤե˥쥯

2. gnuplot graph ɥ Print... ޥɤ򡣥ƥ ȥɥ餳Ԥʤ̤ʥޥ screendump ⤢롣

3. set output "PRN" ȤȽϤϰե˽Ϥ졢gnuplot λ뤫ޤ set output ޥɤǽϤ¾ΤΤѹȡ () ܥå졢ǥץ󥿥ݡȤ򡣤 OK 򤹤ȡϤϥץȥޥ͡Ǥϲù줺ˤΤޤ 줿ݡȤǥץȥȤ롣϶ (ޤϸΰ) ˡ ѤνϤ򡢤бƤʤץ󥿤뤳Ȥ̣롣

92.70.3 ƥȥ˥塼 (text-menu)

gnuplot text ɥǥޥαܥ򲡤ƥ˥塼 Options 򤹤ȰʲΥץĥݥåץåץ˥塼ޤ:

Copy to Clipboard ޡƥȤ򥯥åץܡɤ˥ԡ

Paste ǤΤƱ褦˥åץܡɤƥȤ򥳥ԡ

Choose Font... ƥȥɥǻȤեȤ

System Colors 򤹤ȥȥѥͥꤷƥ५顼 ƥȥɥͿ롣򤷤ʤطʤʸϹġ

Wrap long lines 򤹤ȸߤΥɥĹԤޤ֤

Update wgnuplot.ini ߤ򡢥桼Υץꥱǡǥ 쥯ȥˤե wgnuplot.ini ¸

92.70.4 ˥塼ե wgnuplot.mnu

˥塼ե wgnuplot.mnu gnuplot Ʊǥ쥯ȥˤ 硢wgnuplot.mnu ˽񤫤Ƥ˥塼ɤ߹ޤޤ˥塼 ɤϰʲ̤:


[Menu]      ιԤ̾ǿ˥塼򳫻
[EndMenu]   ߤΥ˥塼λ
[--]        ʿʥ˥塼λڤ
[|]         ľʥ˥塼λڤ
[Button]    ˥塼˲ܥ졢˼ΥޥƤ

ޥ 2 Ԥǽ񤭡ǽιԤϥޥ̾ (˥塼θФ)2 ܤ ΤǤƬζ̵뤵ޤޥޥɤϰʲ̤:

[INPUT] [EOS] {ENTER} ޤǤץץȤȤƽϤʸ [EOS] ʸν (End Of String)Ϥʤ [OPEN] ե̾ǽ [EOS] ޤǤåɥΥ

           ȥ롢鼡 [EOS]  {ENTER} ޤǤǥեȤΥ
           ̾

[SAVE] ֥ե̾ ([OPEN] Ʊ) [DIRECTORY] ǥ쥯ȥ̾[EOS] {ENTER} ޤǤåɥ
           Υȥ

ޥʸ֤ϰʲ̤:


{ENTER}      '\r'
{TAB}        '\011'
{ESC}        '\033'
{^A}        '\001'
...
{^_}        '\031'

ޥŸʸ 256 ʸ¤Ƥޤ

92.70.5 Wgnuplot.ini

Windows ƥȥɥ windows ϷϡץΤĤ wgnuplot.ini [WGNUPLOT] 󤫤ɤ߹ߤޤΥե ϡ桼Υץꥱǡǥ쥯ȥ֤ޤ wgnuplot.ini եΥץ:


     [WGNUPLOT]
     TextOrigin=0 0
     TextSize=640 150
     TextFont=Terminal,9
     TextWrap=1
     TextLines=400
     SysColors=0
     GraphOrigin=0 150
     GraphSize=640 330
     GraphFont=Arial,10
     GraphColor=1
     GraphToTop=1
     GraphDoublebuffer=1
     GraphOversampling=0
     GraphAntialiasing=1
     GraphBackground=255 255 255
     Border=0 0 0 0 0
     Axis=192 192 192 2 2
     Line1=0 0 255 0 0
     Line2=0 255 0 0 1
     Line3=255 0 0 0 2
     Line4=255 0 255 0 3
     Line5=0 0 128 0 4

ʲ wgnuplot ΥƥȥɥΤߤŬѤޤ

TextOrigin TextSize ϡƥȥɥΰ֤ȥλ Ǥ

TextFont ϡƥȥɥΥեȤȥλǤ

TextWrap ϡĹƥȹԤޤ֤򤷤ޤ

TextLines ϡƥȥɥХåե˲ (ޤ֤ʤ) ݻ뤫ꤷޤߤϡͤ wgnuplot ⤫ѹǤޤ

ʲ: text-menu (92.70.3)

GraphFont ϡե̾ȥݥñ̤ΥեȥλǤ

Border, Axis, Line ˤϡ֤ζ (0-255)Фζ١Ĥζ١ 顼 5 Ĥοꤷޤ (linestyle) ϡ0=1=2=3=4=Ȥ äƤޤ wgnuplot.ini ǤϡLine 2 ϥ顼⡼ɤǤФ ǡ⡼ɤǤϺˤʤޤǥեȤ 1 ԥǤ 郎ͤξ硢ͤԥñ̤ǤǤ̣ ޤLine1 points ǻȤ 1 ԥμǤ Фʤޤ

ʲ: graph-menu (92.70.1)

92.71 Wxt

wxt ϷϡġΥɥؤνϤޤɥ wxWidgets 饤֥ޤ (줬 wxt ̾ͳǤ) ݤϡ2D եå饤֥ cairo ȡʸ/ 饤֥ pango ޤ

:

       set term wxt {<n>}
                    {size <width>,<height>} {background <rgb_color>}
                    {{no}enhanced}
                    {font <font>} {fontscale <scale>}
                    {title "title"}
                    {dashed|solid} {dashlength <dl>}
                    {{no}persist}
                    {{no}raise}
                    {{no}ctrl}
                    {close}

ʣ襦ɥ⥵ݡȤƤơset terminal wxt < n> Ȥ ֹ n 襦ɥؽϤޤ

ǥեȤΥɥȥϡΥɥֹ˴ŤƤޤ Υȥ "title" ɤǤǤޤ

襦ɥϡgnuplot νϷ̤ʤΤѹƤĤäޤ ˤʤޤĤˤϡΥɥϥե 'q' Ϥ뤫ɥޥ͡Υ˥塼 closeset term wxt < n> close ȤƤ

ΰΥϥԥñ̤ͿޤǥեȤ 640x384 Ǥ ˲äơɥμºݤΥˤϡġС䥹ơС ѤΥڡɲäޤ ɥΥѹȡ襰դ⥦ɥο Ԥä礦褦ˤ˿̤ޤ¾÷ϷȰ㤤wxt ϷϥեȡޤΤ򿭽̤ޤΤΥڥ ϰݤäơڡϳɤ٤ޤθ replot ȥפ뤫ߥʥġС replot 򥯥å뤫 plot ޥɤϤȡοǤϴˤΥ ɥ˹碌ޤեȥϤ줾ΥǥեȤ˥ åȤޤ

ߤ襦ɥ (set term wxt < n> 򤵤줿) Ū εưϡ¾νϷȶ̤Ǥܺ٤ϡʲ: mouse (82.40) ɲäΥ⤤ĤĤƤޤϤ켫ΤŪʤ ΤˤʤäƤϤǤ

νϷϡĥʸ⡼ (enhanced text mode) 򥵥ݡȤ ƤơեȤ񼰥ޥ (ադʤ) ٥¾ʸ ळȤǤޤĥʸ⡼ɤν񼰤¾ gnuplot ν Ϸȶ̤Ǥܺ٤ϡʲ: enhanced (12)

< font> "FontFace,FontSize" ηǡFontFace FontSize Ȥ ޤʬΥưĤʸȤƽ񤭤ޤFontFace ϡ'Arial' Τ ̾Υե̾ǤFontFace Ϳʤϡwxt Ϸ 'Sans' ѤޤFontSize ϡݥñ̤ΥեȥǤ FontSize Ϳʤϡwxt Ϸ 10 ݥȤѤޤ

  :
     set term wxt font "Arial,12"
     set term wxt font "Arial" # ե̾Τѹ
     set term wxt font ",12" # եȥΤѹ
     set term wxt font "" # ե̾եȥꥻå

եȤ̾Υեȥ֥ƥफޤMS-Windows Ǥ ȥѥͥ "Fonts" ȥǸΤǡꤷ ޤUnix ǤϡեȤ "fontconfig" ޤ

ʸΥ쥤Ȥ˻Ѥ pango 饤֥ utf-8 ܤȤƤ ޤΤǡwxt ϷǤϥ󥳡ǥ󥰤 utf-8 ˤɬפ ǥեȤϥ󥳡ǥ󥰤ϡƥ 'locale' ˤ ¾Υ󥳡ǥ󥰤Ѥϡ gnuplot Τ餻 ɬפޤܺ٤ϡʲ: encoding (82.20)

pango ϡunicode ޥåԥ󥰤ǤʤեȤФƤͽ̷̤Ϳ 뤫⤷ޤ㤨 Symbol եȤФƤϡwxt Ϸϡʸ ɤ unicode Ѵ뤿 http://www.unicode.org/ 󶡤 ޥåԥ󥰤Ѥޤpango ϡʸޤեȤ򸫤Ĥ뤿 ˤʤ Symbol եȤ򸡺 DejaVu եȤΤ褦ˡ unicode 򥫥С¾ΥեȤõȤäκȤ Ȥޤʤ"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" Τ褦¾ɸΥեȤǤư뤳Ȥ𤵤 ޤ

Υ󥰤ϡġСŪѹǤޤǽʸ¤Ǥ ɤϤ뤿ˤΥ󥰤ϡꥢС ץ󥰡ҥƥ󥰤 3 ĤεäƤޤ ꥢϡʿľǤʤγ餫ɽǽˤޤ Сץ󥰤ϡꥢȤǥԥ⾮ Ǥ٤󶡤gnuplot ɸľ񤱤褦ˤʤޤ ϡгľ (㤨 'plot x') ɤΤ򤱤ޤ ҥƥ󥰤ϡСץ󥰤ˤäưʿľ ʬΤܤ򤱤ޤνϷϡľɸ· ˤꡢ1 ԥľ 1 (1 Ĥ¿⾯ʤ ʤ) Υԥ褷ޤ

ǥեȤǤϡ褬Ԥ줿Ȥ˥ɥϥǥȥåפΰ־ () ɽޤϡ "raise" Ǥޤ  "persist" ϡ٤Ƥ襦ɥŪĤʤ ϡgnuplot λʤ褦ˤޤ ǸˡǥեȤǤ < space> gnuplot 󥽡륦ɥ ˾夲'q' 襦ɥĤޤ "ctrl" ϡ ΥƤ򡢤줾 < ctrl> +< space> < ctrl> +'q' ѹޤ 3 ĤΥ (raise, persist, ctrl) ϡ ΤȤǤꤷ뤳ȤǤޤ

92.72 X11

:

  set terminal x11 {<n> | window "<string>"}
                   {title "<string>"}
                   {{no}enhanced} {font <fontspec>}
                   {linewidth LW} {solid|dashed}
                   {{no}persist} {{no}raise} {{no}ctrlq}
                   {close}
                   {size XX,YY} {position XX,YY}
  set terminal x11 {reset}

ʣΥ襦ɥ򥵥ݡȤƤޤset terminal x11 < n> ֹ n 襦ɥ˽Ϥޤn 0 ǤʤСȥ뤬 Ū˻ꤵƤʤФֹ椬ɥȥȤƤĤ졢 ˤ Gnuplot < n> ȥ٥դޤͭʥɥ ϥ뵭ѲǶ̤Ǥޤ (ǥեȥ뤫齽 )

x11 ϷϡΥץꥱˤäƤ X Υ ɥ X ID (16 ɽ) 򥪥ץ window θʸȤƻ 뤳ȤǡΥɥ³ǤޤX ʣΥ饤Ȥ˥ ButtonPress ǧʤᡢgnuplot γɥ򥳥 ƥʤȤƻѤޤˡˤꡢgnuplot ΥޥǽϤȤꤳޤ 襦ɥǤưޤ


  set term x11 window "220001e"

x11 ϷϡѲǽʥեȤθdzĥʸ⡼ (ʲ:enhanced (12)) 򥵥ݡȤƤޤʸޤ졢͡ʸ̤Ϳ եȥ̿ΤˡǥեȤ x11 եȤ֥ եȤǤɬפޤäơʲκǽϤޤǤ礦2 ܤΤΤϤǤϤʤǤ礦


  set term x11 enhanced font "arial,15" 
  set title '{/=20 Big} Medium {/=5 Small}'


  set term x11 enhanced font "terminal-14" 
  set title '{/=20 Big} Medium {/=5 Small}'

gnuplot ɥ饤Ф̤ʽϥɥ饤ФѹƤ⡢襦ɥϳ ޤޤˤʤޤ襦ɥϡΥɥ˥֤ ʸ q 򲡤ɥޥ͡Υ˥塼 close 򤹤 Ĥ뤳ȤǤޤreset ¹ԤƤΥɥ٤Ĥ ޤϼºݤ˥ɥƤҥץλޤ ( -persist ꤵƤʤ)ޥ close ϡġ ɥֹꤷĤΤ˻ȤȤǤޤpersist Τ˻ĤäƤ褦襦ɥ close ޥɤǤĤ뤳 ϤǤޤֹά close ˤϸͭ襦 Ĥޤ

gnuplot γˤɥ饤 gnuplot_x11 ϡץΥѥ 򤵤줿ǥեȤξ꤬ޤϴĶѿ GNUPLOT_DRIVER_DIR ۤʤ뤳ȤѹǤޤ

襦ɥ -persisit ץͿƤʤСä λ˼ưŪĤޤ

ץ persist raise ϥǥեȤǤꤵƤޤ󤬡 ϡǥեȤ (persist == no raise == yes) ޥɥ 󥪥ץ -persist / -raise λ꤫ޤ X Υ꥽ͤȤ 롢ȤȤ̣ޤ[no]persist [no]raise ꤵ ϥޥɥ饤󥪥ץ X ꥽ͥ褵ޤ Υץľ˸ϤޤΤǡ˵ưƤ 饤Фεưѹޤɥ̤˽Фʤϡʲ:raise (76)

ץ title "< title name> " ϸߤ襦ɥˡޤֹ ꤹФֹ襦ɥФ륦ɥȥ̾Ĥ ޤΥȥ뤬ɽꡢޤɽ뤫ɤϡȤä X Υɥޥ͡˰¸ޤ

ץ size ϡ襦ɥΥꤹΤ˻ѤǤޤ Υץϡθ륦ɥΤߤŬѤޤ

ץ position ϡ襦ɥΰ֤ꤹΤ˻Ȥޤ Υץϡθ륦ɥΤߤŬѤޤ

襵ȥڥϡgnuplot Υɥꥵ뤳Ȥ ѹǤޤ

Υ gnuplot set linestyle ѹǽǤ

ϥɥ饤 x11 ˴ؤƤϡgnuplot (ư)ޥɥ饤 ޤե뤫顢geometry font, name ʤɤ̾ X Toolkit ץ꥽λդޤΥץˤĤƤ X(1) ޥ˥奢ڡ (䤽ƱΤ) 򻲾ȤƤ

¾ˤ x11 ϷѤ¿ gnuplot Υץ󤬤ޤ gnuplot Ƥ֤Ȥ˥ޥɥ饤󥪥ץȤƻꤹ뤫 ޤե ".Xdefaults" Υ꥽ȤƻǤޤ ϵưꤵΤǡgnuplot ¹ԻˤѹǤޤ (persist raise ʳ)

92.72.1 X11 Υե (x11_fonts)

ưϡƥ꤫桼 .Xdefaults ե꤫ ޥɥ饤꤫Τ줫ˤ X11 ꥽ˤäƥǥե ΥեȤ򤵤ޤ

:

     gnuplot*font: lucidasans-bold-12

ǥեȤΥեȤgnuplot x11 ɥ饤Ф˰ʲΤ褦ˤƻؼ뤳ȤǤޤ:
    `set term x11 font "<fontspec>"`

ޤ x11 ɥ饤ФϡͿ줿եȤ̾ X Ф˿Ҥͤޤ 䤤碌Ԥ硢< fontspec> "< font> ,< size> ,< slant> ,< weight> " Ȳᤷʲηδ X11 ե̾褦Ȥޤ:
     -*-<font>-<weight>-<s>-*-*-<size>-*-*-*-*-*-<encoding>


<font> ϥեȤδ̾ (base name) (: Times, Symbol)
<size> ϥݥȥ (꤬ʤХǥեȤ 12)
<s>  <slant>=="italic" ʤ `i`, <slant>=="oblique" ʤ `o`, ¾ `r`
<weight> Ū˻ꤵ `medium`  `bold`¾ `*`
<encoding> ϸߤʸ˴Ť (ʲ: `set encoding`)

ä set term x11 font "arial,15,italic" (ǥեȤ encoding Ȥ) -*-arial-*-i-*-*-15-*-*-*-*-*-iso8859-1 Ѵޤ < size> , < slant> , < weight> ϤɬܤǤϤޤ< slant> < weight> ꤷʤäϡեȥФǽ˸ĤѼ ΥեȤ뤫⤷ޤ ǥեȤΥ󥳡ǥ󥰤ϡб X11 ꥽Ȥäꤹ뤳 ȤǤޤ:
     gnuplot*encoding: iso8859-15

x11 ɥ饤ФϡŪ PostScript ե̾ǧƱͭ X11 եȤ TrueType եȤ֤ޤ Ʊ礬set label ׵ˤեȤǤȤƤ ޤ

ʤ gnuplot configure -enable-x11-mbfonts ץĤ ƥ󥹥ȡ뤵줿Τʤ顢ե̾ "mbfont:" Ĥ뤳 ȤǥޥХȥեȤꤹ뤳ȤǤޤե̾ʣ ĤȤǤޤξϥߥǶڤޤޥХȥ ȤΥ󥳡ǥ󥰤 locale ˽ޤΤǡĶѿ LC_CTYPE Ŭڤ (㤨 ja_JP.eucJP, ko_KR.EUC, zh_CN.EUC ʤ) ꤹɬפޤ

:

     set term x11 font 'mbfont:kana14;k14'
           # 'kana14'  'k14' ܸ X11 font ꥢ̾';'
           # ϥե̾ζڤǤ
     set term x11 font 'mbfont:fixed,16,r,medium'
           # <font>,<size>,<slant>,<weight> ѤǤޤ
     set title '(mb strings)' font 'mbfont:*-fixed-medium-r-normal--14-*'

Ʊ񼰤 X Υ꥽ǤΥǥեȥեȤǤͭǤ:

     gnuplot*font: \
         mbfont:-misc-fixed-medium-r-normal--14-*-*-*-c-*-jisx0208.1983-0

gnuplot -enable-x11-mbfonts ǥ󥹥ȡ뤵줿硢"mbfont:" ĤʤƤ 2 Ĥ̤ PostScript ե̾ 'Ryumin-Light-*', 'GothicBBB-Medium-*' (ɸŪܸ PS ե) ȤȤǤޤ

92.72.2 ޥɥ饤󥪥ץ (command-line_options)

X Toolkit ץ˲äʲΥץ gnuplot Ω夲Υޥɥ饤ǡޤϥ桼Υե ".Xdefaults" Υ꥽ȤƻǤޤ (raise persist set term x11 [no]raise [no]persistˤäƾ񤭤뤳ȤդƤ):

`-mono` 顼ǥץ쥤ǶŪ
`-gray` 쥤ޤϥ顼ǥץ쥤ǤΥ쥤
  (ǥեȤǤϥ쥤ǥץ쥤դ)
`-clear` ɽ (ִŪ) ̤õ
`-tvtwm` geometry ץˤ֤λ򡢲ۥ롼ȥɥ
  ߤɽʬФŪʰ֤ˤ
`-raise` 襦ɥ̤ؽФ
`-noraise` 襦ɥ̤ؽФȤϤʤ
`-noevents` ޥϤʤ
`-persist` gnuplot ץཪλ襦ɥĤ
嵭Υץϥޥɥ饤Ǥλ񼰤ǡ".Xdefaults" ˥ ȤƻꤹȤϰۤʤ񼰤Ȥޤ

:

     gnuplot*gray:  on
     gnuplot*ctrlq: on

gnuplotpoints 褹Υˤ⡢ޥ 饤󥪥ץ (-pointsize < v> ) ȥ꥽ (gnuplot*pointsize: < v> ) 󶡤Ƥޤ v ΥγΨȤƻȤ¿ (0 < v < = 10) ǡ㤨 -pointsize 2 ϥǥեȤΥ 2 ܡ -pointsize 0.5 ̤ΥȾʬȤޤ

-noevents ϥޥƤϤν̵ˤޤ (q < space> ˤ륦ɥνλ)ϡgnuplot Υᥤ ȤΩ x11 ɥ饤ФѤץͭѤǤ

-ctrlq åϡ襦ɥĤۥåȥ q < ctrl> q ѹޤϡpause mouse keystroke ˤ륭 ¸ǽȤäƤˤϡ¾Υե٥åʸƱͤ q ¸Ǥ褦ˤʤΤͭѤǤ礦Ʊͳǡ-ctrlq å < space> ۥåȥ < ctrl> < space> ֤ޤ

92.72.3 ץ (monochrome_options)

ǥץ쥤ФƤ gnuplot 迧 (foreground) طʿ (background) Ϳޤ󡣥ǥեȤǤطʤϹǤ-rv gnuplot*reverseVideo: on ξˤطʤˤʤޤ

92.72.4 顼꥽ (color_resources)

x11 ϷϰʲΥ꥽ (ǤϤΥǥեȤͤ򼨤ޤ) ޤĴ (greyscale) Υ꥽򻲾Ȥޤ꥽ͤϥ ƥ X11 rgb.txt ե˽񤫤Ƥ뿧̾ޤ 16 ʤο (X11 Υޥ˥奢򻲾) ̾ȶ (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

˴ؤ륳ޥɥ饤ν񼰤ϡط (bacground) ˴ؤƤñ ̾ X11 toolkit ץ "-bg" ľбޤ¾ΤΤ⡢ ưŪʥ꥽ξ񤭥ץ "-xrm" ȤȤǤ

:

طʿѹˤ

     gnuplot -background coral

1 ܤο񤭴ˤ

     gnuplot -xrm 'gnuplot*line1Color:blue'

92.72.5 Ĵ꥽ (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

92.72.6 ꥽ (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) ǥץ쥤ˤ Ǥ 顼ǥץ쥤Ǥ dashed:off ǥեȤˤʤäƤޤ

  gnuplot*dashed: off
  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

92.72.7 X11 pm3d ꥽ (pm3d_resources)

Ŭڤ visual 饹ȿ򤹤ΤϡX11 ץꥱˤȤä 줷äʤȤǤ X11 ۤʤ뿼 (depth) 6 Ĥ visual 򥵥ݡȤƤ뤫Ǥ

ǥեȤǤ gnuplot ϤΥ꡼ΥǥեȤ visual ޤƤ뤳ȤΤǤ뿧򤵤줿 visual 饹ˤä ޤ12bit Ķ뿼٤ visual 饹Ǥϡgnuplot Ϻ Ǥ 0x200 (=512) ǵưޤ8bit Ķ (12bit ʲ) ٤ visual 饹ǤϺ翧 0x100 (=256) 8bit ʲΥǥץ쥤ǤϺ翧 240 (16 ϶οѤ˼) ˤʤޤ

gnuplot Ϻǽˡ˽Ҥ٤褦ʺ翧Ƥ褦ȵưޤ ˼ԤȤοϡgnuplot դ뤳ȤǤ ǡ1/2 ĸ餵ޤmaxcolors 򷫤֤ 2 dzä̡ mincolors ⾮ˤʤä硢gnuplot private 顼 ޥåפȤȤޤξ硢ɥޥ͡ϡݥ󥿤 X11 ɥ饤ФΥɥ뤫Ф뤫ǥ顼ޥåפ (swapping) ǤĤȤˤʤޤ

mincolors ΥǥեȤͤ maxcolors / (num_colormaps > 1 ? 2 : 8) ǡnum_colormaps gnuplot ߻ѤƤ륫顼ޥåפοǡ ϡx11 Υɥ 1 ĤƤ褦̾ξ 1 Ǥ

ʣ (ۤʤ) visual 饹򡢰ĤΥ꡼ǥݡȤ褦 ʥƥ⤢ޤΤ褦ʥƥǤϡgnuplot ˻ꤷ visual 饹Ū˻Ȥ碌ɬפޤ㤨СǥեȤ visual 8bit PseudoColor ɤ⥹꡼ 24bit TrueColor ݡȤƤƤष򤹤٤Ǥ褦ʾǤ

X ФǽϤ˴ؤϥץ xdpyinfo ǼǤޤ visual ̾ϼΤΰĤǤޤ: StaticGray, GrayScale, StaticColor, PseudoColor, TrueColor, DirectColor X Ф׵ 줿 visual ΰۤʤʣο٤򥵥ݡȤƤ硢gnuplot Ǥ礭 (ǿ) ٤ visual 饹򤷤ޤ׵ᤵ줿 visual 饹ǥեȤ visual ȤäƤơηʣΥ饹 ݡȤƤϡǥեȤ visual 򤵤ޤ

: 8bit PseudoColor visual Ǥϡgnuplot*maxcolors: 240ڤ gnuplot*mincolors: 240 Ȼꤹ뤳ȤǶŪ private 顼ޥå Ȥ褦ˤǤޤ

  gnuplot*maxcolors:
  gnuplot*mincolors:
  gnuplot*visual: visual ̾

92.72.8 X11 ¾Υ꥽ (other_resources)

ǥեȤǤϡߤ襦ɥƤϡɥ X ٥ ˽ä X11 åץܡɤޤ'gnuplot*exportselection' ꥽ͤ 'off' 'false' ꤹ뤳Ȥˤꤳ̵ˤǤ

ǥեȤǤϡʸβž®ԤʤˡȤޤطʿ ˤäƤϤն᤬뤳Ȥޤ줬ϡ꥽ 'gnuplot.fastrotate' 'off' ˤƤߤƤ

  gnuplot*exportselection: off
  gnuplot*fastrotate: on
  gnuplot*ctrlq: off

92.73 Xlib

xlib ɥ饤Ф X11 Windows System 򥵥ݡȤƤޤΥɥ饤 Ф gnuplot_x11 ؤ̿ޤset output '< filename> ' ꤹȤե˽񤭽Фޤset term x11 ϡ set output "| gnuplot_x11 -noevents"; set term xlib ƱͤǤ xlib ˤ x11 ƱץȤͿ뤳ȤǤޤ


5 Х (Bugs)

ХݡȤ e-mail gnuplot-bugs ᡼󥰥ꥹȤ뤫ޤ SourceForge gnuplot ֥ȤˤƤƤ ݡʤѤƤ gnuplot ΥСδʾ󡢤Ʋǽ ʤФΥХ¾ڤƥȥץȤäƤʲ:seeking-assistance (3)

93 ΤƤ (limitations)

do while 롼פǤϡplot '-' ... Τ褦ʥ饤 ǡϻѤǤޤ

դ key ¤Ȱ֤ϡkey ʸȤƾդդʸ 줿ꡢŪʥեȻ꤬ԤΤˤʤޤ (4.7 ǤϽ Ѥ)

ư׻㳰 (ưͤ礭 (ޤϾ) 硢0 任ʤ) ϡ桼ؿˤƻȯޤäˡ ĤΥǥǡưϰϤۤͤ뤳Ȥ褦Ǥ ƥबΤ褦㳰̵뤹 (gnuplot ϤΤ褦Ǥ ʤΡȸʤޤ) ޤ gnuplot μ¹Ԥߤ뤫ϡ ѥ (뤤ϼ¹Ի) δĶˤޤ

޴ؿȥ٥åؿerf ؿʣǿФƤưޤ

"" Ȥƻꤵ줿ɸ 24 ޤ֤ޤ

nohidden3d ϡŪǤ set hidden3d 򡢸ġ Ƚ뤿ΥץǤ޲ѿζ (parametric) ФƤϵǽޤ

X11 Ϸ: UTF-8 եȤ򤬺Ǥץϡx11 ϥ ɥΥڥɵᤷޤ󡣤ϡ"set size ratio" Τ褦ʥޥɤ˵ǽ뤿ˤϡx11 ɥΤ ʤФʤʤǤ ٤Ƥ x11 襦ɥ ơ٤ 1 ĤΥ顼ѥåȤΤߤͭǤϡۤʤѥ ȤѤޤ multiplot Ǥ x11 Ǥɽʤ ȤȤ̣ޤ

Qt Ϸ: ѥ˻Ѥ qt Ķ󥰥⡼ɤȤ "opengl" 򥵥ݡȤƤʤ¿ѷȶɽϤʤʤ ǽޤ

94 饤֥ (External libraries)

饤֥ GD (PNG/JPEG/GIF ɥ饤Фǻ): С 2.0.33 ޤǤ libgd ˤϡAdobe Symbol եȤʸ ޥåԥ󥰤˴ؤ뤤ĤΥХޤޤꥢ ʬХξγѤȸˡ饤֥꤬ơ եȤȤ⤢ޤ

饤֥ PDFlib (PDF ɥ饤Фǻ): gnuplot libpdf ΥС 4, 5, 6 Τ줫󥯤Ǥޤ ϥСˤäƥѥפ줿ϤνäƤޤ ΤǡѥפȤä PDF Ϥ gnuplot ץȤϡPDFlib Τ СǤưʤ⤷ޤ

饤֥ svgalib (linux, vgadl ɥ饤Фǻ): gnuplot root setuid (!) 뤳Ȥ׵ᤷޤӥ ɤ X11 ǻѤ륰եåɥ饤Фͭ¿ΥХ ޤ

ݲ (): gnuplot ϡϤοʸΥ˰¸񼰤 C 󥿥饤֥˴ޤޤ setlocale() ѤƹԤΤǡ ͭ䡢뵡ǽΥݡȤΥ٥ (㤨п 3 ζڤʸʤ) ʤɤϡʤΥԥ塼󶡤ݲΥݡ Ȥٹ礤˰¸ޤ

6 Index


.gnuplot
21
3D
57
abs
14.1
acos
14.1
acosh
14.1
acsplines
72.3.5.1
adobeglyphnames
92.51.4
aed512