Question Re: Plot Windo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Question Re: Plot Windo

jade5357
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..