From: Gareth W. <g.w...@sh...> - 2011-06-15 14:23:14
|
Dear all, I have written a bash script which uses gnuplot to plot histograms of student performance in exams. Different exams have very different number of students (from a handful to hundreds), but gnuplot handles this nicely left to its own devices with commands like this: set yrange [0:*] set ytics axis font 'Arial,16' The interval between tics and labels adjusts in line with the number of students (bigger interval for lots of students, smaller gap when there aren't as many). Great. Except when the number of students is small. In this case, the labels on the y axis might appear with decimals e.g. with labels at 0, 0.5, 1.5... Of course, this doesn't make much sense as there can't be half a student. Is there any way I can stop gnuplot ever plotting labels with an interval of less than 1, without manually specifying the interval in every case? Many thanks, Gareth |