gnuplot - Plot y1 in x1 with respect to x2 axis without overlapping the xtics values -


i have data as:

  data.txt   y1    x1      x2   10    98.9    0.05   12    98.7    0.10   14    98.6    0.15   16    96.3    0.20   18    92.5    0.25   20    90.9    0.30   22    88.2    0.35   24    86.0    0.40   26    84.2    0.45   28    81.0    0.50   30    79.1    0.57   32    76.0    0.63   34    74.0    0.70   36    72.0    0.77   38    70.0    0.84   40    68.0    0.91   42    66.0    0.98   44    64.0    1.05   46    62.0    1.12   48    60.0    1.19   50    58.0    1.26   52    56.0    1.33   54    50.0    1.40   56    46.0    1.47   58    41.0    1.54   60    36.0    1.61   62    31.0    1.68   64    27.0    1.75   66    23.0    1.85   68    20.0    1.95   70    17.0    2.05   72    14.0    2.15   74    12.0    2.25   76    11.0    2.35   78    10.0    2.55   80    9.0     3.05   82    8.0     3.55   84    7.0     4.05   86    6.0     5   88    5.1     6   90    4.5     7   92    3.8     8   94    3.3     9   96    2.8     10   98    2.6     20   100   2.4     50   102   2.2     100   104   2.1     200   106   2.0     500 

i plot in gnuplot. used procedure mentioned here plot y1 in x1 respect x2 axis , values in xtics grtting overlapped.

my script:

  set xrange [*:*] reverse   set x2tics   set xtics nomirror   set xtics ("98.9" 98.9, "90" 90, "50" 50, "20" 20, "10" 10, "5" 5, "3" 3, "2" 2)   plot 'data.txt' using 2:1:x2tic(3):xtic(2) linespoint pt 7 notitle 

enter image description here

my requirement in figure.enter image description here


Comments