Gnuplot: Plot x2 axis with respect to x1 axis

前端 未结 2 1466
抹茶落季
抹茶落季 2020-12-31 18:00

I seem to be having some difficulty finding the answer to this question online. The title is the basic question, but to be more specific I would like to have two x axes, one

2条回答
  •  鱼传尺愫
    2020-12-31 18:17

    The best way: Plot your data as usual on the x1 and y1 axes, but place additional labels on the x2-axis with x2tic(column_number):

    set x2tics
    set xtics nomirror
    plot 'data.txt' using 3:2:x2tic(1) w lp
    

    see: Plot y1 in x1 with respect to x2 axis

提交回复
热议问题