protected override void OnPaint(PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            if (dc.ChartType == DrawChart.ChartTypeEnum.XYColor ||
                dc.ChartType == DrawChart.ChartTypeEnum.Contour ||
                dc.ChartType == DrawChart.ChartTypeEnum.FillContour)
            {
                Rectangle rect = this.ClientRectangle;
                cs2d.ChartArea = new Rectangle(rect.X, rect.Y,
                                               rect.Width, 19 * rect.Height / 30);
                cf.Exp4D(ds, cs);
                cs2d.SetPlotArea(g, cs);
                dc.AddColorBar(g, ds, cs, cs2d);
            }
        }
        protected override void OnPaint(PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            if (dc.ChartType == DrawChart.ChartTypeEnum.XYColor ||
                dc.ChartType == DrawChart.ChartTypeEnum.Contour ||
                dc.ChartType == DrawChart.ChartTypeEnum.FillContour)
            {
                Rectangle rect = this.ClientRectangle;
                cs2d.ChartArea = new Rectangle(rect.X, rect.Y, 19 * rect.Width / 30, 19 * rect.Height / 30);
                //cs2d.ChartArea = new Rectangle(PlotPanel.Location.X, PlotPanel.Location.Y, PlotPanel.Size.Width * 15 / 30, PlotPanel.Size.Height * 15 / 30);
                cf.Peak3D(ds, cs);
                //cf.SinROverR3D(ds,cs);
                cs2d.SetPlotArea(g, cs);
                dc.AddColorBar(g, ds, cs, cs2d);
            }
        }