/** Changes the line width. * Must be called before the plot is displayed. * Note that there are more options available by using the methods of the Plot class instead. * @deprecated use the corresponding method of the Plot class */ public void setLineWidth(int lineWidth) { plot.setLineWidth(lineWidth); }
/** Changes the line width. * Must be called before the plot is displayed. * Note that there are more options available by using the methods of the Plot class instead. * @deprecated use the corresponding method of the Plot class */ public void setLineWidth(int lineWidth) { plot.setLineWidth(lineWidth); }
double addPlotLegend(Plot plot) { String labels = getFirstString(); String options = null; if (interp.nextToken()!=')') options = getLastString(); else interp.getRightParen(); plot.setColor(Color.BLACK); plot.setLineWidth(1); plot.addLegend(labels, options); return Double.NaN; }
double addPlotLegend(Plot plot) { String labels = getFirstString(); String options = null; if (interp.nextToken()!=')') options = getLastString(); else interp.getRightParen(); plot.setColor(Color.BLACK); plot.setLineWidth(1); plot.addLegend(labels, options); return Double.NaN; }
plot.setLineWidth(2); plot.addPoints(range(0, median[t].length, pixelSpacing), divide(median[t], pi2), Plot.LINE);
return Double.NaN; } else if (name.startsWith("setLineWidth")) { plot.setLineWidth((float)getArg()); return Double.NaN; } else if (name.startsWith("setJustification")) {
return Double.NaN; } else if (name.startsWith("setLineWidth")) { plot.setLineWidth((float)getArg()); return Double.NaN; } else if (name.startsWith("setJustification")) {
static public Plot makePlot(final CATAParameters cp, final String name, final VectorString3D c) { final double[] stdDev = c.getStdDevAtEachPoint(); if (null == stdDev) return null; final double[] index = new double[stdDev.length]; for (int i=0; i<index.length; i++) index[i] = i; Utils.log2("name is " + name); Utils.log2("c is " + c); Utils.log2("cp is " + cp); Utils.log2("stdDev is " + stdDev); Utils.log2("c.getCalibrationCopy() is " + c.getCalibrationCopy()); Utils.log2("c.getDelta() is " + c.getDelta()); final Calibration cal = c.getCalibrationCopy(); if (null == cal) Utils.log2("WARNING null calibration!"); final Plot plot = new Plot(name, name + " -- Point index (delta: " + Utils.cutNumber(c.getDelta(), 2) + " " + (null == cal ? "pixels" : cal.getUnits()) + ")", "Std Dev", index, stdDev); plot.setLimits(0, cp.plot_max_x, 0, cp.plot_max_y); plot.setSize(cp.plot_width, cp.plot_height); plot.setLineWidth(2); return plot; }
plot.setLineWidth(2); plot.setColor(Color.blue); plot.drawNormalizedLine(xx, 0, xx, 1.0); plot.setColor(Color.black); plot.setLineWidth(1);
plot.setLineWidth(2); plot.setColor(Color.blue); plot.drawNormalizedLine(xx, 0, xx, 1.0); plot.setColor(Color.black); plot.setLineWidth(1);
flags |= Plot.LEGEND_TRANSPARENT; plot.setColor(Color.black); plot.setLineWidth(1); plot.setLegend(labels, flags); plot.updateImage();
flags |= Plot.LEGEND_TRANSPARENT; plot.setColor(Color.black); plot.setLineWidth(1); plot.setLegend(labels, flags); plot.updateImage();
/** For "Add from Table" and "Add from Arrays" adds item to the plot according to the current Choice settings * and sets the Style fields for it. */ private void addObjectFromTable() { float[][] data = getDataArrays(); if (data[1] == null) return; //no y data? then can't plot String label = columnChoice[1].getSelectedItem(); //take label from y int shape = Plot.toShape(symbolChoice.getSelectedItem()); float lineWidth = (float)(Tools.parseDouble(widthField.getText())); if (lineWidth > 0) plot.setLineWidth(lineWidth); plot.restorePlotObjects(); if (savedLimits != null) plot.setLimits(savedLimits); plot.setColor(colorField.getText(), color2Field.getText()); plot.addPoints(data[0], data[1], data[3], shape, label); if (data[2] != null) plot.addHorizontalErrorBars(data[2]); if (creatingPlot) { plot.setXYLabels(data[0]==null ? "x" : columnChoice[0].getSelectedItem(), columnChoice[1].getSelectedItem()); plot.setLimitsToFit(false); } else plot.fitRangeToLastPlotObject(); currentObjectIndex = plot.getNumPlotObjects()-1; setDialogStyleFields(currentObjectIndex); if (dialogType == ADD_FROM_TABLE) previousTableName = allTableNames[tableChoice.getSelectedIndex()]; }
/** For "Add from Table" and "Add from Arrays" adds item to the plot according to the current Choice settings * and sets the Style fields for it. */ private void addObjectFromTable() { float[][] data = getDataArrays(); if (data[1] == null) return; //no y data? then can't plot String label = columnChoice[1].getSelectedItem(); //take label from y int shape = Plot.toShape(symbolChoice.getSelectedItem()); float lineWidth = (float)(Tools.parseDouble(widthField.getText())); if (lineWidth > 0) plot.setLineWidth(lineWidth); plot.restorePlotObjects(); if (savedLimits != null) plot.setLimits(savedLimits); plot.setColor(colorField.getText(), color2Field.getText()); plot.addPoints(data[0], data[1], data[3], shape, label); if (data[2] != null) plot.addHorizontalErrorBars(data[2]); if (creatingPlot) { plot.setXYLabels(data[0]==null ? "x" : columnChoice[0].getSelectedItem(), columnChoice[1].getSelectedItem()); plot.setLimitsToFit(false); } else plot.fitRangeToLastPlotObject(); currentObjectIndex = plot.getNumPlotObjects()-1; setDialogStyleFields(currentObjectIndex); if (dialogType == ADD_FROM_TABLE) previousTableName = allTableNames[tableChoice.getSelectedIndex()]; }