|
From: Simon G. <tar...@gm...> - 2012-07-06 23:45:42
|
Ok, thank you for being kind with my ignorance. Anyway in my particular situation these "missed approximations" have a disastrous effect, since I'm creating classes for an hystogram: gnuplot> print int(19.1/0.1) 191 gnuplot> print int(19.2/0.1) 191 gnuplot> print int(19.3/0.1) 193 gnuplot> print int(19.4/0.1) 193 gnuplot> print int(19.5/0.1) 195 gnuplot> print int(19.6/0.1) 196 gnuplot> print int(19.7/0.1) 196 gnuplot> print int(19.8/0.1) 198 Undoubtedly unconvincing classes. I'm bypassing it using bind(x, l) = int(x/l) * l plot 'data' using ( bind($1 * 10**6, width * 10**6) * 10**(-6) ): [...] I think that for my particular data (19.1, 19.5, 19,6, 19.2, ... ) can be used also plot 'data' using ( bind($1 +0.05, width) ): [...] or even the suggested "+ eps". Well, this was my really problem! Thank you again for explanations |