gnuplot cuts off fractional digits -


i want plot stockpile data.
data located in csv-file , got accurate plot, reading file isn't problem.

set terminal pdf set output "gnuplot/".matnum."-2012.pdf"  set datafile separator ";"  stats 'stock-2012.csv' every ::4::18 using matnum nooutput  set border 3 set tics nomirror set xzeroaxis  set xrange[0:14] set xtics 1,1,13 set xtics rotate 90  set ylabel matunit  maxplot = sprintf("amount max:\n%.2f ".matunit, stats_max) plot 'stock-2012.csv' every ::4::18 using ($0+1):matnum:xticlabels(2) linespoints title "amount", stats_max lines lc rgb 'blue' title maxplot 

where matnum , matunit commandline arguments, representing materialnumber (which columntitle in datafile) , unit in material measured.

the x-values in datafile decimals, gnuplot seems cut off fractional digits. example 12,98 (commata used decimal separator, because it's german stockpile) results in datapoint @ y=12.
i'm not sure think happens @ maximum , minimum y-value, stats_max integer every time.

what can points @ right y-value?

unfortunately did not show data file, guess using commas decimal separators. in case need set right decimal sign reading input. can use e.g.

set decimalsign locale 

or use explicit locale (this must installed)

set decimalsign locale "de_de.utf-8" 

note, setting explicit character set decimalsign ',' not work because affects output format of e.g. tics, not input behaviour.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -