d.assertClose(1, axis.toLogical(120));
}
public void testToLogicalYInverted() {
DoubleDiffer d = new DoubleDiffer(.0000001);
LinearXYAxis axis = new LinearXYAxis(XYDimension.Y);
axis.setSize(10, 100);
axis.setStart(2);
axis.setEnd(1);
d.assertClose(1, axis.toLogical(0));
d.assertClose(1.5, axis.toLogical(50));
d.assertClose(2, axis.toLogical(100));
axis.setSize(10, 130);
axis.setStartMargin(10);
axis.setEndMargin(20);
d.assertClose(1, axis.toLogical(20));
d.assertClose(1.5, axis.toLogical(70));
d.assertClose(2, axis.toLogical(120));
}