gnuplot - Repeating y-axis tick labels -


i found strange behaviour when using gnuplot (ver 4.4), repeats same y-axis ticks labels when set format y "%10.0f" command used , y range relatively low. if set "%10.5f" numbers don't repeat "0.5" rounding isn't logical in case. i'm looking solution minimal changes following script, appreciated!

example repeating y-axis ticks labels: example repeating y axis tics-labels

data:

0.5 - 1   3.000 2   4.000 3   4.000 4   2.000 5   1.000 

script:

set encoding cp1250 set datafile separator "\t" set datafile missing "-"  set terminal png font "arial" small size 1090,282 xffffff x000000 x404040 x00aa66     xdd3300 set output "output.png"  set key off  set grid set boxwidth 0.9 relative set style data histograms set style fill solid 0.6 border -1 set decimalsign "," set format y "%10.0f" set xtics ('28.02.2011-06.03.2011' 1,'07.03.2011-13.03.2011' 2,'14.03.2011-20.03.2011'     3,'21.03.2011-27.03.2011' 4,'28.03.2011-03.04.2011' 5) set ylabel 'label' set xrange [0.5:5.5] plot "data.dat" using 2 

the repetition of y tic entries due fact format y tics displayed without decimal places. therefore 3,5 rounded towards 4 , and forth. there few solutions circumvent that.

  1. allow decimal places displayed: set format y "%.1f"
  2. try fool around set ytics autofreq. instance
    set ytics autofreq 1 accomplish same thing try achieve in script without repetition.

hope helped...
cherio
woltan


Comments