protected override void InitExample() { var xAxis = new SCINumericAxis(); var yAxis = new SCINumericAxis(); var stops = new NSNumber[] { 0, 0.2f, 0.4f, 0.6f, 0.8f, 1 }; var colors = new UIColor[] { 0xFF0000FF.ToColor(), 0xFF6495ed.ToColor(), 0xFF006400.ToColor(), 0xFF7FFF00.ToColor(), 0xFFFFFF00.ToColor(), 0xFFFF0000.ToColor() }; var renderSeries = new SCIFastUniformHeatmapRenderableSeries { DataSeries = _dataSeries, Minimum = 0, Maximum = 200, ColorMap = new SCIColorMap(colors, stops) }; Surface.XAxes.Add(xAxis); Surface.YAxes.Add(yAxis); Surface.RenderableSeries.Add(renderSeries); Surface.ChartModifiers = new SCIChartModifierCollection { new SCIZoomPanModifier(), new SCIPinchZoomModifier(), new SCIZoomExtentsModifier() }; Start(); }
protected override void InitExample() { var xAxis = new SCINumericAxis(); var yAxis = new SCINumericAxis(); float[] coords = { 0, 0.2f, 0.4f, 0.6f, 0.8f, 1 }; uint[] colors = { 0xFF0000FF, 0xFF6495ed, 0xFF006400, 0xFF7FFF00, 0xFFFFFF00, 0xFFFF0000 }; var textureOpenGl = new SCITextureOpenGL(coords, colors, colors.Length); var renderSeries = new SCIFastUniformHeatmapRenderableSeries { DataSeries = _dataSeries, Minimum = 0, Maximum = 200, ColorMap = textureOpenGl }; Surface.XAxes.Add(xAxis); Surface.YAxes.Add(yAxis); Surface.RenderableSeries.Add(renderSeries); Surface.ChartModifiers = new SCIChartModifierCollection { new SCIZoomPanModifier(), new SCIPinchZoomModifier(), new SCIZoomExtentsModifier() }; Start(); }