Extracting Plot Values

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

Extracting Plot Values

Norbert Vischer-2
Hi All,

we often want to reproduce an ImageJ plot in another program like Igor.
To extract the plot values,  we click "List" in the plot window. However, in the example below I only get columns "Y1" and "Y2", while "X1" and "X2" are missing. Secondly,  "Y2" only shows rounded integers.

 -- Norbert Vischer



macro "Simple Plot" {
        xValues1 = newArray(1,   2,   3,   4);
        yValues1 = newArray(1,   4,   9,   16);
 
        xValues2 = newArray(1.1,  2.1,   3.1,  4.1, 5.1);
        yValues2 = newArray(1.11, 2.22, 3.33, 4.44, 5.55);

        Plot.create("Simple Plot", "X", "Y");
        Plot.setLimits(0, 5, 0, 20);
        Plot.add("line", xValues1, yValues1);
        Plot.setColor("red");
        Plot.add("circles", xValues2, yValues2);
   }
Reply | Threaded
Open this post in threaded view
|

Re: Extracting Plot Values

Rasband, Wayne (NIH/NIMH) [E]
On Sep 29, 2011, at 8:41 AM, Norbert Vischer wrote:

> Hi All,
>
> we often want to reproduce an ImageJ plot in another program like Igor.
> To extract the plot values,  we click "List" in the plot window. However, in the example below I only get columns "Y1" and "Y2", while "X1" and "X2" are missing. Secondly,  "Y2" only shows rounded integers.

These bugs are fixed in the 1.45q daily build.

-wayne


> -- Norbert Vischer
>
> macro "Simple Plot" {
>        xValues1 = newArray(1,   2,   3,   4);
>        yValues1 = newArray(1,   4,   9,   16);
>
>        xValues2 = newArray(1.1,  2.1,   3.1,  4.1, 5.1);
>        yValues2 = newArray(1.11, 2.22, 3.33, 4.44, 5.55);
>
>        Plot.create("Simple Plot", "X", "Y");
>        Plot.setLimits(0, 5, 0, 20);
>        Plot.add("line", xValues1, yValues1);
>        Plot.setColor("red");
>        Plot.add("circles", xValues2, yValues2);
>   }