Skip to content

Commit

Permalink
scatter limits update
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Feb 1, 2017
1 parent ec7a104 commit 17edbd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Core/SeriesAlgorithms/ScatterAlgorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,22 @@ public override void Update()

double ICartesianSeries.GetMinX(AxisCore axis)
{
return AxisLimits.StretchMin(axis);
return (int)(axis.BotLimit / axis.S) * axis.S;
}

double ICartesianSeries.GetMaxX(AxisCore axis)
{
return AxisLimits.StretchMax(axis);
return AxisLimits.SeparatorMax(axis);
}

double ICartesianSeries.GetMinY(AxisCore axis)
{
return AxisLimits.StretchMin(axis);
return (int)(axis.BotLimit / axis.S) * axis.S;
}

double ICartesianSeries.GetMaxY(AxisCore axis)
{
return AxisLimits.StretchMax(axis);
return AxisLimits.SeparatorMax(axis);
}
}
}
8 changes: 4 additions & 4 deletions Core40/SeriesAlgorithms/ScatterAlgorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,22 @@ public override void Update()

double ICartesianSeries.GetMinX(AxisCore axis)
{
return AxisLimits.StretchMin(axis);
return (int) (axis.BotLimit/axis.S)*axis.S;
}

double ICartesianSeries.GetMaxX(AxisCore axis)
{
return AxisLimits.StretchMax(axis);
return AxisLimits.SeparatorMax(axis);
}

double ICartesianSeries.GetMinY(AxisCore axis)
{
return AxisLimits.StretchMin(axis);
return (int)(axis.BotLimit / axis.S) * axis.S;
}

double ICartesianSeries.GetMaxY(AxisCore axis)
{
return AxisLimits.StretchMax(axis);
return AxisLimits.SeparatorMax(axis);
}
}
}

0 comments on commit 17edbd3

Please sign in to comment.