Category: Gnuplot

  • clear
    set multiplot
    set xrange [0:pi*4]
    set yrange [-1.1:1.1]
    set style line 1 line color rgb 'red'
    set style line 2 line color rgb 'green'
    set style line 3 line color rgb 'blue'
    plot sin(x) linestyle 1, \
     cos(x) linestyle 2, \
     tan(x) linestyle 3

    예전에 잠깐 사용해 보았던 gnuplot을 이용해서 삼각함수 그래프를 그려봤다. tan가 sin보다 크다는 것을 증명할 수 있을 것 같은데.. 이론적으로는 모르겠다. 기억이 안난다.