How to draw trend line in the GNUPLOT?
If you like to plot graphs in gnuplot and dont know how to plot trendline then here you are. Follow the steps mentioned below...
1. You should have a files with X and Y values
2. Open GNUPLOT (Operating system dosen't change anything here. It works on all systems)
3. Type the command in the gnuplot terminal
Lets say I have a file for eg. '1.txt'
p '1.txt' u 1:2 w d title '', '1.txt' u 1:2 smooth acsplines title '1.txt'
OR
p '1.txt' u 1:2 w d title '', '1.txt' u 1:2 smooth bezier title '1.txt'
It will plot as below...
Comments
Post a Comment