Wstep do narzedzia GNUPLOT
GNUPLOT
- Program Gnuplot w systemie linux uruchamia sie wydajac w linii polecen komende
gnuplot
-
Gnuplot dla Windows
- Aby uzyskac pomoc w Gnuplocie wydajemy polecenie:
gnuplot> help
- Przykladowe polecenia:
gnuplot> plot sin(x)
gnuplot> plot [x=0:4*pi] sin(x)
gnuplot> plot [-pi:pi][-2:2] sin(x)
gnuplot> plot [-pi:pi][-2:2] sin(x) title "Sinus" with lines lt 6 lw 3
gnuplot> plot [-pi:pi][-2:2] sin(x) title "Sinus" with lines lt 6 lw 2, cos(x) title "Cosinus" with points pt 3 ps 2
- Korzystanie ze zbioru danych z pliku:
Przykladowe dane:
fun1.txt.
gnuplot> plot "fun1.txt"
gnuplot> plot "fun1.txt" using 1:3
gnuplot> plot "fun1.txt" using 1:2 w boxes
gnuplot> plot "fun1.txt" using 1:($2+$3)/2:2:3 w yerrorbars
- Wykonywanie komend zapisanych w pliku:
gnuplot> load "wynik_plot"
- Zapisywanie wykresow jako jpeg/gif
|