Re: programmatically changing the values within a plot
Posted by Michael Schmid on Apr 17, 2007; 10:58am
URL: http://imagej.273.s1.nabble.com/programmatically-changing-the-values-within-a-plot-tp3699737p3699739.html
Hi Yoav,
you don't need to make a new ImagePlus, but I think there is no
way around creating a new ImageProcessor each time.
plot = new Plot(...);
plot.addPoints(...);
ImageProcessor ip = plot.getProcessor();
Michael
________________________________________________________________
On 17 Apr 2007, at 10:35, Yoav Rubin wrote:
> Hi All,
> I am using the Plot class to display some analyzed data of a line
> in an image. Is there a way to programmatically change the data of
> the Plot (namely the X and Y values) and use the same Plot object,
> instead of creating a new one? This will allow me to easily move
> between lines and display thei
> r analyzed data.
> Thanks
> Yoav