예제 #1
0
        public Heatmap PlotHeatmap(
            double?[,] intensities,
            Drawing.Colormap colormap = null,
            string label                 = null,
            double[] axisOffsets         = null,
            double[] axisMultipliers     = null,
            double?scaleMin              = null,
            double?scaleMax              = null,
            double?transparencyThreshold = null,
            Bitmap backgroundImage       = null,
            bool displayImageAbove       = false,
            bool drawAxisLabels          = true
            )
        {
            Heatmap heatmap = new Heatmap()
            {
                Label                 = label,
                AxisOffsets           = axisOffsets ?? new double[] { 0, 0 },
                AxisMultipliers       = axisMultipliers ?? new double[] { 1, 1 },
                ScaleMin              = scaleMin,
                ScaleMax              = scaleMax,
                TransparencyThreshold = transparencyThreshold,
                BackgroundImage       = backgroundImage,
                DisplayImageAbove     = displayImageAbove,
                ShowAxisLabels        = drawAxisLabels,
                Colormap              = colormap ?? Drawing.Colormap.Viridis
            };

            heatmap.UpdateData(intensities);

            Add(heatmap);
            Layout(top: 180);

            return(heatmap);
        }