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

Method addHorizontalErrorBars

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

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

(float[] xErrorBars)

Source from the content-addressed store, hash-verified

1007
1008 /** Adds horizontal error bars to the last data passed to the plot (via the constructor or addPoints). */
1009 public void addHorizontalErrorBars(float[] xErrorBars) {
1010 PlotObject mainObject = getLastCurveObject();
1011 if (mainObject != null)
1012 mainObject.xEValues = xErrorBars;
1013 else throw new RuntimeException("Plot can't add x error bars without data");
1014 }
1015
1016 /** Adds horizontal error bars to the last data passed to the plot (via the constructor or addPoints). */
1017 public void addHorizontalErrorBars(double[] xErrorBars) {

Callers 3

addMethod · 0.95
addToPlotMethod · 0.80
addObjectFromTableMethod · 0.80

Calls 2

getLastCurveObjectMethod · 0.95
toFloatMethod · 0.95

Tested by

no test coverage detected