Template

You can use this file as template and make small changes when required.

# @title: Gnuplot Template
# @author: Aravind Reddy V
# @hints:
#	_{Subscript}, ^{Superscript}
#   1:(2*$2)

set terminal png truecolor             # Set output type to png
set grid                               # Turn on grid

unset log                              # Remove any previous log scaling
unset label                            # Remove any previous labels

set autoscale                          # Scale axes automatically
set xtic auto                          # set xtics automatically
set ytic auto                          # set ytics automatically


set output 'output.png'                # Set output file
set title 'Plot title'                 # Set plot title

# set datafile separator ","           # Uncomment when using CSV files

# set xtic add(1.1, 2.2)               # Add xtics at points
# set ytic add(1.1, 2.2)               # Add ytics at points

# set xr[0:10]
# set yr[0:10]


set xlabel "Time (ms)"                 # Set X axis label
set ylabel "Voltage (v)"               # Set Y axis label

plot '1.dat' using 1:2 with lines title 'Channel 1', \
     '1.dat' using 1:3 with lines title 'Channel 2'


Next: Conclusion

Last Updated: 8/14/2018, 10:07:05 PM