Exemple #1
0
        public void AutoAxis_EqualAxis_UnitsPerPixelEqual()
        {
            var plt = new ScottPlot.Plot();

            plt.AddLine(0, 0, 5, 1);
            plt.AxisScaleLock(true);
            plt.AxisAuto();

            var(xUnitsPerPixel, yUnitsPerPixel) = getUnitsPerPixel(plt);
            Assert.AreEqual(xUnitsPerPixel, yUnitsPerPixel, xUnitsPerPixel * 0.000001);
        }