Gnuplot is a command-line program that is used mainly for plotting data. It is my favourite plotting program that I have been using since my undergraduate days..
I have been collecting commands that I frequently use into a text file.
Here, I have decided to help share a few basic examples that I hope can benefit you..
Before starting, i strongly suggest you to write your commands into a notepad file..
Typically, i would save it as a [.plt] file but you can also save it as a [.txt] file.
Using this file, you can load it into gnuplot but first, make sure you change the folder location.
gnuplot > cd ‘c:\windows\user\desktop’
gnuplot > load ‘filename.plt’
- Terminals – How does Gnuplot works?
- Plotting Functions or Equations in Gnuplot
- Importing Data into Gnuplot
- Plotting Data in Gnuplot
- Adding labels
- Linear fitting with Hooke’s Law
- Non-linear fitting for a non-periodic signal
- Non-linear fitting for a decaying, single frequency with DC offset.
- Non-linear fitting for a decaying, multi-frequency with DC offset.