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

Method updatePlot

ij/src/main/java/ij/macro/Functions.java:2570–2586  ·  view source on GitHub ↗
(Plot thePlot)

Source from the content-addressed store, hash-verified

2568 }
2569
2570 double updatePlot(Plot thePlot) {
2571 if (thePlot == plot) {
2572 ImagePlus plotImage = WindowManager.getImage(plotID);
2573 ImageWindow win = plotImage!=null?plotImage.getWindow():null;
2574 if (win!=null)
2575 ((PlotWindow)win).drawPlot(plot);
2576 else {
2577 PlotWindow plotWindow = plot.show();
2578 if (plotWindow!=null)
2579 plotID = plotWindow.getImagePlus().getID();
2580 }
2581 } else
2582 thePlot.updateImage();
2583 plot = null; //not a plot under construction any more
2584 interp.getParens();
2585 return Double.NaN;
2586 }
2587
2588 double addPlotText(Plot plot) {
2589 String str = getFirstString();

Callers 1

doPlotMethod · 0.95

Calls 8

getImageMethod · 0.95
getWindowMethod · 0.95
getIDMethod · 0.80
getParensMethod · 0.80
drawPlotMethod · 0.45
showMethod · 0.45
getImagePlusMethod · 0.45
updateImageMethod · 0.45

Tested by

no test coverage detected