Login  Register

Re: To plot mean values in results table

Posted by Kota Miura on Oct 29, 2014; 9:31am
URL: http://imagej.273.s1.nabble.com/To-plot-mean-values-in-results-table-tp5010204p5010219.html

Hi cwc,

You do not need to write a macro. Use "Plot Results" function from BAR
package written by Tiago Ferreira.

https://github.com/tferr/Scripts/blob/master/README.md#data-analysis

BAR is listed in the update sites.
http://fiji.sc/List_of_update_sites

HTH
Kota

On Mon, Oct 27, 2014 at 4:53 PM, cwc <[hidden email]> wrote:

> Hi everyone,
>
> My apology if my question is too basic. I am trying to search the related
> topics but still confused. My need is to plot x-y graph (x = nResults and y
> = mean in results table) and thus I try to modify the example code but fail
> (please see below). Could everyone help me to figure it out?  Thank you
> very
> much.
>
>
> n = nResults;
>
>     macro "Plot" {
>          yValues = getResult('mean');
>          Plot.create("Plot", "X", "Y");
>          Plot.setLimits(0, n, 0, 10000);
>          Plot.setLineWidth(2);
>          Plot.setColor("lightGray");
>          Plot.add("line",yValues);
>          Plot.setColor("red");
>          Plot.add("circles", yValues);
>          Plot.show();
> }
>
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/To-plot-mean-values-in-results-table-tp5010204.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--

-------------------------------------------------------------*Dr. Kota Miura*

Scientist & IT Engineer
Centre for Molecular and Cellular Imaging,
European Molecular Biology Laboratory
Meyerhofstr. 1
69117 Heidelberg
GERMANY

Tel +49 6221 387 404

Mobile +49 160 95001177

Fax +49 6221 387 512

http://cmci.embl.de
-------------------------------------------------------------

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html