Sha256: b588e879b7eee9dd0475a1d7df299f529d6993f64623ce57479aba7d953df0d4

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

defplot do |plotter|
  plotter.plot.xrange '[-0.5:23.5]'
  plotter.plot.xtics '1'
  plotter.plot.ylabel 'Commits'

  plotter.add_boxes(:setrange => false, :limitlabels => false) do |x, l, y|
    for hour in 0..23
      s = stats.hour_stats[hour]
      x << hour
      l << hour
      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_hour.plot
gitstats-ruby-1.0.1 template/commits_per_hour.plot
gitstats-ruby-1.0.0 template/commits_per_hour.plot