gnuplot What is gnuplot an interactive plotting program

  • Slides: 10
Download presentation
gnuplot What is gnuplot? an interactive plotting program

gnuplot What is gnuplot? an interactive plotting program

Learning gnuplot in 15 minutes First 2 minutes: plotting interactively Step 1: type “gnuplot”

Learning gnuplot in 15 minutes First 2 minutes: plotting interactively Step 1: type “gnuplot” at your terminal Step 2: type “plot sin(x) with line” Step 3: type “plot sin(x) with point” In gnuplot you can do every think interactively

Learning gnuplot in 15 minutes Second 2 minutes: abbreviations Step 1: Instead of typing

Learning gnuplot in 15 minutes Second 2 minutes: abbreviations Step 1: Instead of typing “plot sin(x) with line” you can type “p sin(x) w l” Step 2: Instead of typing “plot sin(x) with point” you can type “p sin(x) w p” In gnuplot you can use lots of abbreviations

Learning gnuplot in 10 minutes third 2 minutes: save our plot Step 1: Plot

Learning gnuplot in 10 minutes third 2 minutes: save our plot Step 1: Plot every thing you want Step 2: Type “set terminal postscript color” Step 3: Type “set output “nameofplot. ps”” Step 4: Type “replot” or “rep” In gnuplot “set” keyword use to set color, output, title, labels and. . .

Learning gnuplot in 15 minutes 4 th 2 minutes: set label and title Step

Learning gnuplot in 15 minutes 4 th 2 minutes: set label and title Step 1: Plot every thing you want Step 2: Type “set title “plotname”” Step 3: Type “set ylable “ylabel”” Step 4: Type “set xlable “xlabel”” Step 5: Type “replot” or “rep” In gnuplot “set” keyword use to set color, output, title, labels and. . .

Learning gnuplot in 15 minutes 5 th 2 minutes: plot several plots on one

Learning gnuplot in 15 minutes 5 th 2 minutes: plot several plots on one windows Step 1: Type “plot sin(x) with line title “sin(x)”” Step 2: Type “replot sin(x**2) with line title “sin(x^2)”” Step 3: Type “replot x**2 with line title “x^2”” Step 4: Type “replot. . . You can also do this: “p sin(x) w l t “sin(x), sin(x**2) w l t “sin(x^2), x**2. . . ”

Learning gnuplot in 15 minutes 6 th 2 minutes: set range of your plot

Learning gnuplot in 15 minutes 6 th 2 minutes: set range of your plot Step 1: Type “plot [-5: 5][-2: 2] sin(x) with line” Step 2: Type “plot [-5: ] sin(x) with line” Step 3: Type “plot [: ][-2: 2] sin(x) with line” When you set a range, this range is applied for other plots

Learning gnuplot in 15 minutes 7 th 2 minutes: plotting data Step 1: Type

Learning gnuplot in 15 minutes 7 th 2 minutes: plotting data Step 1: Type “plot “yourdata. dat” using 1: 2 with line” Step 2: Type “plot “yourdata. dat” using 1: 3 with line” You can use instead of “using” its abbreviation. e. g. “u”: “p “yourdata. dat” u 1: 2 w l”

Last minute See this web sites, it will be very useful to learn more:

Last minute See this web sites, it will be very useful to learn more: Goto gnuplot homepage: http: //www. gnuplot. info Goto gnuplot demos: http: //www. gnuplot. info/screenshots/index. html#demos Goto gnuplot tutorial: http: //www. gnuplot. info/help. html See also: http: //t 16 web. lanl. gov/Kawano/gnuplot/index-e. html Use Google to learn more about gnuplot

Other means for plotting Origin Sigmaplot Xmgrace

Other means for plotting Origin Sigmaplot Xmgrace