Last active
December 27, 2015 12:49
-
-
Save bldewolf/7328405 to your computer and use it in GitHub Desktop.
Plotting time of day vs date example
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 | |
set term png | |
set output "yourmom.png" | |
set terminal png size 600,300 | |
set grid nopolar | |
# example | |
# Aug 24 2010,01,21,username | |
set xdata time | |
set timefmt "%b %d %Y" | |
set datafile separator "," | |
#set format x "%Y-%m-%d %H:%M:%S" | |
set format x "%Y-%m-%d" | |
#set xtics 86400 | |
set ytics 1 | |
set yrange [0:24] | |
plot 'yourmom.dat' using 1:($2 + ($3 / 60.0)):(86400):(0) with vectors nohead notitle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment