<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - toScaled() gives wrong values when a macro has drawn a new plot in an existing plot window"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=955">955</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>toScaled() gives wrong values when a macro has drawn a new plot in an existing plot window
</td>
</tr>
<tr>
<th>Product</th>
<td>Fiji
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>ImageJ1
</td>
</tr>
<tr>
<th>Assignee</th>
<td>imagej-bugs@imagej.net
</td>
</tr>
<tr>
<th>Reporter</th>
<td>johan@toloe.se
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=220&action=diff" name="attach_220" title="Patch to fix issue with a plot window not having updated calibration values set">attachment 220</a> <a href="attachment.cgi?id=220&action=edit" title="Patch to fix issue with a plot window not having updated calibration values set">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>