programmatically changing the values within a plot

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

programmatically changing the values within a plot

Yoav Rubin-2
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 their analyzed data.
Thanks
Yoav

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 
Reply | Threaded
Open this post in threaded view
|

Re: programmatically changing the values within a plot

Michael Schmid
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
Reply | Threaded
Open this post in threaded view
|

Re: programmatically changing the values within a plot

Yoav Rubin-2
In reply to this post by Yoav Rubin-2
Hi Michael, thanks for your response, this is what I searched for


----- Original Message ----
From: Michael Schmid <[hidden email]>
To: [hidden email]
Sent: Tuesday, April 17, 2007 11:58:57 AM
Subject: Re: programmatically changing the values within a plot


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

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com