From 1eb86dbf2c4cdcd33f7d13e3cd74be922f756ef3 Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Wed, 29 Aug 2007 19:17:26 +0300 Subject: [PATCH] gnuplot: added bmargin for plots that had rotated x labels cut off. --- doc/TODO.txt | 3 --- gitstats | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/TODO.txt b/doc/TODO.txt index a492f10..d4339f7 100644 --- a/doc/TODO.txt +++ b/doc/TODO.txt @@ -5,9 +5,6 @@ - git-log --pretty=format:"%at %an" |grep -C3 unknown - git-rev-list (for number of files in each revision) says "Warning: failed to parse line " 17741" -[Bugs] -- Graphs: vertical x labels get cut off - [Unsorted] - clean up after running gnuplot (option to keep .dat files around?) - show raw data in some way (the tables used currently aren't very nice) diff --git a/gitstats b/gitstats index c338aaa..41b5d68 100755 --- a/gitstats +++ b/gitstats @@ -700,6 +700,7 @@ set xdata time set timefmt "%Y-%m" set format x "%Y-%m" set xtics rotate by 90 15768000 +set bmargin 5 set ylabel "Commits" plot 'commits_by_year_month.dat' using 1:2:(0.5) w boxes fs solid """) @@ -730,6 +731,7 @@ set timefmt "%Y-%m-%d" set format x "%Y-%m-%d" set ylabel "Files" set xtics rotate by 90 +set bmargin 6 plot 'files_by_date.dat' using 1:2 smooth csplines """) f.close() @@ -746,6 +748,7 @@ set timefmt "%s" set format x "%Y-%m-%d" set ylabel "Lines" set xtics rotate by 90 +set bmargin 6 plot 'lines_of_code.dat' using 1:2 w lines """) f.close() -- 2.11.4.GIT