public void PlotSurface(ILArray <float> array) { //float max=array.Max(); float scale = 1; float.TryParse(cmbZScale.Text, out scale); if (btnRemoveExisted.Checked) { _PlotCube.Children.Clear(); } // _PlotCube.Axes.ZAxis.Scale(1, 1, scale); var sf = new ILSurface(array) { Colormap = EnumHelper.FromString <Colormaps>(cmbColorMap.ComboBox.SelectedItem.ToString()) }; sf.Fill.Markable = false; sf.Wireframe.Markable = false; if (scale != 1) { var newsf = sf.Scale(1, 1, scale); _PlotCube.Add(newsf); } else { _PlotCube.Add(sf); } // _PlotCube.Axes.ZAxis.Max = max; PopulateLegend(); ilPanel1.Refresh(); }