Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2005-09-07 08:48:56
Size: 3442
Editor: 221
Comment:
Revision 5 as of 2011-08-03 11:01:01
Size: 2745
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
http://www.cs.uni.edu/Help/gnuplot/
Line 11: Line 10:
 * [http://t16web.lanl.gov/Kawano/gnuplot/index-e.html Gnuplot - not so frequently asked question]: GnuPlot의 거의 모든 것이라고 할 만큼 잘 되어 있습니다. '''강추'''  * [[http://t16web.lanl.gov/Kawano/gnuplot/index-e.html|Gnuplot - not so frequently asked question]]: GnuPlot의 거의 모든 것이라고 할 만큼 잘 되어 있습니다. '''강추'''
Line 26: Line 25:
gnuplot> plot sin(x) gnuplot> plot sin(x)
Line 32: Line 31:
gnuplot> plot [-2*pi:2*pi][-1.5:1.5]cos(x) gnuplot> plot [-2*pi:2*pi][-1.5:1.5]cos(x)
Line 58: Line 57:
gnuplot> plot "text2.txt" gnuplot> plot "text2.txt"
Line 64: Line 63:
gnuplot> plot "text2.txt" u(sing) 2:3 gnuplot> plot "text2.txt" u(sing) 2:3
Line 72: Line 71:
gnuplot> splot exp(x)+exp(y) gnuplot> splot exp(x)+exp(y)
Line 75: Line 74:
하게되면, $$ z = e^x + e^y $$ 그래프를 출력한다. 3차원 데이터 플롯은 splot을 명령어로 사용한다. 하게되면, z = e^x ^+ e^y^ 그래프를 출력한다. 3차원 데이터 플롯은 splot을 명령어로 사용한다.
Line 80: Line 79:
gnuplot> set term png
gnuplot> set output 'test.png'
gnuplot> set term png
gnuplot> set output 'test.png'
Line 87: Line 86:



 == this is my text ==

[http://gay.the-best.etowns.org/index.htm | gay]
[http://gay.the-best.etowns.org/gay-stories/ | gay stories]
[http://gay.the-best.etowns.org/gay-men/ | gay men]
[http://gay.the-best.etowns.org/gay-chat/ | gay chat]
[http://gay.the-best.etowns.org/gay-pics/ | gay pics]
[http://gay.the-best.etowns.org/free-gay-movies/ | free gay movies]
[http://gay.the-best.etowns.org/gay-photography/ | gay photography]
[http://gay.the-best.etowns.org/free-gay-pictures/ | free gay pictures]
[http://gay.the-best.etowns.org/gay-personals/ | gay personals]
[http://gay.the-best.etowns.org/free-gay/ | free gay]

[GNU]를 따르는 명령행입력방식의 그래프작성용 프로그램. 유사한 프로그램으로 [DISLIN]이 있다.

http://www.gnuplot.info/

각종자료

GraphViz와 함께 사용하면, WebProgramming에 쉽게 적용할 수 있다. pm3d를 패치하면 더욱 멋진 그래프를 볼수 있다. (맨 밑의 그래프 참고)

MoinMoin 1.1에서 GnuPlot을 쓸 수 있다. GnuPlotInMoinMoin

각종 예제들 : http://ayapin.film.s.dendai.ac.jp/~matuda/Gnuplot/pm3d.html

쉬운 사용법 설명

gnuplot 프롬프트상에서 다음을 입력한다.

함수 그래프 그리기

gnuplot> plot sin(x)

plot명령은 2차원그래프를 그리는것이다. x를 변수로 하는 그래프를 자동으로 그린다. 세부옵션으로,

gnuplot> plot [-2*pi:2*pi][-1.5:1.5]cos(x)

ParametricPlot도 가능하다.

데이터 플롯

x축범위와 y축범위를 각각 설정한다.

#text2.txt
#t      x        y        v       E
0.11    0.11    99.94   1       -1.078
0.12    0.12    99.92   1       -1.176
0.13    0.13    99.91   1       -1.274
0.14    0.14    99.90   1       -1.372
0.15    0.15    99.88   1       -1.470
0.16    0.16    99.87   1       -1.568
0.17    0.17    99.85   1       -1.666
0.18    0.18    99.84   1       -1.764
0.19    0.19    99.82   1       -1.862

데이터를 그리고 싶을경우

gnuplot> plot "text2.txt"

하게 되면, 첫번째와 두번째 데이터를 2차원 플롯하게 된다.

gnuplot> plot "text2.txt" u(sing) 2:3

하게되면 두번째와 세번째 데이터를 2차원 플롯한다.

3차원 함수/데이터의 플롯

gnuplot> splot exp(x)+exp(y)

하게되면, z = ex + ey 그래프를 출력한다. 3차원 데이터 플롯은 splot을 명령어로 사용한다.

그래프의 추출

gnuplot> set term png
gnuplot> set output 'test.png'

자동 완성

GnuPlot은 자동완성을 지원합니다. plot이라는 명령은 pl로, replotrep로 쓸 수 있고, set terminal postscript 같은 명령은 set term post라고 줄여 쓸 수 있습니다.


CategoryProgram

GnuPlot (last edited 2011-08-18 12:32:41 by 211)

web biohackers.net