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