KTUGFaq

KTUG FAQ

α:
йȣ:
Let a fool hold his tongue and he will pass for a sage.
GFaq&value=CygWinġϱ媛„寃⑸„;TeXShop/PDFSync&value=LaTeX/FindPagelikesam&value=WinEdtTip/FindPageDocuments&value=KC2006 › GNUPlot

1 ٿε Ȯ
2 Ϲ
3 LaTeX 1 - function plot
3.1 Gnu plot(plt) ҽ
3.2 LaTeX ҽ .
3.3 latex -> dvipdfmx ̿Ͽ pdf Ѵ.
4 LaTeX 2 - data plot
4.1 ͸
4.2 Gnu plot(plt) ҽ
4.3 LaTeX ҽ .
4.4 latex -> dvipdfmx ̿Ͽ pdf Ѵ.
5 LaTeX (3) : gnuplottex
6 KTUGFaq Wiki GNUPlot Processor

GNU Plot ϰ ִ Plotting ̴. ̸ ̿Ͽ 2/3 ׷ ִ. · ϸ Ư LaTeX ¸尡 ִ. Ư LaTeX ׷ ȿ ѱ ʿϴٸ epslatex ϴ .

[]

1 ٿε Ȯ

  1. ġ GNUPlot ٿε ޴´. Linux뵵 ְ Win32뵵 ִ.
  2. Unpack Ư Install ϴ 丮 Copy Ѵ.
  3. Path GNUPlot binary ִ ġ ش.
    •  D:\prog\gnuplot\binaries PATH ߰Ѵ.
  4. demo 丮 , dem ƹų Ų.
    •  wgnuplot simple.dem ϸ ǰ, ׷ ش.
    • gnuplot.jpg
  5. wgnuplot stand-alone Ҷ Ʈ ũⰡ ʹ۾Ƽ ʴµ, ̶ ȭ鿡 콺 Ŀ , 콺 ư , Choose Font Ͽ Ʈ ũ⸦ Ű.

[]

2 Ϲ

  1. install 丮 docs gnuplot.pdf ִ.
  2. Introduction [http]http://www.cs.uni.edu/Help/gnuplot/
  3. FAQ [http]http://www.gnuplot.info/faq/
  4. gnuplot tips (not so Frequently Asked Questions) [http]http://t16web.lanl.gov/Kawano/gnuplot/index-e.html
  5. [http]ѱ۸Ŵ
[]

3 LaTeX 1 - function plot

[]

3.1 Gnu plot(plt) ҽ

  • . GNUPlot ҽ test.plt .
    • wgnuplot test.plt ϸ hello.tex .
set terminal latex
set output "hello.tex"
plot [0:2*pi] [-1.2:1.2] sin(x)
[]

3.2 LaTeX ҽ .

\documentclass{article}
\usepackage{hfont}
\begin{document}
\begin{figure}[htb]
  \centering
    \input{hello.tex}
  \vspace{-.3in}
  \caption{GNUPlot  ̿ }
  \label{plt:testplt}
\end{figure}
\end{document}
[]

3.3 latex -> dvipdfmx ̿Ͽ pdf Ѵ.

  • pdf .
    gnuplotpdf.jpg

[]

4 LaTeX 2 - data plot

[]

4.1 ͸

1
2
3
4
5
4
3
4
3
2
1
  • ̶ Ϸ ͸ data.dat ؾ Ѵ.
[]

4.2 Gnu plot(plt) ҽ

set terminal latex
set output "hello2.tex"
plot "data.dat"
[]

4.3 LaTeX ҽ .

  • ̶ \Diamond ǹǷ \usepackage{latexsym} ߰ؾ Ѵ.

[]

4.4 latex -> dvipdfmx ̿Ͽ pdf Ѵ.

  • pdf .
    gnuplotpdf2.jpg
[]

5 LaTeX (3) : gnuplottex

gnuplot ڵ带 LaTeX ҽ ־ ׸ ԽŰ .
\documentclass[a4paper]{article}

\usepackage[pdf]{gnuplottex}

\begin{document}

\begin{gnuplot}[width=.3\textwidth]
        plot sin(x)
\end{gnuplot}

\begin{gnuplot}
        set grid
        set title 'gnuplottex test'
        set ylabel 'y'
        set xlabel 'x'
        plot exp(x) with linespoints
\end{gnuplot}

\end{document}
ÿ --shell-escape ɼ ش.
#> pdflatex --shell-escape example
[]

6 KTUGFaq Wiki GNUPlot Processor

gnuplot
 - #!gnuplot
- plot [0:10*pi] [-1:1] sin(x)*exp(-0.1*x)

̷ Wiki󿡼 gnuplot ɾ ġ ڵ GNUPlot ̵˴ϴ.

Contributors: smcho

See KLE:GnuPlot


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-04-04 09:32:27
Processing time 0.0537 sec