TeXばなし > gnuplotの図の修正
*gnuplotの図の修正 #contents(fromhere) **set size squareのBoundingBox修正 http://t16web.lanl.gov/Kawano/gnuplot/postscript.html http://www.meteorology.jp/XOOPS/modules/newbb/viewtopic.php?topic_id=32&forum=2 をヒントに作成。 1.fixbb.shを作成。 #!/bin/bash input=$1 output=$2 eps2eps ${input} ${input}_temp ;\ sed -n '1,/^%%BoundingBox:/p' ${input} |\ sed -e '$d' >\ ${output} ;\ grep '^%%BoundingBox:' ${input}_temp >>\ ${output} ;\ sed -n '/^%%BoundingBox:/,$p' ${input} |\ sed -e '1d' >>\ ${output} ;\ rm ${input}_temp 2.あとは使うだけ。 ./fixbb.sh before.ps after.ps ** [[戻る>TeXばなし]] ----