updated xrange
This commit is contained in:
parent
465c2735ee
commit
e5dac03c61
11
plot.rb
11
plot.rb
|
@ -1,12 +1,14 @@
|
|||
# coding: utf-8
|
||||
users = ["christoffermadsen","jmaa","jacob","alexander"]
|
||||
colors = {}
|
||||
|
||||
users.each do |user|
|
||||
colors[user] = "%06x" % (rand * 0xffffff)
|
||||
end
|
||||
log_dir = "./log/"
|
||||
plotstring = %Q[set terminal 'svg' size 800,400
|
||||
set key bottom outside
|
||||
plotstring = %Q[set terminal 'svg' size 800,400 fname 'Verdana, Helvetica, Arial, sans-serif' \
|
||||
fsize '14' rounded dashed
|
||||
set key top left outside
|
||||
|
||||
set style line 1 lt 1 lw 2 pt 7 ps 0.4
|
||||
|
||||
|
@ -14,7 +16,8 @@ set xlabel "Time"
|
|||
set xdata time
|
||||
set timefmt "%s"
|
||||
set format x "%m/%d"
|
||||
set xtics 172800
|
||||
set xtics 60*60*24
|
||||
set xrange [1485275000:]
|
||||
set mxtics 2
|
||||
set grid ytics mytics xtics mxtics
|
||||
|
||||
|
@ -49,3 +52,5 @@ end
|
|||
output = File.open("plotscript","w")
|
||||
output << plotstring
|
||||
output.close
|
||||
|
||||
`gnuplot plotscript`
|
||||
|
|
Loading…
Reference in New Issue
Block a user