|
From: Thomas S. <t.s...@fz...> - 2011-03-18 15:27:15
|
yes, either for the whole plot set terminal png fontscale 0.8 or for the x-tics set xtics font ",10" fretagi wrote: > > Hi > > Is it possible to reduce the size of font in x axis? > > > > Thomas Sefzick wrote: >> >> do you use both? >> >> set xtics 2*60 >> set format x "%H:%M" >> >> >> fretagi wrote: >>> >>> with set format x "%H:%M" does work, but it overlaps >>> >>> >>> >>> Thomas Sefzick wrote: >>>> >>>> add >>>> >>>> set format x "%H:%M" >>>> >>>> >>>> fretagi wrote: >>>>> >>>>> Hi >>>>> >>>>> Still not working fine because now the x axis data is showing 20:00 >>>>> 22:00 24:00 26:00. But should be as per "set xrange" which is from >>>>> 12:20 to 12:29 >>>>> >>>>> >>>>> >>>>> Thomas Sefzick wrote: >>>>>> >>>>>> set the xtics distance (in seconds): >>>>>> >>>>>> set xtics 2*60 >>>>>> >>>>>> >>>>>> fretagi wrote: >>>>>>> >>>>>>> Hi >>>>>>> I have already done that, see below, but I dont seem to have the x >>>>>>> axis right on the graph, the x axis data (times) are overlaping. >>>>>>> >>>>>>> >>>>>>> set terminal png >>>>>>> set output "vt.png" >>>>>>> set grid >>>>>>> set multiplot >>>>>>> set xlabel "Date" >>>>>>> set xdata time >>>>>>> set timefmt "%H:%M:%S" >>>>>>> set xrange ["12:20:35":"12:29:35"] >>>>>>> set size 0.5,0.5 >>>>>>> set origin 0,0 >>>>>>> plot "vt.txt" u 1:2 t "run queue" w linespoints >>>>>>> set size 0.5, 0.5 >>>>>>> set origin 0.5,0 >>>>>>> plot "vt.txt" u 1:3 t "blocked p" w linespoints >>>>>>> set size 0.5, 0.5 >>>>>>> set origin 0,0.5 >>>>>>> plot "vt.txt" u 1:12 t "scan rate" w linespoints >>>>>>> unset multiplot >>>>>>> >>>>>>> >>>>>>> Thomas Sefzick wrote: >>>>>>>> >>>>>>>> set timefmt "%H:%M:%S" >>>>>>>> >>>>>>>> >>>>>>>> fretagi wrote: >>>>>>>>> >>>>>>>>> Hi all >>>>>>>>> >>>>>>>>> Please can you help me findding the issue here. I have a >>>>>>>>> configuration file like this: >>>>>>>>> set terminal png >>>>>>>>> set output "vt.png" >>>>>>>>> set grid >>>>>>>>> set multiplot >>>>>>>>> set xlabel "Date" >>>>>>>>> set xdata time >>>>>>>>> set timefmt "%s" >>>>>>>>> set format x "%H:%M:%S" >>>>>>>>> set xrange ["12:20:35":"12:29:35"] >>>>>>>>> set size 0.5, 0.5 >>>>>>>>> set origin 0,0 >>>>>>>>> set title "NIKIRA stats" >>>>>>>>> plot "vt.txt" u 1:2 t "run queue" w linespoints >>>>>>>>> set size 0.5, 0.5 >>>>>>>>> set origin 0.5,0 >>>>>>>>> plot "vt.txt" u 1:3 t "blocked p" w linespoints >>>>>>>>> set size 0.5, 0.5 >>>>>>>>> set origin 0,0.5 >>>>>>>>> plot "vt.txt" u 1:12 t "scan rate" w linespoints >>>>>>>>> unset multiplot >>>>>>>>> >>>>>>>>> >>>>>>>>> and I have a data file like this: >>>>>>>>> >>>>>>>>> 12:20:35 1 3 0 27213608 1219768 1552 16836 81 157 162 0 150 0 0 0 >>>>>>>>> 5 6837 92987 21257 38 26 36 >>>>>>>>> 12:21:35 0 0 0 32009240 1509000 2666 57548 3 116 116 0 0 0 0 0 0 >>>>>>>>> 3596 111026 22204 44 25 31 >>>>>>>>> 12:22:35 1 4 0 32001752 1497760 2231 48328 0 157 157 0 0 0 0 0 0 >>>>>>>>> 8494 132450 26642 54 23 23 >>>>>>>>> 12:23:35 0 2 0 31989312 1480200 2564 56550 0 90 90 0 0 0 0 0 0 >>>>>>>>> 4702 85607 14278 43 24 33 >>>>>>>>> 12:24:35 0 9 0 32014016 1505000 246 1738 1 200 200 0 0 0 0 0 0 >>>>>>>>> 6759 85957 24143 54 7 40 >>>>>>>>> 12:25:35 0 0 0 32031792 1521256 98 589 2 84 84 0 0 0 0 0 0 >>>>>>>>> 1622 14346 4383 30 2 68 >>>>>>>>> 12:26:35 0 3 0 31918840 1424032 127 801 0 98 98 0 0 0 0 0 0 >>>>>>>>> 4889 78063 21954 48 5 47 >>>>>>>>> 12:27:35 0 0 0 31914448 1398336 203 1031 4 226 226 0 0 0 0 0 0 >>>>>>>>> 4196 52845 16688 38 4 58 >>>>>>>>> 12:28:35 0 4 0 31933232 1393768 90 522 0 59 59 0 0 0 0 0 0 >>>>>>>>> 2526 35203 10592 37 3 60 >>>>>>>>> 12:29:35 0 0 0 31957664 1406448 210 1257 2 149 149 0 0 0 0 0 0 >>>>>>>>> 5144 88884 24606 50 6 44 >>>>>>>>> >>>>>>>>> >>>>>>>>> when I run , I got the following error: >>>>>>>>> >>>>>>>>> prep03[204]/usr/local/bin #cat vt.conf | ./gnuplot >>>>>>>>> >>>>>>>>> multiplot> plot "vt.txt" u 1:2 t "run queue" w linespoints >>>>>>>>> ^ >>>>>>>>> line 0: Can't plot with an empty x range! >>>>>>>>> >>>>>>>>> >>>>>>>>> multiplot> plot "vt.txt" u 1:3 t "blocked p" w linespoints >>>>>>>>> ^ >>>>>>>>> line 0: Can't plot with an empty x range! >>>>>>>>> >>>>>>>>> >>>>>>>>> multiplot> plot "vt.txt" u 1:12 t "scan rate" w linespoints >>>>>>>>> ^ >>>>>>>>> line 0: Can't plot with an empty x range! >>>>>>>>> >>>>>>>>> prep03[205]/usr/local/bin # >>>>>>>>> >>>>>>>>> >>>>>>>>> Please can you help? >>>>>>>>> >>>>>>>>> >>>>>>>>> F.R. >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/Why-I-am-having-this-error--tp31162902p31182232.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |