Skip to content

Instantly share code, notes, and snippets.

@bldewolf
Last active December 27, 2015 12:49
Show Gist options
  • Save bldewolf/7328405 to your computer and use it in GitHub Desktop.
Save bldewolf/7328405 to your computer and use it in GitHub Desktop.
Plotting time of day vs date example
#!/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