change canvas size does work on image but not on plots anymore

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

change canvas size does work on image but not on plots anymore

Gelman, Laurent
Hi everybody,

In a macro, I use the following command:
run("Canvas Size...", "width=528 height=510 position=Bottom-Center zero");
For years, this has been working both on regular image windows and plots (I combine them after in one image), but now it does not anymore. The size of the canvas changes, but the plot is stretched (as if I had done a "resize"). Note that this command still works properly on images...

I have Fiji/ImageJ 1.49t

Thanks for your help,

Best regards,

Laurent.



___________________________
Laurent Gelman, PhD
Friedrich Miescher Institut
Head, Facility for Advanced Imaging and Microscopy
Light microscopy
WRO 1066.2.16
Maulbeerstrasse 66
CH-4058 Basel
+41 (0)61 696 35 13
+41 (0)79 618 73 69
www.fmi.ch<http://www.fmi.ch/>
www.microscopynetwork.unibas.ch/<http://www.microscopynetwork.unibas.ch/>




--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: change canvas size does work on image but not on plots anymore

Rasband, Wayne (NIH/NIMH) [E]
> On Jun 5, 2015, at 10:45 AM, Gelman, Laurent <[hidden email]> wrote:
>
> Hi everybody,
>
> In a macro, I use the following command:
> run("Canvas Size...", "width=528 height=510 position=Bottom-Center zero");
> For years, this has been working both on regular image windows and plots (I combine them after in one image), but now it does not anymore. The size of the canvas changes, but the plot is stretched (as if I had done a "resize"). Note that this command still works properly on images…

Plots are resizable in ImageJ 1.49t or later. You can avoid this behavior by clicking on “More>>” in the plot window and selecting “Freeze Plot” from the drop down menu. When creating a plot, use the Plot.freeze() macro function or Plot.setFrozen(true) method to make the plot non-resizable. Or upgrade to the latest ImageJ daily build (1.49u16) and the "Canvas Size…” command will automatically freeze the plot.

-wayne


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html