|
From: BBands <bb...@gm...> - 2013-10-03 17:47:26
|
If you know the exact labels you want and where you want them a
simpler method is 'set xtics'. From my finance demo script, this line
replaces the default x-axis labels with date labels.
set xtics ("6/03" 66, "7/03" 87, "8/03" 109, "9/03" 130, "10/03" 151,
"11/03" 174, "12/03" 193, "1/04" 215, "2/04" 235)
Yikes! Has it really been ten year since I wrote that?
John
On Thu, Oct 3, 2013 at 10:30 AM, Mahmood Naderan <nt_...@ya...> wrote:
>>See 'help xticlabels'.
> It seems that this function works with #columns > 1. Am I right?
>
> The data file contains one column
>
> 40
> 50
> 20
> 10
> ....
>
> So I have to use
>
> plot "data.txt" u 1:xticlabels(stringcolumn(???)) every ::1000::2000
>
> The stringcolumn() should take the row number. I wonder what is the argument then?
|