Bugzilla – Bug 955 |
toScaled() gives wrong values when a macro has drawn a new plot in an existing plot window |
Last modified: 2014-11-07 11:44:56 CST |
⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
toScaled() gives wrong values when a macro has drawn a new plot in an existin... |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
Created attachment 220 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.