Skip to content

Instantly share code, notes, and snippets.

@artbikes
Last active November 2, 2018 17:24
Show Gist options
  • Save artbikes/0cbe23e5c9d014b06083769d6025ba62 to your computer and use it in GitHub Desktop.
Save artbikes/0cbe23e5c9d014b06083769d6025ba62 to your computer and use it in GitHub Desktop.
gnuplot $$
FROM debian:sid
RUN apt-get update -y
RUN apt-get install -y gnuplot
ENTRYPOINT ["/usr/bin/gnuplot"]
gnuplot(){
docker run --rm \
--volume $PWD:/mnt/work -w /mnt/work \
artbikes/gnuplot "$@"
}
2018-07-01
2017-01-01 10,000
set term png
set output "newssa.png"
set xdata time
unset xtics
set timefmt "%Y-%m-%d"
set xrange [ "1983-01-01" : "2017-01-01"]
set style line 1 \
linecolor rgb '#0060ad' \
linetype 1 linewidth 2 \
pointtype 7 pointsize 1.5
max = 200
plot 'newssa.data'using 1:2 with linespoints linestyle 1 notitle, \
'jobs.dat' using 1:(max) with impulses lw 2 notitle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment