本文整理汇总了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));
}