[ImageJ-bugs] [Bug 955] New: toScaled() gives wrong values when a macro has drawn a new plot in an existing plot window

bugzilla at fiji.sc bugzilla at fiji.sc
Fri Nov 7 03:12:03 CST 2014


http://fiji.sc/bugzilla/show_bug.cgi?id=955

            Bug ID: 955
           Summary: toScaled() gives wrong values when a macro has drawn a
                    new plot in an existing plot window
           Product: Fiji
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ImageJ1
          Assignee: imagej-bugs at imagej.net
          Reporter: johan at toloe.se

Created attachment 220
  --> http://fiji.sc/bugzilla/attachment.cgi?id=220&action=edit
Patch to fix issue with a plot window not having updated calibration values set

If a macro draws a new plot using Plot.create() in an existing plot window by
calling Plot.update(), a subsequent usage of toScaled for that plot will give
the wrong values. toScaled will scale its arguments using the properties of
the plot drawn when initially creating the plot window. This happens
completely without the user being aware.

The reason for this as far as I can tell is that using the Plot.update() macro
function calls the drawPlot() method of the plot window PlotWindow instance.
But this does not transfer the calibration data from the Plot to the
ImageProcessor of the PlotWindow instance. A patch that fixes this issue for
me is attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20141107/e4e079a8/attachment.html>


More information about the Imagej-bugs mailing list