本文介绍了误差棒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在点上绘制带有误差条的X-Y图(显示该点平均值的标准误差)。有没有办法在MS Chart中执行此操作?
I am trying to plot an X-Y graph with error bars on the points (showing the Satndard error of the mean for that point). Is there a way to do this in MS Chart?
推荐答案
基本上,
'Create error bar series
Dim seriesError As New Series("ErrorSeriesName")
chart.Series.Add(seriesError)
'Set error bar chart type
seriesError.ChartType = SeriesChartType.ErrorBar
'Link error bar series with data series
seriesError("ErrorBarSeries") = "DataSeriesName"
'Set error calculation type
seriesError("ErrorBarType") = "StandardError"
'Set error bar upper & lower error style
seriesError("ErrorBarStyle") = "Both"
'Set error bar center marker style
seriesError("ErrorBarCenterMarkerStyle") = "Circle"
这篇关于误差棒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!