From 872bbedab773d9983f038d7e0f3c4145fddb8c30 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Sat, 8 Jan 2011 17:14:48 +0100 Subject: [PATCH] Portable syntax for "set xtics rotate" Gnuplot version 4.4 renders text within the drawing area with "set xtics rotate angle 90". According to http://newsgroups.derkeiler.com/Archive/Comp/comp.graphics.apps.gnuplot/2010-08/msg00079.html http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586513 this is a feature, not a bug, but "set xtics rotate" give the expected behavior everywhere (text from down to top, below the graph). Signed-off-by: Heikki Hokkanen --- gitstats | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gitstats b/gitstats index cd1dcfd..f407cc2 100755 --- a/gitstats +++ b/gitstats @@ -1020,7 +1020,7 @@ unset key set xdata time set timefmt "%Y-%m" set format x "%Y-%m" -set xtics rotate by 90 15768000 +set xtics rotate set bmargin 5 set grid y set ylabel "Commits" @@ -1035,7 +1035,7 @@ plot 'commits_by_year_month.dat' using 1:2:(0.5) w boxes fs solid """ set output 'commits_by_year.png' unset key -set xtics 1 rotate by 90 +set xtics 1 rotate set grid y set ylabel "Commits" set yrange [0:] @@ -1055,7 +1055,7 @@ set timefmt "%Y-%m-%d" set format x "%Y-%m-%d" set grid y set ylabel "Files" -set xtics rotate by 90 +set xtics rotate set ytics autofreq set bmargin 6 plot 'files_by_date.dat' using 1:2 w steps @@ -1074,7 +1074,7 @@ set timefmt "%s" set format x "%Y-%m-%d" set grid y set ylabel "Lines" -set xtics rotate by 90 +set xtics rotate set bmargin 6 plot 'lines_of_code.dat' using 1:2 w lines """) -- 2.11.4.GIT