本文整理匯總了C#中OxyPlot.Axes.Axis.InverseTransform方法的典型用法代碼示例。如果您正苦於以下問題:C# Axis.InverseTransform方法的具體用法?C# Axis.InverseTransform怎麽用?C# Axis.InverseTransform使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OxyPlot.Axes.Axis
的用法示例。
在下文中一共展示了Axis.InverseTransform方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: InverseTransform
/// <summary>
/// Inverse transform the specified screen point.
/// </summary>
/// <param name="x">The x coordinate.</param>
/// <param name="y">The y coordinate.</param>
/// <param name="yaxis">The y-axis.</param>
/// <returns>The data point.</returns>
public virtual DataPoint InverseTransform(double x, double y, Axis yaxis)
{
return new DataPoint(this.InverseTransform(x), yaxis != null ? yaxis.InverseTransform(y) : 0);
}
示例2: ZoomAt
/// <summary>
/// Zooms at the specified position.
/// </summary>
/// <param name="axis">
/// The axis.
/// </param>
/// <param name="factor">
/// The zoom factor.
/// </param>
/// <param name="x">
/// The position to zoom at.
/// </param>
public void ZoomAt(Axis axis, double factor, double x = double.NaN)
{
if (double.IsNaN(x))
{
double sx = (axis.Transform(axis.ActualMaximum) + axis.Transform(axis.ActualMinimum)) * 0.5;
x = axis.InverseTransform(sx);
}
axis.ZoomAt(factor, x);
}