Question Re: Plot Windo
Posted by jade5357 on Jan 31, 2010; 12:17pm
URL: http://imagej.273.s1.nabble.com/Question-Re-Plot-Windo-tp3689546.html
Hello! Im making a plugin that uses Plot Window.. I just can't seem to get it right..
import ij.*;
import ij.process.*;
import ij.gui.*;
import java.awt.*;
import ij.plugin.*;
public class LST_Trend implements PlugIn {
ImagePlus img;
public void run(String arg) {
ImageWindow win = img.getWindow();
/*** codes in between ***/
PlotWindow plot = new PlotWindow("LST Trend", " Year ", "Temperature",t,Y); <--- this is the error
}
}
Do i need to implement the Plot Window in a PluginFrame or it also works in PlugIn only??
Sorry, I'm new to this thing..