Hello gnuplot gurus!
Help me please with unexpected gnuplot (4.6/win32) behavior.
I do have the data file which looks like this:
...
21:20:58.784;538633;752;543;520;541;1;70;543;521;541
21:20:58.799;538734;755;543;521;541;1;70;543;520;541
21:20:58.831;538835;754;542;520;541;1;70;543;520;541
....
And I have got two issues while trying to plot it.
1st. If I plot with the following script:
=============================================
reset
set datafile separator ';'
set title "Test"
set terminal windows size 1680,1050
set y2tics border
set yrange[440:640]
set y2range[-150:150]
set xtics border rotate by 90 autofreq offset 0,-2
plot "data.csv" \
every::1::25000 using ($0):4 title "V" with lines, \
"" u ($0):6 t "Vzero" w l, \
"" u ($0):9 t "Vmean" w l, \
"" u ($0):10 t "TurnA" w l, \
"" u ($0):5 t "BumpA" w l, \
"" u ($0):7 axes x1y2 t "dV" w l
=============================================
everything looks fine. Gnuplot puts line numbers as xticlabels with proper
interval (about 5000 with "autofreq" or any particular number given instead
of autofreq).
But if I try to show the time values (from the first column, by "using
($0):4:xticlabels(1)") instead of line numbers then gnuplot goes mad. It
prints time (and draws gridline) for every single line of data no matter if
I use 'autofreq' or specify precise step value.
How can I force gnuplot to thin textual labels out?
2nd. The minor one. Having the script from the first issue I have got
xticlabels (numbers) too close to the axis line. Bit if I try to put them
away by changing "offset 0,-2" to e.g. "offset 0,-3" xticlabels completely
disappear. I suppose they are not shown because their starting point appears
out of some bounding box, but I can not figure out which one and how to
extend it (preferably automatically, depending on the length of xticlabels).
Thanks you in advance!
--
View this message in context: http://old.nabble.com/how-to-thin-out-textual-xticlabels--tp34683698p34683698.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|