1 / 12

Gnuplot の使い方

Gnuplot の使い方. ~基礎演習4  用~. 基本 設定1. 必須. set terminal png set output “ 出力ファイルパス名 ” set title “ タイトル ” set xlable “ 横軸名 ” set ylable “ 縦軸名 ” set xrange [-10:10] set yrange [0:100]. 基本 設定2. set xtics “ 目盛間隔 ” = set {x 目盛 |y 目盛 }tics set m{x 目盛 |y 目盛 }tics ( 大きい目盛分割 )

mimis
Download Presentation

Gnuplot の使い方

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Gnuplotの使い方 ~基礎演習4  用~

  2. 基本設定1 必須 • set terminal png • set output “出力ファイルパス名” • set title “タイトル” • set xlable “横軸名” • set ylable “縦軸名” • set xrange [-10:10] • set yrange [0:100]

  3. 基本設定2 • set xtics “目盛間隔” = set {x目盛|y目盛}tics • set m{x目盛|y目盛}tics (大きい目盛分割) • set grid (グリッド線を引く) • set logscalex • set logscale y

  4. 凡例 • set key left bottom • set nokey

  5. • set style line 1 lt 1 lw 4

  6. 線種

  7. symbols

  8. 関数プロット • plot sin(x),cos(x)   (複数プロット) • plot sin(x) title “sin”, cos(x) title “cos” • splot x**2+y**2 (3次元プロット) • 等高線のプロットなども可能

  9. 実験データをプロットする1 • lines(折れ線グラフ) • dots(散布図) • points(散布図) • linespoints(折れ線グラフ) • boxes(棒グラフ)

  10. 実験データをプロットする2 • plot “file.dat“ \ index 0:0 \ using 1:2:3 \ title “凡例に表示されるタイトル1“ \ with points, \ “file.dat“ \ index 1:2 \ using 1:2:3 \ title “凡例に表示されるタイトル2” \ with lines

  11. file.dat index 0 → # Data No. 1 2.1500E-02 1.3060E+00 5.3098E-02 2.3900E-02 1.2220E+00 4.7043E-02 2.6800E-02 1.3430E+00 4.9854E-02 2.9700E-02 1.2580E+00 4.5860E-02 3.2500E-02 1.2430E+00 4.4506E-02 .... 9.4500E-01 1.2290E+00 3.7317E-02 1.0350E+00 1.2630E+00 4.1449E-02 1.1330E+00 1.2670E+00 4.2289E-02 # Data No. 2 2.4000E-02 1.2970E+00 3.1387E-02 4.0000E-02 1.3060E+00 2.8993E-02 6.0000E-02 1.2960E+00 2.8382E-02 8.0000E-02 1.3300E+00 2.8728E-02 .... 7.0000E+00 1.2210E+00 2.5031E-02 7.2000E+00 1.1990E+00 2.5299E-02 7.4000E+00 1.1860E+00 2.5618E-02 index 1 →

More Related