/** Draws the plot (if not done before) in an ImageProcessor and returns the ImageProcessor with the plot. */ public ImageProcessor getProcessor() { draw(); return ip; }
/** Draws the plot (if not done before) in an ImageProcessor and returns the ImageProcessor with the plot. */ public ImageProcessor getProcessor() { draw(); return ip; }
xVals[i] = val; plot.draw();
xVals[i] = val; plot.draw();
/** Returns the plot as an ImagePlus. * If an ImagePlus for this plot already exists, displays the plot in that ImagePlus and returns it. */ public ImagePlus getImagePlus() { if (plotDrawn) updateImage(); else draw(); if (imp != null) { if (imp.getProcessor() != ip) imp.setProcessor(ip); return imp; } else { ImagePlus imp = new ImagePlus(title, ip); setImagePlus(imp); return imp; } }
/** Returns the plot as an ImagePlus. * If an ImagePlus for this plot already exists, displays the plot in that ImagePlus and returns it. */ public ImagePlus getImagePlus() { if (plotDrawn) updateImage(); else draw(); if (imp != null) { if (imp.getProcessor() != ip) imp.setProcessor(ip); return imp; } else { ImagePlus imp = new ImagePlus(title, ip); setImagePlus(imp); return imp; } }
/** * Appends the current plot to a virtual stack and resets allPlotObjects * for next slice * N. Vischer */ public void addToStack() { if (stack==null) { stack = new PlotVirtualStack(getSize().width,getSize().height); grayscaleStack = true; } draw(); stack.addPlot(this); if (isColored()) grayscaleStack = false; IJ.showStatus("addToStack: "+stack.size()); allPlotObjects.clear(); textLoc = null; }
/** * Appends the current plot to a virtual stack and resets allPlotObjects * for next slice * N. Vischer */ public void addToStack() { if (stack==null) { stack = new PlotVirtualStack(getSize().width,getSize().height); grayscaleStack = true; } draw(); stack.addPlot(this); if (isColored()) grayscaleStack = false; IJ.showStatus("addToStack: "+stack.size()); allPlotObjects.clear(); textLoc = null; }
public Plot getPlot() { double[] x = PlotUtils.range(0, series.length - 1); Plot plot = new Plot("Profile", "x", "intensity", x, series); PlotUtils.setLimits(plot, x, series, getX(), getIntensities()); plot.draw(); plot.setColor(Color.BLUE); plot.addPoints(getX(), getIntensities(), Plot.CIRCLE); return plot; } }
Plot plot = new Plot(title, "frame", "peak count", range, counts); peakCountPlotLimits = PlotUtils.setLimits(plot, range, counts); plot.draw(); plot.setColor(Color.BLUE); plot.addPoints(range, regularized, Plot.LINE);
plot.setColor(new Color(255, 128, 128)); plot.addPoints(driftCorrection.getDriftDataFrame(), driftCorrection.getDriftDataX(), Plot.CROSS); plot.draw(); plot.setColor(new Color(128, 255, 128)); plot.addPoints(driftCorrection.getDriftDataFrame(), driftCorrection.getDriftDataY(), Plot.CROSS);
data.add(getDataPopupMenu()); more.add(getMorePopupMenu()); plot.draw(); LayoutManager lm = getLayout(); if (lm instanceof ImageLayout)
plot.draw();
data.add(getDataPopupMenu()); more.add(getMorePopupMenu()); plot.draw(); LayoutManager lm = getLayout(); if (lm instanceof ImageLayout)