Bläddra i källkod

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 <hoxu@users.sf.net>
Matthieu Moy 15 år sedan
förälder
incheckning
872bbedab7
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4
    4
      gitstats

+ 4
- 4
gitstats Visa fil

@@ -1020,7 +1020,7 @@ unset key
1020 1020
 set xdata time
1021 1021
 set timefmt "%Y-%m"
1022 1022
 set format x "%Y-%m"
1023
-set xtics rotate by 90 15768000
1023
+set xtics rotate
1024 1024
 set bmargin 5
1025 1025
 set grid y
1026 1026
 set ylabel "Commits"
@@ -1035,7 +1035,7 @@ plot 'commits_by_year_month.dat' using 1:2:(0.5) w boxes fs solid
1035 1035
 """
1036 1036
 set output 'commits_by_year.png'
1037 1037
 unset key
1038
-set xtics 1 rotate by 90
1038
+set xtics 1 rotate
1039 1039
 set grid y
1040 1040
 set ylabel "Commits"
1041 1041
 set yrange [0:]
@@ -1055,7 +1055,7 @@ set timefmt "%Y-%m-%d"
1055 1055
 set format x "%Y-%m-%d"
1056 1056
 set grid y
1057 1057
 set ylabel "Files"
1058
-set xtics rotate by 90
1058
+set xtics rotate
1059 1059
 set ytics autofreq
1060 1060
 set bmargin 6
1061 1061
 plot 'files_by_date.dat' using 1:2 w steps
@@ -1074,7 +1074,7 @@ set timefmt "%s"
1074 1074
 set format x "%Y-%m-%d"
1075 1075
 set grid y
1076 1076
 set ylabel "Lines"
1077
-set xtics rotate by 90
1077
+set xtics rotate
1078 1078
 set bmargin 6
1079 1079
 plot 'lines_of_code.dat' using 1:2 w lines
1080 1080
 """)