public void ZoomAt(AxisBase axis, double factor, double x) { var a = FindModelAxis(axis); if (a != null) a.ZoomAt(factor, x); else axis.ZoomAt(factor, x); }
public void Reset(AxisBase axis) { if (Model == null) { var a = FindModelAxis(axis); if (a != null) a.Reset(); } axis.Reset(); }
public void Zoom(AxisBase axis, double p1, double p2) { var a = FindModelAxis(axis); if (a != null) a.Zoom(p1, p2); else axis.Zoom(p1, p2); }
private Axis FindModelAxis(AxisBase a) { return Axes.FirstOrDefault(axis => axis.ModelAxis == a); }
public void Pan(AxisBase axis, double dx) { if (Model == null) { var a = FindModelAxis(axis); if (a != null) a.Pan(dx); } // Modify min/max of the PlotModel's axis axis.Pan(dx); }
public void GetAxesFromPoint(ScreenPoint pt, out AxisBase xaxis, out AxisBase yaxis) { internalModel.GetAxesFromPoint(pt, out xaxis, out yaxis); }
private Axis FindModelAxis(AxisBase a) { return(Axes.FirstOrDefault(axis => axis.ModelAxis == a)); }