220 likes | 552 Views
gnuplot. What is gnuplot? an interactive plotting program. Learning gnuplot in 15 minutes. First 2 minutes: plotting interactively. Step1: type “gnuplot” at your terminal. Step2: type “plot sin(x) with line”. Step3: type “plot sin(x) with point”.
E N D
gnuplot What is gnuplot? an interactive plotting program
Learning gnuplot in 15 minutes First 2 minutes: plotting interactively Step1: type “gnuplot” at your terminal Step2: type “plot sin(x) with line” Step3: type “plot sin(x) with point” In gnuplot you can do every think interactively
Learning gnuplot in 15 minutes Second 2 minutes: abbreviations Step1: Instead of typing “plot sin(x) with line” you can type “p sin(x) w l” Step2: 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 Step1: Plot every thing you want Step2: Type “set terminal postscript color” Step3: Type “set output “nameofplot.ps”” Step4: Type “replot” or “rep” In gnuplot “set” keyword use to set color, output, title, labels and ...
Learning gnuplot in 15 minutes 4th 2 minutes: set label and title Step1: Plot every thing you want Step2: Type “set title “plotname”” Step3: Type “set ylable “ylabel”” Step4: Type “set xlable “xlabel”” Step5: Type “replot” or “rep” In gnuplot “set” keyword use to set color, output, title, labels and ...
Learning gnuplot in 15 minutes 5th 2 minutes: plot several plots on one windows Step1: Type “plot sin(x) with line title “sin(x)”” Step2: Type “replot sin(x**2) with line title “sin(x^2)”” Step3: Type “replot x**2 with line title “x^2”” Step4: 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 6th 2 minutes: set range of your plot Step1: Type “plot [-5:5][-2:2] sin(x) with line” Step2: Type “plot [-5:] sin(x) with line” Step3: 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 7th 2 minutes: plotting data Step1: Type “plot “yourdata.dat” using 1:2 with line” Step2: 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: 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://t16web.lanl.gov/Kawano/gnuplot/index-e.html Use Google to learn more about gnuplot
Other means for plotting Origin Sigmaplot Xmgrace