Sha256: 78903848ef1c2542532a7ce594b63281a2bc5267739addf684e61b0fa79d26cd
Contents?: true
Size: 358 Bytes
Versions: 3
Compression:
Stored size: 358 Bytes
Contents
defplot do |plotter| plotter.plot.xrange '[0.5:7.5]' plotter.plot.xtics '1' plotter.plot.ylabel 'Commits' plotter.add_boxes(:setrange => false, :limitlabels => false) do |x, l, y| for i in 0..6 s = stats.wday_stats[i] day = (i + 6) % 7 x << day + 1 l << weekday(day) y << (s.nil? ? 0 : s.commits) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
gitstats-rb-2.0.0 | template/gnuplot/commits_per_wday.plot |
gitstats-ruby-1.0.1 | template/commits_per_wday.plot |
gitstats-ruby-1.0.0 | template/commits_per_wday.plot |