MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / replace

Method replace

ij/src/main/java/ij/gui/Plot.java:820–825  ·  view source on GitHub ↗

Replaces the specified plot object (curve or set of points). Equivalent to add() if there are no plot objects.

(int index, String type, double[] xvalues, double[] yvalues)

Source from the content-addressed store, hash-verified

818 /** Replaces the specified plot object (curve or set of points).
819 * Equivalent to add() if there are no plot objects. */
820 public void replace(int index, String type, double[] xvalues, double[] yvalues) {
821 if (index>=0 && index<allPlotObjects.size()) {
822 objectToReplace = allPlotObjects.size()>0?index:-1;
823 add(type, xvalues, yvalues);
824 }
825 }
826
827 /** Adds a curve, set of points or error bars to this plot, where 'type' is
828 * "line", "connected circle", "filled", "bar", "separated bar", "circle", "box",

Callers 15

showStatusMethod · 0.45
getStubPathMethod · 0.45
loadLutMethod · 0.45
addSubMenuMethod · 0.45
addLutsMethod · 0.45
installMacroMethod · 0.45
installUserPluginMethod · 0.45
showDialogMethod · 0.45
showDialogMethod · 0.45
runCompiledPluginMethod · 0.45
runMethod · 0.45

Calls 2

addMethod · 0.95
sizeMethod · 0.45

Tested by 1

limitStringMethod · 0.36