Plotting arrows with gnuplot

后端 未结 3 497
轻奢々
轻奢々 2021-01-18 07:37

I have data generated in a simulation. The generated data file looks something like this:

1990/01/01 99
1990/01/02 92.7
1990/01/03 100.3
1990/01/04 44.2
1990         


        
3条回答
  •  抹茶落季
    2021-01-18 08:15

    I dont think there is an automatic way to create all your arrows at the same time based on the third column. You will have to execute the following for each arrow that you want:

    set arrow xval1,yval1 to xval2,yval2
    

    You can also use relative arrows

    set arrow xval1,yval1 rto 1,0
    

    This will draw a horizontal arrow from xval1,yval1 to (xval1+1),yval1

    There are plenty of options associated with the set arrow command:

提交回复
热议问题