Пример #1
0
        public void ExecuteRecipe(Plot plt)
        {
            Random rand = new Random(0);

            int[] xs = DataGen.RandomNormal(rand, 10000, 25, 10).Select(x => (int)x).ToArray();
            int[] ys = DataGen.RandomNormal(rand, 10000, 25, 10).Select(y => (int)y).ToArray();

            double[,] intensities = Tools.XYToIntensities(mode: IntensityMode.Gaussian,
                                                          xs: xs, ys: ys, width: 50, height: 50, sampleWidth: 4);

            var hmc = plt.AddHeatMapCoordinated(intensities, xMin: -100, xMax: 500, yMin: 200, yMax: 201);
            var cb  = plt.AddColorbar(hmc);
        }