|
From: Thomas S. <t.s...@fz...> - 2011-09-22 13:57:43
|
plot "FILE" using 1:(NaN):xtic(2) every 2, "" using 1:3 with lines Ricardo_NL wrote: > > Hello all, I have a file with 3 columns (example below). I want to plot > the 1st column as X and the 3rd column as Y. However, I would like to > show, in the positions specified by me for x-tics, the relative values in > the 2nd column, instead of the absolute values from 1st column. Example: > > FILE: > 0 21:00:00 45 > 1 21:05:00 66 > 2 21:10:00 94 > 3 21:15:00 36 > 4 21:20:00 53 > 5 21:25:00 10 > 6 21:30:00 72 > 7 21:35:00 63 > 8 21:40:00 72 > 9 21:45:00 76 > 10 21:50:00 17 > > I want x-tics only every two entries, but instead of the 1st column value, > I want to plot the 2nd column text. > > ... > set xtics 0,2,10 > plot "FILE" using 1:3:xtics(2) with lines > > However, the lines above create a graphic with all values of 2nd column > and not every two entries. > > Ps.: my input file has much more lines, with time starting in one day and > end in the next day. Therefore, I cannot plot a datetime-like x-axis, > because the hours repeat. > > Thanks, > Ricardo. > > -- View this message in context: http://old.nabble.com/Plotting-strings-on-X-axis-on-specified-positions-tp32503808p32503817.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |