2 Answers
2

Your min and max variables are floats, so you should get a floating point division when you compute width, even with an integer n, but I've noticed some unexpected behaviour from gnuplot in this regard, so it's worth a try.