Explorar el Código

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 hace 15 años
padre
commit
872bbedab7
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      gitstats

+ 4
- 4
gitstats Ver fichero

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