示例#1
0
 private void addRisksX(Plot p)
 {
     List<int> drawSX = (new int[] { 0, 5, 10, 15, 20, 24 }).ToList();
       for (int i = 0; i < Model.CountObs; i++) {
     if (!drawSX.Contains(i)) {
       p.AddRiskX(i, false);
       continue;
     }
     p.AddRiskX(i, true);
       }
 }
示例#2
0
        private void addRisksY(Plot p)
        {
            double valueMin = Math.Round(p.MinValueY,1);
              double valueMax = Math.Round(p.MaxValueY,1);

              int stepCount = 5;
              double delta = valueMax - valueMin;
              double step = delta/stepCount;
              for (int i = 0; i < stepCount; i++) {
            p.AddRiskY(valueMin + step * i, true);
              }

              p.AddRiskY(valueMin, true);
              p.AddRiskY(valueMax, true);
        }