How to resolve "no plot window"
Posted by
fieryice12 on
Jun 07, 2019; 1:03pm
URL: http://imagej.273.s1.nabble.com/How-to-resolve-no-plot-window-tp5022234.html
I am writing a macro to batch process multiple files in a folder. When I run
this code, I'm getting the error message "No plot window in line 6". What is
causing this and how can it be fixed? Thanks in advance.
function action(output, filename)
{
open(input + filename);
makeRectangle(75, 47, 40, 42);
run("Plot Z-axis Profile", "profile=time");
Plot.showValues();
saveAs("Results", output + filename);
close();
}
input = "C:/Users/Admin/Desktop/Input/";
output = "C:/Users/Admin/Desktop/Output/";
setBatchMode(true);
list = getFileList(input);
for (i = 0; i < list.length; i++)
{
action(output, list[i]);
}
setBatchMode(false);
--
Sent from:
http://imagej.1557.x6.nabble.com/--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html