もちっとメモ

もちっとメモ

もぐりのエンジニアが日々の中で試してみたことを気が向いたときに書き連ねていきます

gnuplotからtex形式の画像を出力する

gnuplottexを出力

    
        set term epslatex 12 size 4in, 3in
        set o "test.eps"
        set xlabel "$\\alpha$"
    

texファイル

    
        \documentclass[a4paper,12pt]{article}
        \usepackage{graphicx}
        \usepackage{amsmath}
        \pagestyle{empty}
        \begin{document}
         \begin{figure}
         % GNUPLOT: LaTeX picture with Postscript
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         中略
         \put(横位置,縦位置) {\makebox~
         \put(横位置,縦位置) [width=サイズ,clip]{\includegraphics{}}%
         中略
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         \end{picture}%
         \endgroup
         \end{figure}
        \end{document}
    

gnuplotの破線

dt 1(実線) 2~4(破線)