Mercurial > hg > Papers > 2016 > masa-master
changeset 19:cf946733deac
add result
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 03 Feb 2016 18:45:18 +0900 |
parents | 14545e517fb0 |
children | b80bb2910378 |
files | c4.tex images/image.graffle memo/grep.txt memo/io_speany.plt memo/io_speany.txt memo/result.txt memo/test.gpi memo/test.tex |
diffstat | 8 files changed, 757 insertions(+), 54 deletions(-) [+] |
line wrap: on
line diff
--- a/c4.tex Tue Feb 02 18:00:54 2016 +0900 +++ b/c4.tex Wed Feb 03 18:45:18 2016 +0900 @@ -1,13 +1,12 @@ \chapter{Cerium による文字列処理の例題} 本項ではファイルを読み込んで処理する流れとそれの例題を記述する。例題として、単語数を数える Word Count、文字列探索を行う Boyer Moore Search、正規表現を挙げる。 -\section{File 読み込みを含んだ並列処理} +\section{File 読み込みを含んだ並列処理(File Map Reduce?)} 文字列処理を並列で処理する場合を考える。 まずファイルを読み込み、ファイルをある一定の大きさで分割する(divide a file)。 そして、分割されたファイル(Input Data)に対して文字列処理(Task)をおこない、それぞれの分割単位で結果を出力する(Output Data)。 それらの Output Data の結果が出力されたあとに、結果をまとめる処理を行う(Print Task)。 - (図\ref{fig:dividefile}) \begin{figure}[htpb]
--- a/images/image.graffle Tue Feb 02 18:00:54 2016 +0900 +++ b/images/image.graffle Wed Feb 03 18:45:18 2016 +0900 @@ -26,7 +26,7 @@ <key>MasterSheets</key> <array/> <key>ModificationDate</key> - <string>2016-01-25 07:44:35 +0000</string> + <string>2016-02-03 05:33:14 +0000</string> <key>Modifier</key> <string>MasaKoha</string> <key>NotesVisible</key> @@ -24141,10 +24141,10 @@ <key>Text</key> <string>{\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 {\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} -{\colortbl;\red255\green255\blue255;\red0\green0\blue0;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 - -\f0\fs32 \cf2 Task}</string> +{\colortbl;\red255\green255\blue255;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs32 \cf0 Task}</string> </dict> </dict> <dict> @@ -24172,10 +24172,10 @@ <key>Text</key> <string>{\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 {\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} -{\colortbl;\red255\green255\blue255;\red0\green0\blue0;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 - -\f0\fs32 \cf2 Task}</string> +{\colortbl;\red255\green255\blue255;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs32 \cf0 Task}</string> </dict> </dict> <dict> @@ -24203,10 +24203,10 @@ <key>Text</key> <string>{\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 {\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} -{\colortbl;\red255\green255\blue255;\red0\green0\blue0;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 - -\f0\fs32 \cf2 Task}</string> +{\colortbl;\red255\green255\blue255;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs32 \cf0 Task}</string> </dict> </dict> <dict> @@ -24234,10 +24234,10 @@ <key>Text</key> <string>{\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 {\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} -{\colortbl;\red255\green255\blue255;\red0\green0\blue0;} -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 - -\f0\fs32 \cf2 Task}</string> +{\colortbl;\red255\green255\blue255;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs32 \cf0 Task}</string> </dict> </dict> <dict> @@ -24364,11 +24364,11 @@ <key>Text</key> <string>{\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 {\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} -{\colortbl;\red255\green255\blue255;\red0\green0\blue0;} -\deftab720 -\pard\pardeftab720\qc\partightenfactor0 - -\f0\fs32 \cf2 File Data}</string> +{\colortbl;\red255\green255\blue255;} +\deftab720 +\pard\pardeftab720\qc\partightenfactor0 + +\f0\fs32 \cf0 File Data}</string> </dict> </dict> <dict> @@ -24551,6 +24551,147 @@ <key>VPages</key> <integer>1</integer> </dict> + <dict> + <key>ActiveLayerIndex</key> + <integer>0</integer> + <key>AutoAdjust</key> + <false/> + <key>BackgroundGraphic</key> + <dict> + <key>Bounds</key> + <string>{{0, 0}, {1118, 783}}</string> + <key>Class</key> + <string>SolidGraphic</string> + <key>ID</key> + <integer>2</integer> + <key>Style</key> + <dict> + <key>stroke</key> + <dict> + <key>Draws</key> + <string>NO</string> + </dict> + </dict> + </dict> + <key>BaseZoom</key> + <integer>0</integer> + <key>CanvasOrigin</key> + <string>{0, 0}</string> + <key>ColumnAlign</key> + <integer>1</integer> + <key>ColumnSpacing</key> + <real>36</real> + <key>DisplayScale</key> + <string>1.0000 cm = 10.0000 cm</string> + <key>GraphicsList</key> + <array> + <dict> + <key>Bounds</key> + <string>{{39.685039730147111, 153.07086753056743}, {162.99212746310411, 30}}</string> + <key>Class</key> + <string>ShapedGraphic</string> + <key>FitText</key> + <string>Vertical</string> + <key>Flow</key> + <string>Resize</string> + <key>FontInfo</key> + <dict> + <key>Color</key> + <dict> + <key>b</key> + <string>0</string> + <key>g</key> + <string>0</string> + <key>r</key> + <string>0</string> + </dict> + </dict> + <key>ID</key> + <integer>3</integer> + <key>Style</key> + <dict> + <key>fill</key> + <dict> + <key>Draws</key> + <string>NO</string> + </dict> + <key>shadow</key> + <dict> + <key>Draws</key> + <string>NO</string> + </dict> + <key>stroke</key> + <dict> + <key>Draws</key> + <string>NO</string> + </dict> + </dict> + <key>Text</key> + <dict> + <key>Align</key> + <integer>0</integer> + <key>Text</key> + <string>{\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 +{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} +{\colortbl;\red255\green255\blue255;} +\deftab720 +\pard\pardeftab720\partightenfactor0 + +\f0\fs32 \cf0 ( [a-zA-Z] | [0-9] * ) * a}</string> + </dict> + </dict> + </array> + <key>GridInfo</key> + <dict/> + <key>HPages</key> + <integer>2</integer> + <key>KeepToScale</key> + <true/> + <key>Layers</key> + <array> + <dict> + <key>Lock</key> + <string>NO</string> + <key>Name</key> + <string>レイヤー 1</string> + <key>Print</key> + <string>YES</string> + <key>View</key> + <string>YES</string> + </dict> + </array> + <key>LayoutInfo</key> + <dict> + <key>Animate</key> + <string>NO</string> + <key>circoMinDist</key> + <real>18</real> + <key>circoSeparation</key> + <real>0.0</real> + <key>layoutEngine</key> + <string>dot</string> + <key>neatoLineLength</key> + <real>0.20000000298023224</real> + <key>neatoSeparation</key> + <real>0.0</real> + <key>twopiSeparation</key> + <real>0.0</real> + </dict> + <key>Orientation</key> + <integer>2</integer> + <key>PrintOnePage</key> + <false/> + <key>RowAlign</key> + <integer>1</integer> + <key>RowSpacing</key> + <real>36</real> + <key>SheetTitle</key> + <string>キャンバス 12</string> + <key>UniqueID</key> + <integer>17</integer> + <key>VPages</key> + <integer>1</integer> + </dict> </array> <key>SmartAlignmentGuidesActive</key> <string>YES</string> @@ -24561,13 +24702,13 @@ <key>WindowInfo</key> <dict> <key>CurrentSheet</key> - <integer>8</integer> + <integer>9</integer> <key>Expanded_Canvases</key> <array> <string>キャンバス 7</string> </array> <key>Frame</key> - <string>{{105, 95}, {1250, 991}}</string> + <string>{{82, 173}, {1250, 991}}</string> <key>ShowInfo</key> <true/> <key>ShowRuler</key> @@ -24579,7 +24720,7 @@ <key>TopSlabHeight</key> <real>682</real> <key>VisibleRegion</key> - <string>{{0, -25}, {736, 833}}</string> + <string>{{0.5, -25}, {736, 833}}</string> <key>Zoom</key> <real>1</real> <key>ZoomValues</key> @@ -24629,6 +24770,11 @@ <real>1</real> <real>1</real> </array> + <array> + <string>キャンバス 12</string> + <real>1</real> + <real>1</real> + </array> </array> </dict> </dict>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memo/grep.txt Wed Feb 03 18:45:18 2016 +0900 @@ -0,0 +1,16 @@ +1 85.171171 +2 55.709298 +3 48.688031 +4 42.053209 +5 40.690125 +6 37.075352 +7 34.771558 +8 36.138412 +9 33.190304 +10 35.892051 +11 33.734864 +12 31.231748 +13 32.997263 +14 31.953924 +15 31.359396 +16 31.367073
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memo/io_speany.plt Wed Feb 03 18:45:18 2016 +0900 @@ -0,0 +1,141 @@ +#!/usr/local/bin/gnuplot -persist +# +# +# G N U P L O T +# Version 4.2 patchlevel 6 +# last modified Sep 2009 +# System: Darwin 13.0.0 +# +# Copyright (C) 1986 - 1993, 1998, 2004, 2007 - 2009 +# Thomas Williams, Colin Kelley and many others +# +# Type `help` to access the on-line reference manual. +# The gnuplot FAQ is available from http://www.gnuplot.info/faq/ +# +# Send bug reports and suggestions to <http://sourceforge.net/projects/gnuplot> +# +# set terminal aqua 0 title "Figure 0" size 846,594 font "Times-Roman,14" noenhanced solid +# set output +unset clip points +set clip one +unset clip two +set bar 1.000000 +set border 31 front linetype -1 linewidth 1.000 +set xdata +set ydata +set zdata +set x2data +set y2data +set boxwidth +set style fill empty border +set style rectangle back fc lt -3 fillstyle solid 1.00 border -1 +set dummy x,y +set angles radians +set grid nopolar +set grid xtics nomxtics ytics nomytics noztics nomztics \ + nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics +set grid layerdefault linetype 0 linewidth 1.000, linetype 0 linewidth 1.000 +set key title "" +set key inside right top vertical Right noreverse enhanced autotitles nobox +set key noinvert samplen 4 spacing 1 width 0 height 0 +unset label +unset arrow +set style increment default +unset style line +unset style arrow +set style histogram clustered gap 2 title offset character 0, 0, 0 +unset logscale +set offsets 0, 0, 0, 0 +set pointsize 1 +set encoding default +unset polar +unset parametric +unset decimalsign +set view 60, 30, 1, 1 +set samples 100, 100 +set isosamples 10, 10 +set surface +unset contour +set clabel '%8.3g' +set mapping cartesian +set datafile separator whitespace +unset hidden3d +set cntrparam order 4 +set cntrparam linear +set cntrparam levels auto 5 +set cntrparam points 5 +set size ratio 0 1,1 +set origin 0,0 +set style data points +set style function lines +set xzeroaxis linetype -2 linewidth 1.000 +set yzeroaxis linetype -2 linewidth 1.000 +set zzeroaxis linetype -2 linewidth 1.000 +set x2zeroaxis linetype -2 linewidth 1.000 +set y2zeroaxis linetype -2 linewidth 1.000 +set ticslevel 0.5 +set mxtics default +set mytics default +set mztics default +set mx2tics default +set my2tics default +set mcbtics default +set xtics border in scale 1,0.5 mirror norotate offset character 0, 0, 0 +set xtics 1 norangelimit +set ytics border in scale 1,0.5 mirror norotate offset character 0, 0, 0 +set ytics autofreq norangelimit +set ztics border in scale 1,0.5 nomirror norotate offset character 0, 0, 0 +set ztics autofreq norangelimit +set nox2tics +set noy2tics +set cbtics border in scale 1,0.5 mirror norotate offset character 0, 0, 0 +set cbtics autofreq norangelimit +set title "" +set title offset character 0, 0, 0 font "" norotate +set timestamp bottom +set timestamp "" +set timestamp offset character 0, 0, 0 font "" norotate +set rrange [ * : * ] noreverse nowriteback # (currently [0.00000:10.0000] ) +set trange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] ) +set urange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] ) +set vrange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] ) +set xlabel "" +set xlabel offset character 0, 0, 0 font "" textcolor lt -1 norotate +set x2label "" +set x2label offset character 0, 0, 0 font "" textcolor lt -1 norotate +set xrange [ 1.00000 : 4.00000 ] noreverse nowriteback +set x2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) +set ylabel "" +set ylabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90 +set y2label "" +set y2label offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90 +set yrange [ 0.00000 : 130.000 ] noreverse nowriteback +set y2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) +set zlabel "" +set zlabel offset character 0, 0, 0 font "" textcolor lt -1 norotate +set zrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) +set cblabel "" +set cblabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90 +set cbrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] ) +set zero 1e-08 +set lmargin -1 +set bmargin -1 +set rmargin -1 +set tmargin -1 +set locale "C" +set pm3d explicit at s +set pm3d scansautomatic +set pm3d interpolate 1,1 flush begin noftriangles nohidden3d corners2color mean +set palette positive nops_allcF maxcolors 0 gamma 1.5 color model RGB +set palette rgbformulae 7, 5, 15 +set colorbox default +set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front bdefault +set loadpath +set fontpath +set xlabel "CPU_NUM" +set ylabel "s" +set fit noerrorvariables +GNUTERM = "aqua" +plot "grep.txt" using 1:2 title "MMAP" with lines +# plot "./io_speany.txt" using 1:2 title "MMAP & SPE_ANY" with lines,"./io_speany.txt" using 1:3 title "divide read & SPE_ANY" with lines,"./io_speany.txt" using 1:4 title "MMAP & IO_0" with lines,"./io_speany.txt" using 1:5 title "divide read & IO_0" with lines +# EOF
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memo/io_speany.txt Wed Feb 03 18:45:18 2016 +0900 @@ -0,0 +1,4 @@ +1 102.260 82.814 102.824 84.670 +2 75.201 127.040 72.691 71.691 +3 60.065 77.703 60.065 68.778 +4 58.234 72.097 58.230 66.016
--- a/memo/result.txt Tue Feb 02 18:00:54 2016 +0900 +++ b/memo/result.txt Wed Feb 03 18:45:18 2016 +0900 @@ -1,32 +1,153 @@ -|CPU | time | +Wed Feb 3 18:04:02 JST 2016 +[word count] + firefly + cpu time + 1 7.408101 + 2 3.800094 + 3 2.593649 + 4 1.982035 + 5 1.609130 + 6 1.356986 + 7 1.171626 + 8 1.038483 + 9 0.931845 + 10 0.851650 + 11 0.783369 + 12 0.741725 + 13 0.729744 + 14 0.721221 + 15 0.706474 + 16 0.694984 + + [mmap] + 1 19.124272 + 4 17.701034 + 8 17.517347 + 16 16.844748 + + [bread] + 1 15.219672 + 4 15.892460 + 8 13.709429 + 16 13.913612 + +---------------------------------------- +cache の消しかた +%sudo purge + +./cerium/ceriumGrep -regex '[A-Z][A-Za-z]*' -file ../../../Game/Cerium/example/bm_search/1GB.txt -cpu 16 -br + +[firefly] + [キャッシュ有り : file 読み込み時間なし] + firefly + | CPU | time | + 1 85.171171 + 2 55.709298 + 3 48.688031 + 4 42.053209 + 5 40.690125 + 6 37.075352 + 7 34.771558 + 8 36.138412 + 9 33.190304 + 10 35.892051 + 11 33.734864 + 12 31.231748 + 13 32.997263 + 14 31.953924 + 15 31.359396 + 16 31.367073 + + [キャッシュ無し : file 読み込み時間あり] + [mmap] + 1 96.669395 + 4 47.382920 + 8 40.574622 + 16 41.616542 + + [bread] + 1 84.327310 + 4 44.930445 + 8 43.237358 + 16 42.504598 + + egrep -o -1 85.171171 -2 55.709298 -3 48.688031 -4 42.053209 -5 40.690125 -6 37.075352 -7 34.771558 -8 36.138412 -9 33.190304 -10 35.892051 -11 33.734864 -12 31.231748 -13 32.997263 -14 31.953924 -15 31.359396 -16 31.367073 + [キャッシュ無し] + egrep -o '[A-Z][a-zA-Z0-9_]*' ../../../Game/Cerium/example/bm_search/1GB.txt + 110.78s user 24.05s system 99% cpu 2:15.22 total + + [キャッシュ有り] + egrep -o '[A-Z][a-zA-Z0-9_]*' ../../../Game/Cerium/example/bm_search/1GB.txt + 111.36s user 24.28s system 99% cpu 2:16.33 total + + + + ./cerium/ceriumGrep -regex '(a|b)*a(a|b)(a|b)' -file ../../../Game/Cerium/example/bm_search/1GB.txt -cpu 8 + cpu time + 1 58.409044 + 2 30.587006 + 3 19.761497 + 4 15.099642 + 5 12.150340 + 6 10.202328 + 7 8.794964 + 8 7.791925 + 9 6.884088 + 10 6.195592 + 11 5.702492 + 12 5.412080 + 13 5.330420 + 14 5.247614 + 15 5.165163 + 16 5.115427 + + [mmap] + 1 70.830896 + 4 23.777594 + 8 16.743966 + 16 15.853613 -[mmap] -8 40.574622 -16 41.616542 + [bread] + 1 58.259406 + 4 19.307748 + 8 17.217379 + 16 15.243179 + + egrep -o '(a|b)*a(a|b)(a|b)' ../../../Game/Cerium/example/bm_search/1GB.txt + 106.43s user 0.32s system 99% cpu 1:46.75 total + +---------------------------------------------------------------- + firefly + (a|b) の数を増やしてみる + ./cerium/ceriumGrep -subset -regex '(a|b)*a(a|b)[...]' -file file/ab1GB.txt -cpu 8 + + regex : (a|b)*a(a|b) + + cpu time + 8 130.188505 -[bread] -8 43.237358 -16 42.504598 + regex : (a|b)*a(a|b)(a|b) + cpu time + 8 113.549269 + + regex : (a|b)*a(a|b)(a|b)(a|b) + 8 114.059856 + + regex : (a|b)*a(a|b)(a|b)(a|b)(a|b) + 8 115.274656 -egrep -o -[キャッシュ無し] -egrep -o '[A-Z][a-zA-Z0-9_]*' ../../../Game/Cerium/example/bm_search/1GB.txt 110.78s user 24.05s system 99% cpu 2:15.22 total + egrep -o '(a|b)*a(a|b)(a|b)' file/ab1GB.txt + 223.31s user 40.86s system 99% cpu 4:24.17 total + + egrep -o '(a|b)*a(a|b)(a|b)(a|b)' file/ab1GB.txt + 240.23s user 35.46s system 99% cpu 4:35.70 total -[キャッシュ有り] + egrep -o '(a|b)*a(a|b)(a|b)(a|b)(a|b)' file/ab1GB.txt + 252.63s user 35.24s system 99% cpu 4:47.87 total + + Print があまりにも大きすぎて time の大半は Print じゃないか説 + + + CentOS 7.2 os.cr.ie.u-ryukyu.ac.jp +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memo/test.gpi Wed Feb 03 18:45:18 2016 +0900 @@ -0,0 +1,172 @@ +#!/usr/local/Cellar/gnuplot/5.0.2/bin/gnuplot +# +# +# G N U P L O T +# Version 5.0 patchlevel 2 last modified 2015-12-24 +# +# Copyright (C) 1986-1993, 1998, 2004, 2007-2015 +# Thomas Williams, Colin Kelley and many others +# +# gnuplot home: http://www.gnuplot.info +# faq, bugs, etc: type "help FAQ" +# immediate help: type "help" (plot window: hit 'h') +# set terminal unknown leveldefault monochrome blacktext \ + dashlength 1.0 linewidth 1.0 butt noclip \ + nobackground \ + palfuncparam 2000,0.003 \ + input "" 11 fontscale 1.0 +# set output 'test.eps' +unset clip points +set clip one +unset clip two +set bar 1.000000 front +set border 31 front lt black linewidth 1.000 dashtype solid +set zdata +set ydata +set xdata +set y2data +set x2data +set boxwidth +set style fill empty border +set style rectangle back fc bgnd fillstyle solid 1.00 border lt -1 +set style circle radius graph 0.02, first 0.00000, 0.00000 +set style ellipse size graph 0.05, 0.03, first 0.00000 angle 0 units xy +set dummy x, y +set format x "% h" +set format y "% h" +set format x2 "% h" +set format y2 "% h" +set format z "% h" +set format cb "% h" +set format r "% h" +set timefmt "%d/%m/%y,%H:%M" +set angles radians +set tics back +unset grid +set raxis +set style parallel front lt black linewidth 2.000 dashtype solid +set key title "" center +set key inside right top vertical Right noreverse enhanced autotitle nobox +set key noinvert samplen 4 spacing 1 width 0 height 0 +set key maxcolumns 0 maxrows 0 +set key noopaque +unset label +unset arrow +set style increment default +unset style line +unset style arrow +set style histogram clustered gap 2 title textcolor lt -1 +unset object +set style textbox transparent margins 1.0, 1.0 border +unset logscale +set offsets 0, 0, 0, 0 +set pointsize 1 +set pointintervalbox 1 +set encoding default +unset polar +unset parametric +unset decimalsign +set view 60, 30, 1, 1 +set samples 100, 100 +set isosamples 10, 10 +set surface +unset contour +set cntrlabel format '%8.3g' font '' start 5 interval 20 +set mapping cartesian +set datafile separator whitespace +unset hidden3d +set cntrparam order 4 +set cntrparam linear +set cntrparam levels auto 5 +set cntrparam points 5 +set size ratio 0 1,1 +set origin 0,0 +set style data points +set style function lines +unset xzeroaxis +unset yzeroaxis +unset zzeroaxis +unset x2zeroaxis +unset y2zeroaxis +set xyplane relative 0.5 +set tics scale 1, 0.5, 1, 1, 1 +set mxtics default +set mytics default +set mztics default +set mx2tics default +set my2tics default +set mcbtics default +set mrtics default +set xtics border in scale 1,0.5 mirror norotate autojustify +set xtics norangelimit autofreq +set ytics border in scale 1,0.5 mirror norotate autojustify +set ytics norangelimit autofreq +set ztics border in scale 1,0.5 nomirror norotate autojustify +set ztics norangelimit autofreq +unset x2tics +unset y2tics +set cbtics border in scale 1,0.5 mirror norotate autojustify +set cbtics norangelimit autofreq +set rtics axis in scale 1,0.5 nomirror norotate autojustify +set rtics norangelimit autofreq +unset paxis 1 tics +unset paxis 2 tics +unset paxis 3 tics +unset paxis 4 tics +unset paxis 5 tics +unset paxis 6 tics +unset paxis 7 tics +set title "" +set title font "" norotate +set timestamp bottom +set timestamp "" +set timestamp font "" norotate +set rrange [ * : * ] noreverse nowriteback +set trange [ * : * ] noreverse nowriteback +set urange [ * : * ] noreverse nowriteback +set vrange [ * : * ] noreverse nowriteback +set xlabel "" +set xlabel font "" textcolor lt -1 norotate +set x2label "" +set x2label font "" textcolor lt -1 norotate +set xrange [ * : * ] noreverse nowriteback +set x2range [ * : * ] noreverse nowriteback +set ylabel "" +set ylabel font "" textcolor lt -1 rotate by -270 +set y2label "" +set y2label font "" textcolor lt -1 rotate by -270 +set yrange [ * : * ] noreverse nowriteback +set y2range [ * : * ] noreverse nowriteback +set zlabel "" +set zlabel font "" textcolor lt -1 norotate +set zrange [ * : * ] noreverse nowriteback +set cblabel "" +set cblabel font "" textcolor lt -1 rotate by -270 +set cbrange [ * : * ] noreverse nowriteback +set paxis 1 range [ * : * ] noreverse nowriteback +set paxis 2 range [ * : * ] noreverse nowriteback +set paxis 3 range [ * : * ] noreverse nowriteback +set paxis 4 range [ * : * ] noreverse nowriteback +set paxis 5 range [ * : * ] noreverse nowriteback +set paxis 6 range [ * : * ] noreverse nowriteback +set paxis 7 range [ * : * ] noreverse nowriteback +set zero 1e-08 +set lmargin -1 +set bmargin -1 +set rmargin -1 +set tmargin -1 +set locale "en_US.UTF-8" +set pm3d explicit at s +set pm3d scansautomatic +set pm3d interpolate 1,1 flush begin noftriangles noborder corners2color mean +set palette positive nops_allcF maxcolors 0 gamma 1.5 color model RGB +set palette rgbformulae 7, 5, 15 +set colorbox default +set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front bdefault +set style boxplot candles range 1.50 outliers pt 7 separation 1 labels auto unsorted +set loadpath +set fontpath +set psdir +set fit brief errorvariables nocovariancevariables errorscaling prescale nowrap v5 + +# EOF
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memo/test.tex Wed Feb 03 18:45:18 2016 +0900 @@ -0,0 +1,104 @@ +% GNUPLOT: LaTeX picture with Postscript +\begingroup + \makeatletter + \providecommand\color[2][]{% + \GenericError{(gnuplot) \space\space\space\@spaces}{% + Package color not loaded in conjunction with + terminal option `colourtext'% + }{See the gnuplot documentation for explanation.% + }{Either use 'blacktext' in gnuplot or load the package + color.sty in LaTeX.}% + \renewcommand\color[2][]{}% + }% + \providecommand\includegraphics[2][]{% + \GenericError{(gnuplot) \space\space\space\@spaces}{% + Package graphicx or graphics not loaded% + }{See the gnuplot documentation for explanation.% + }{The gnuplot epslatex terminal needs graphicx.sty or graphics.sty.}% + \renewcommand\includegraphics[2][]{}% + }% + \providecommand\rotatebox[2]{#2}% + \@ifundefined{ifGPcolor}{% + \newif\ifGPcolor + \GPcolorfalse + }{}% + \@ifundefined{ifGPblacktext}{% + \newif\ifGPblacktext + \GPblacktexttrue + }{}% + % define a \g@addto@macro without @ in the name: + \let\gplgaddtomacro\g@addto@macro + % define empty templates for all commands taking text: + \gdef\gplbacktext{}% + \gdef\gplfronttext{}% + \makeatother + \ifGPblacktext + % no textcolor at all + \def\colorrgb#1{}% + \def\colorgray#1{}% + \else + % gray or color? + \ifGPcolor + \def\colorrgb#1{\color[rgb]{#1}}% + \def\colorgray#1{\color[gray]{#1}}% + \expandafter\def\csname LTw\endcsname{\color{white}}% + \expandafter\def\csname LTb\endcsname{\color{black}}% + \expandafter\def\csname LTa\endcsname{\color{black}}% + \expandafter\def\csname LT0\endcsname{\color[rgb]{1,0,0}}% + \expandafter\def\csname LT1\endcsname{\color[rgb]{0,1,0}}% + \expandafter\def\csname LT2\endcsname{\color[rgb]{0,0,1}}% + \expandafter\def\csname LT3\endcsname{\color[rgb]{1,0,1}}% + \expandafter\def\csname LT4\endcsname{\color[rgb]{0,1,1}}% + \expandafter\def\csname LT5\endcsname{\color[rgb]{1,1,0}}% + \expandafter\def\csname LT6\endcsname{\color[rgb]{0,0,0}}% + \expandafter\def\csname LT7\endcsname{\color[rgb]{1,0.3,0}}% + \expandafter\def\csname LT8\endcsname{\color[rgb]{0.5,0.5,0.5}}% + \else + % gray + \def\colorrgb#1{\color{black}}% + \def\colorgray#1{\color[gray]{#1}}% + \expandafter\def\csname LTw\endcsname{\color{white}}% + \expandafter\def\csname LTb\endcsname{\color{black}}% + \expandafter\def\csname LTa\endcsname{\color{black}}% + \expandafter\def\csname LT0\endcsname{\color{black}}% + \expandafter\def\csname LT1\endcsname{\color{black}}% + \expandafter\def\csname LT2\endcsname{\color{black}}% + \expandafter\def\csname LT3\endcsname{\color{black}}% + \expandafter\def\csname LT4\endcsname{\color{black}}% + \expandafter\def\csname LT5\endcsname{\color{black}}% + \expandafter\def\csname LT6\endcsname{\color{black}}% + \expandafter\def\csname LT7\endcsname{\color{black}}% + \expandafter\def\csname LT8\endcsname{\color{black}}% + \fi + \fi + \setlength{\unitlength}{0.0500bp}% + \ifx\gptboxheight\undefined% + \newlength{\gptboxheight}% + \newlength{\gptboxwidth}% + \newsavebox{\gptboxtext}% + \fi% + \setlength{\fboxrule}{0.5pt}% + \setlength{\fboxsep}{1pt}% +\begin{picture}(7200.00,5040.00)% + \gplgaddtomacro\gplbacktext{% + \csname LTb\endcsname% + \put(594,440){\makebox(0,0)[r]{\strut{}$-10$}}% + \put(594,1524){\makebox(0,0)[r]{\strut{}$-5$}}% + \put(594,2608){\makebox(0,0)[r]{\strut{}$0$}}% + \put(594,3691){\makebox(0,0)[r]{\strut{}$5$}}% + \put(594,4775){\makebox(0,0)[r]{\strut{}$10$}}% + \put(726,220){\makebox(0,0){\strut{}$-10$}}% + \put(2245,220){\makebox(0,0){\strut{}$-5$}}% + \put(3765,220){\makebox(0,0){\strut{}$0$}}% + \put(5284,220){\makebox(0,0){\strut{}$5$}}% + \put(6803,220){\makebox(0,0){\strut{}$10$}}% + }% + \gplgaddtomacro\gplfronttext{% + \csname LTb\endcsname% + \put(5816,4602){\makebox(0,0)[r]{\strut{}x}}% + }% + \gplbacktext + \put(0,0){\includegraphics{test}}% + \gplfronttext + \end{picture}% +\endgroup