Plot bug?
Posted by Rotella, Anthony M. (GRC)[] on Aug 17, 2007; 3:23pm
URL: http://imagej.273.s1.nabble.com/Plot-bug-tp3698591.html
Hello all,
I am working on plotting some data using the Plot commands, and
I noticed something interesting. I have been plotting arrays, and been
getting confusing results using the setLimits function. My code looks
like this:
Plot.create("Total Area vs. Slice Number","Slice", "Total Area",
totalArea);
Plot.setColor("orange");
Plot.setLimits(1, totalArea.length, 0, 50000);
Plot.show();
The array has a 0 value at 0 (I wanted the data to correlate with slice
number, so the array really starts at 1, hence the 1-totalArea.length
for x-values.) and then at 1 it jumps up to about 17000. Now, in the
plot, there are several problems:
1. It displays totalArea[1] somewhere around (0, 6000), optically, on
the plot. If I hover my mouse over that point though, it says (1,
17250). Interesting....
2. Despite setting the y-scale to be (0, 50000), the last axis label on
the plot only goes up to 15000, so it probably goes up to about 17500.
Thanks,
Tony Rotella