Login  Register

Re: Plot.getValues(values, counts);

Posted by Jerome Mutterer-3 on Jul 09, 2010; 9:27pm
URL: http://imagej.273.s1.nabble.com/Plot-getValues-values-counts-tp3687639p3687640.html

>
> Plot.getValues(values, counts);

I cannot do this in Java.

WHY!?


Hi,
Go the the ImageJ source code, look in ij.macro.Functions.java
Search for string 'getValues'.
In the doPlot method, you see that getValues calls the getPlotValues();
method.
You find the source code for this method at line 1809.
There you can see how this function works, and that PlotWindow has
getXValues() and getYValues() methods.

http://pacific.mpi-cbg.de/cgi-bin/gitweb.cgi?p=imagej.git;a=blob;f=ij/macro/Functions.java;h=8ef6ee95567c52e4f086f977df50e26b79165735;hb=01bad343381f71d48781f291899896cb38ee80a4#l1809

Jerome


On Fri, Jul 9, 2010 at 10:56 PM, GAUTAM SHANKAR <[hidden email]> wrote:

> Plot.getValues(values, counts);
>
> I cannot do this in Java.
>
> WHY!?
>