本文整理匯總了C#中OxyPlot.Axes.Axis.IsValidValue方法的典型用法代碼示例。如果您正苦於以下問題:C# Axis.IsValidValue方法的具體用法?C# Axis.IsValidValue怎麽用?C# Axis.IsValidValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OxyPlot.Axes.Axis
的用法示例。
在下文中一共展示了Axis.IsValidValue方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: IsValidPoint
/// <summary>
/// Determines whether the specified item contains a valid point.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="xaxis">The x axis.</param>
/// <param name="yaxis">The y axis.</param>
/// <returns><c>true</c> if the point is valid; otherwise, <c>false</c> .</returns>
public virtual bool IsValidPoint(BoxPlotItem item, Axis xaxis, Axis yaxis)
{
return !double.IsNaN(item.X) && !double.IsInfinity(item.X) && !item.Values.Any(double.IsNaN)
&& !item.Values.Any(double.IsInfinity) && (xaxis != null && xaxis.IsValidValue(item.X))
&& (yaxis != null && item.Values.All(yaxis.IsValidValue));
}
示例2: IsValidPoint
/// <summary>
/// Determines whether the specified point is valid.
/// </summary>
/// <param name="pt">
/// The point.
/// </param>
/// <param name="xaxis">
/// The x axis.
/// </param>
/// <param name="yaxis">
/// The y axis.
/// </param>
/// <returns>
/// <c>true</c> if the point is valid; otherwise, <c>false</c> .
/// </returns>
public virtual bool IsValidPoint(ScatterPoint pt, Axis xaxis, Axis yaxis)
{
return !double.IsNaN(pt.X) && !double.IsInfinity(pt.X) && !double.IsNaN(pt.Y) && !double.IsInfinity(pt.Y)
&& (xaxis != null && xaxis.IsValidValue(pt.X)) && (yaxis != null && yaxis.IsValidValue(pt.Y));
}
示例3: IsValidPoint
/// <summary>
/// Determines whether the specified point is valid.
/// </summary>
/// <param name="pt">
/// The point.
/// </param>
/// <param name="xaxis">
/// The x axis.
/// </param>
/// <param name="yaxis">
/// The y axis.
/// </param>
/// <returns>
/// <c>true</c> if the point is valid; otherwise, <c>false</c> .
/// </returns>
protected virtual bool IsValidPoint(IDataPoint pt, Axis xaxis, Axis yaxis)
{
return !double.IsNaN(pt.X) && !double.IsInfinity(pt.X) && !double.IsNaN(pt.Y) && !double.IsInfinity(pt.Y)
&& (xaxis != null && xaxis.IsValidValue(pt.X)) && (yaxis != null && yaxis.IsValidValue(pt.Y));
}