(boolean useLabels)
| 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(); |
no test coverage detected