I have a data files including multiple float-value columns such as following and I want to plot some columns in gnuplot.
1.08 1.6 4.83
1.53 2.5 5.95
2.11 3.2 6.1
2.60 4.1 7.0
I want to have x2-axis by following:
set xtics nomirror
set x2tics
set autoscale xfix
set autoscale x2fix
set ylabel 'Y_H
set xlabel 'Y_O'
set x2label 'Y_C'
p 'datafile' u 1:2 w l ls 1 t '',\
'' u 1:(NaN):x2ticlabels(3) axes x2y1 w l ls 1 t ''
This way displays every single tic and It's label on the x2 axis. I would like to set custom labels for x2-axis such as 4,5,6,7 and their tics to write. How can I have custom labels and tics on x2-axis?
x2ticlabels(3)in your plot command? - Zahaib Akhtarx2labels. If you don't want that then you will need to change the plot to1:(Nan):3and just set x2range likeset x2range[4.83:7]- Zahaib Akhtar