Thank you Thomas, worked just perfectly.
[]'s
Ricardo.
On Thu, Sep 22, 2011 at 3:57 PM, Thomas Sefzick <t.s...@fz...> wrote:
>
> 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.
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|