gnuplot: max and min values in a range

后端 未结 3 1283
傲寒
傲寒 2020-12-05 08:10

I\'m plotting some data with a different X range and I would like to change yrange according to the maximum and minimum value of the data in the current X range. When I use

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 08:37

    I use it like this to define an x range for a funcion

    plot [0:5] sin(10*x) + cos(3*x)
    

    Also, you can set the range before ploting

    set xrange [0:5]
    plot sin(10*x) + cos(3*x)
    

提交回复
热议问题