Fix errors with recent gnuplot versions
[experiments/gnuplot_seasonal_plot.git] / modular_cartesian.gnuplot
index 07f7aeb..574806c 100755 (executable)
@@ -59,7 +59,7 @@ cblabels = 'set cbtics ( '
 do for [i=year_min:year_max] {
    cblabels = cblabels . '"' . i .'" ' . i .','
 }
-cblabels = cblabels . '"" ' . (i + 1) .','
+cblabels = cblabels . '"" ' . int(year_max + 1) .','
 cblabels = cblabels . ' )'
 eval(cblabels)