Gnuplot : How to set max number of data points for fit

邮差的信 提交于 2019-12-24 03:59:14

问题


I'm using a gnuplot script that involves several fits, on large data samples. Thus fit has to scale up its max number of data points several times, and it prints on the output

Max. number of data points scaled up to: 3072
Max. number of data points scaled up to: 4608
Max. number of data points scaled up to: 6912
Max. number of data points scaled up to: 10368
Max. number of data points scaled up to: 15552
Max. number of data points scaled up to: 23328

I would like to avoid that since it makes noise among the useful others information printed on the output.

I used set fit quiet, it diseabled all fit output except this one !

So my question is : how to set manually the max number of data points for fit, in order to avoid these messages?


回答1:


Looking at the fit source code (which you can download from sourceforge), it appears there is no parameter you can set within gnuplot to change the max. number of data points.
The default value is MAX_DATA 2028.
If you compile your gnuplot from source, you can probably change that to a higher value.
The only parameters you can control from within gnuplot are those mentioned in the gnuplot documentation.



来源:https://stackoverflow.com/questions/17611228/gnuplot-how-to-set-max-number-of-data-points-for-fit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!