예제 #1
0
  public static void plotZoomed(
      double[] x,
      String strTitle,
      double minVal,
      double maxVal,
      boolean bAutoClose,
      int milliSecondsToClose) {
    if (x != null) {
      double[] y = null;
      if (minVal > maxVal) {
        double tmp = minVal;
        minVal = maxVal;
        maxVal = tmp;
      }
      y = new double[x.length];
      for (int i = 0; i < x.length; i++) {
        y[i] = x[i];
        if (y[i] < minVal) y[i] = minVal;
        else if (y[i] > maxVal) y[i] = maxVal;
      }

      plot(y, 0, y.length - 1, strTitle, bAutoClose, milliSecondsToClose);
    }
  }
예제 #2
0
 public static void plot(double[] x, int startInd, int endInd, String strTitle) {
   plot(x, startInd, endInd, strTitle, false);
 }
예제 #3
0
 public static void plot(
     double[] x, int startInd, int endInd, String strTitle, boolean bAutoClose) {
   plot(x, startInd, endInd, strTitle, bAutoClose, 3000);
 }
예제 #4
0
 public static void plot(double[] x, String strTitle) {
   if (x != null) plot(x, 0, x.length - 1, strTitle, false);
 }
예제 #5
0
 public static void plot(double[] x, int startInd, int endInd) {
   plot(x, startInd, endInd, "");
 }
예제 #6
0
 public static void plot(float[] x, int startInd, int endInd) {
   plot(x, startInd, endInd, "");
 }
예제 #7
0
 public static void plot(double[] x) {
   if (x != null) plot(x, 0, x.length - 1);
 }
예제 #8
0
 public static void plot(float[] x) {
   if (x != null) plot(x, 0, x.length - 1);
 }