Login  Register

Re: Combining Curve fitting plots with other plots

Posted by Rasband, Wayne (NIH/NIMH) [E] on Jul 10, 2010; 4:26pm
URL: http://imagej.273.s1.nabble.com/Combining-Curve-fitting-plots-with-other-plots-tp3687648p3687649.html

On Jul 9, 2010, at 10:01 AM, alexra wrote:

> Hello
> I am trying to get a combined plot of data in my results table and a plot of
> a fit function in my ImageJ macro.  I managed to get my results plotted
> (several x,y data sets in one plot window) and I get the graphic fit
> function of one data set (x,y).  Now I want to combine these into one plot
> that shows the original data (several line plots) together with the
> calculated fit function.  
> I tried the macro recorder, but when I press the list bottom to get the
> values this is not recorded.  So is there a way to address/access the x,y
> values from the fit function and can they be read into an array to be
> plotted in the other plot?

You can plot the calculated fit function by using the Fit.f(x) macro function. There is an example at

     http://rsbweb.nih.gov/ij/macros/examples/PlotSigmoidDerivatives.txt

-wayne