Esempio n. 1
0
        public void SetChartDrawAreaLimitedY(LinearAxis AxisX, LinearAxis AxisY, double[] x, params object[] ys)
        {
            double ymax = -1;

            AxisX.Minimum = AxisX.PixelPositionToValue(x0);
            AxisX.Maximum = AxisX.PixelPositionToValue(x1);
            for (int i = 0; i < x.Length && x[i] < AxisX.Maximum; i++)
            {
                if (x[i] < AxisX.Minimum)
                {
                    continue;
                }

                foreach (object ar in ys)
                {
                    if (ymax < 0)
                    {
                        ymax = Math.Abs(((double[])ar)[i]);
                    }
                    else
                    {
                        ymax = Math.Max(ymax, Math.Abs(((double[])ar)[i]));
                    }
                }
            }
            AxisY.Minimum = -ymax;
            AxisY.Maximum = ymax;
            Reset();

            SetAxisLimits(AxisX, AxisY);
        }
Esempio n. 2
0
        public void SetChartDrawAreaLimitedY(LinearAxis AxisX, LinearAxis AxisY, double ymax)
        {
            AxisX.Minimum = AxisX.PixelPositionToValue(x0);
            AxisX.Maximum = AxisX.PixelPositionToValue(x1);
            AxisY.Minimum = -ymax;
            AxisY.Maximum = ymax;
            Reset();

            SetAxisLimits(AxisX, AxisY);
        }
Esempio n. 3
0
 public void SetChartDrawArea(LinearAxis AxisX, LinearAxis AxisY)
 {
     AxisX.Minimum = AxisX.PixelPositionToValue(x0);
     AxisX.Maximum = AxisX.PixelPositionToValue(x1);
     AxisY.Minimum = AxisY.PixelPositionToValue(y0);
     AxisY.Maximum = AxisY.PixelPositionToValue(y1);
     //X軸の表示を調整
     SetAxisLimits(AxisX, AxisY);
     Reset();
 }