Example #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);
    }
  }
Example #2
0
 public static void plot(double[] x, int startInd, int endInd, String strTitle) {
   plot(x, startInd, endInd, strTitle, false);
 }
Example #3
0
 public static void plot(
     double[] x, int startInd, int endInd, String strTitle, boolean bAutoClose) {
   plot(x, startInd, endInd, strTitle, bAutoClose, 3000);
 }
Example #4
0
 public static void plot(double[] x, String strTitle) {
   if (x != null) plot(x, 0, x.length - 1, strTitle, false);
 }
Example #5
0
 public static void plot(double[] x, int startInd, int endInd) {
   plot(x, startInd, endInd, "");
 }
Example #6
0
 public static void plot(float[] x, int startInd, int endInd) {
   plot(x, startInd, endInd, "");
 }
Example #7
0
 public static void plot(double[] x) {
   if (x != null) plot(x, 0, x.length - 1);
 }
Example #8
0
 public static void plot(float[] x) {
   if (x != null) plot(x, 0, x.length - 1);
 }