Last active
February 2, 2020 19:54
-
-
Save WestleyR/124ff82093df6d59d308f272a0fbf4ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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