Skip to content

Instantly share code, notes, and snippets.

@WestleyR
Last active February 2, 2020 19:54
Show Gist options
  • Save WestleyR/124ff82093df6d59d308f272a0fbf4ed to your computer and use it in GitHub Desktop.
Save WestleyR/124ff82093df6d59d308f272a0fbf4ed to your computer and use it in GitHub Desktop.
#!/usr/bin/gnuplot
# Created by: WestleyR
# email: westleyr@nym.hush.com
# Date: 2 Feb, 2020
# https://gist.github.com/WestleyR/124ff82093df6d59d308f272a0fbf4ed
# Version-1.0.0
#
# Set the output as a png
set terminal png size 1280,720
set output "output.png"
set size 1.0, 1.0
set title "Voltage/time graph"
set format y "%.2f"
set format x "%.2f"
# Add some specs, and notes
set label front "Discharge current: na\nTotal time: na\nTotal MAH: na\nNotes: na" at graph 0.05, graph 0.2 font ",16"
set ylabel "Voltage (volts)"
set xlabel "Time (minutes)"
set grid
# Plot the output
plot "input.txt" using 2:1 w l title "volts"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment