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

Method addErrorBars

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

Adds vertical error bars to the last data passed to the plot (via the constructor or addPoints).

(float[] errorBars)

Source from the content-addressed store, hash-verified

994
995 /** Adds vertical error bars to the last data passed to the plot (via the constructor or addPoints). */
996 public void addErrorBars(float[] errorBars) {
997 PlotObject mainObject = getLastCurveObject();
998 if (mainObject != null)
999 mainObject.yEValues = errorBars;
1000 else throw new RuntimeException("Plot can't add y error bars without data");
1001 }
1002
1003 /** Adds vertical error bars to the last data passed to the plot (via the constructor or addPoints). */
1004 public void addErrorBars(double[] errorBars) {

Callers 2

addMethod · 0.95
addToPlotMethod · 0.45

Calls 2

getLastCurveObjectMethod · 0.95
toFloatMethod · 0.95

Tested by

no test coverage detected