同一份数据用Teechart和用Matlab绘出的图形相差很大,该怎么处理
同一份数据用Teechart和用Matlab绘出的图形相差很大
在MFC程序中调用Teechart pro 8.0 activeX 控件来画波形图,
matlab绘制波形图:采样率为20000
http://hi.****.net/space-8459127-do-album-picid-909338.html
teechart在绘制波形图如下(界面窗口为最大化时):
http://hi.****.net/space-8459127-do-album-picid-909339.html
两个波形图相差太大!
而且当界面窗口变小时,teechart绘制的波形图变化成,如:
http://hi.****.net/space-8459127-do-album-picid-909341.html
窗口变得更小时,波形图却变成一条线了,如:
http://hi.****.net/space-8459127-do-album-picid-909344.html
使用的是teechart的FastLine绘图,为加快绘图设置了如下属性:
m_chart.put_BufferedDisplay(true); //内存缓冲绘图,加快重绘
CSeries ser=m_chart.Series(0);
ser.Clear();
//为加速画图,将FastPen属性设置为true
CFastLineSeries serParaSet=ser.get_asFastLine();
serParaSet.put_FastPen(true);
serParaSet.put_AutoRepaint(false);
//为设置Legend,获取CLegend对象,
CLegend serlegend=m_chart.get_Legend();
// 不显示图例
serlegend.put_Visible(false);
为什么在窗口size改变时,同一数据teechart的波形图改变会这么大,看起来都不是同一份数据画的图, 而且与matlab画得相差太大?
------解决方案--------------------
Teechart 没有哪么高的采样吧。你用excel之类的画散点图看看。
在MFC程序中调用Teechart pro 8.0 activeX 控件来画波形图,
matlab绘制波形图:采样率为20000
http://hi.****.net/space-8459127-do-album-picid-909338.html
teechart在绘制波形图如下(界面窗口为最大化时):
http://hi.****.net/space-8459127-do-album-picid-909339.html
两个波形图相差太大!
而且当界面窗口变小时,teechart绘制的波形图变化成,如:
http://hi.****.net/space-8459127-do-album-picid-909341.html
窗口变得更小时,波形图却变成一条线了,如:
http://hi.****.net/space-8459127-do-album-picid-909344.html
使用的是teechart的FastLine绘图,为加快绘图设置了如下属性:
m_chart.put_BufferedDisplay(true); //内存缓冲绘图,加快重绘
CSeries ser=m_chart.Series(0);
ser.Clear();
//为加速画图,将FastPen属性设置为true
CFastLineSeries serParaSet=ser.get_asFastLine();
serParaSet.put_FastPen(true);
serParaSet.put_AutoRepaint(false);
//为设置Legend,获取CLegend对象,
CLegend serlegend=m_chart.get_Legend();
// 不显示图例
serlegend.put_Visible(false);
为什么在窗口size改变时,同一数据teechart的波形图改变会这么大,看起来都不是同一份数据画的图, 而且与matlab画得相差太大?
------解决方案--------------------
Teechart 没有哪么高的采样吧。你用excel之类的画散点图看看。