Skip to content

Instantly share code, notes, and snippets.

@shlomi-noach
Created January 12, 2016 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shlomi-noach/a75215569411fa186d75 to your computer and use it in GitHub Desktop.
Save shlomi-noach/a75215569411fa186d75 to your computer and use it in GitHub Desktop.
Use tiemserias input (TS,value) as input to gnuplot
# Assuming time series is in /tmp/ts-data.dat
# Assuming timeseries in 2015-01-02 format (change according to data)
echo '
set xdata time
set timefmt "%Y-%m-%d"
set terminal dumb size 120, 24
plot "/tmp/ts-data.dat" using 1:2 title "data pr time unit" with histeps
' | gnuplot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment