Esempio n. 1
0
        public void TestUsingSetting()
        {
            double[][]  data    = sampleData2D;
            PlotBuilder builder = Plot.Data(data);

            builder.Using(new int[] { 1, 2 });
            PlotRender render = builder.Plot();

            Assert.IsNotNull(render);
            Assert.IsNull(render.Exception);
            Assert.IsTrue(render.Output.Exists);
        }
Esempio n. 2
0
        public void TestWithSetting()
        {
            double[][]  data    = sampleData2D;
            PlotBuilder builder = Plot.Data(data);

            builder.With(PlotType.lines);
            PlotRender render = builder.Plot();

            Assert.IsNotNull(render);
            Assert.IsNull(render.Exception);
            Assert.IsTrue(render.Output.Exists);
        }
Esempio n. 3
0
        public void TestTitleSetting()
        {
            double[][]  data    = sampleData2D;
            PlotBuilder builder = Plot.Data(data);

            builder.Title("Plot lines");
            PlotRender render = builder.Plot();

            Assert.IsNotNull(render);
            Assert.IsNull(render.Exception);
            Assert.IsTrue(render.Output.Exists);
        }
Esempio n. 4
0
        public void TestVectorPlot()
        {
            double[][]  data    = new double[][] { new double[] { 1, 1, 0.5, 0.5 }, new double[] { 3, 3, -0.5, -0.5 } };
            PlotBuilder builder = Plot.Data(data);

            builder.With(PlotType.vectors);
            PlotRender render = builder.Plot();

            Assert.IsNotNull(render);
            Assert.IsNull(render.Exception);
            Assert.IsTrue(render.Output.Exists);
        }