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

Method add

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

Adds a curve or set of points to this plot, where 'type' is "line", "connected circle", "filled", "bar", "separated bar", "circle", "box", "triangle", "diamond", "cross", "x" or "dot". Run Help&gt;Examples&gt;JavaScript&gt;Graph Types to see examples. If 'type' is in the form "code: <macroCod

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

Source from the content-addressed store, hash-verified

811 * writes the y value for each point above the point.
812 */
813 public void add(String type, double[] xvalues, double[] yvalues) {
814 int iShape = toShape(type);
815 addPoints(Tools.toFloat(xvalues), Tools.toFloat(yvalues), null, iShape, iShape==CUSTOM?type.substring(5, type.length()):null);
816 }
817
818 /** Replaces the specified plot object (curve or set of points).
819 * Equivalent to add() if there are no plot objects. */

Callers 4

plotHistogramMethod · 0.95
replaceMethod · 0.95
addHistogramMethod · 0.95
runMethod · 0.95

Calls 7

toShapeMethod · 0.95
addPointsMethod · 0.95
toFloatMethod · 0.95
addErrorBarsMethod · 0.95
substringMethod · 0.80
lengthMethod · 0.65

Tested by

no test coverage detected