Gnuplot minimum and maximum boundaries for autoscaling

前端 未结 4 858
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 09:05

How can I limit the autoscaling of gnuplot, so that, as example for the y-max, it is at least a certain value and it would autoscale up to fixed \"limit\"?

From loo

4条回答
  •  Happy的楠姐
    2020-12-31 09:25

    In this case, you could filter the data and let gnuplot do it's normal auto-scaling:

    set yrange [*:*]
    plot 'mydatafile' u 1:(($2 >= YMIN && $2 <= YMAX) ? $2 : 1/0)
    

提交回复
热议问题