On Apr 30, 2013, at 4:30 AM, Burri Olivier wrote:
> Dear list,
>
> Is there a particular way to tell the
>
> run("Distribution...", "parameter=[Whatever] or=10 and=0-0");
>
> Command to have an user-defined interval that starts with negative values?
>
> When left to calculate the range automatically, it works fine, but when the range is specified manually, whether as a macro or through the Results->Distribution Dialog Box, it does not read negative numbers.
This bug is fixed in the ImageJ 1.47q daily build, thanks to Michael Schmid, who suggested changing
String[] minAndMax = Tools.split(range, " -");
to
String[] minAndMax = range.replaceAll("([0-9.])[\t ]*-", "$1,").split(",");
in ij.plugin.Distribution.java.
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html