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

Method showPlotValues

ij/src/main/java/ij/macro/Functions.java:2516–2535  ·  view source on GitHub ↗
(boolean useLabels)

Source from the content-addressed store, hash-verified

2514 }
2515
2516 double showPlotValues(boolean useLabels) {
2517 String title = "Results";
2518 if (interp.nextToken() == '(') {
2519 interp.getLeftParen();
2520 if (interp.nextToken()!=')')
2521 title = getString();
2522 interp.getRightParen();
2523 }
2524 interp.getParens();
2525 ImagePlus imp = getImage();
2526 ImageWindow win = imp.getWindow();
2527 Plot plot = win instanceof PlotWindow ? ((PlotWindow)win).getPlot() : imp.getPlot();
2528 if (plot!=null) {
2529 ResultsTable rt = useLabels ? plot.getResultsTableWithLabels() : plot.getResultsTable(true);
2530 rt.show(title);
2531 return Double.NaN;
2532 } else
2533 interp.error("No plot window");
2534 return Double.NaN;
2535 }
2536
2537 double newPlot() {
2538 String title = getFirstString();

Callers 1

doPlotMethod · 0.95

Calls 13

getStringMethod · 0.95
getImageMethod · 0.95
getWindowMethod · 0.95
getPlotMethod · 0.95
getResultsTableMethod · 0.95
showMethod · 0.95
getLeftParenMethod · 0.80
getRightParenMethod · 0.80
getParensMethod · 0.80
getPlotMethod · 0.65
nextTokenMethod · 0.45

Tested by

no test coverage detected