Posted by
Stein Rørvik on
Oct 23, 2020; 11:43am
URL: http://imagej.273.s1.nabble.com/Cannot-change-default-plot-font-size-tp5024084p5024108.html
No that is not the case for me, I never change settings in the StartupMacros file. I have a toolset that contains all customization of my ImageJ, which I launch from the Options → Startup option. This works great, and avoids problems with multiple startup macro threads.
I have already determined the cause of the problem in my case:
ImageJ uses the prefs file in the ImageJ directory if there is a prefs file there, and uses the prefs file in the home directory if there is no local prefs file in the ImageJ directory. This is the intended behaviour, and this is also very useful, as one can then choose to use a "global" prefs file (which is also used by Fiji I presume), or a local one, to ensure reproducible behaviour in an installation. That is very important when you revisit a several years old project, as many things probably have changed in the meantime. Making a zip archive of the current ImageJ dir is an easy way to ensure that you can reproduce stuff later.
The problem occurs when ImageJ is launched from the command line with a current dir outside the ImageJ directory. This will usually be the case when using an external editor. The local prefs file is then ignored and the global one used instead. I consider this to be a bug. So when you use an external editor for your macros, the changes you did are ignored when launching ImageJ by double clicking the ImageJ.exe file, if you also have a local prefs file. I have not had any problem with this before as I use an external editor and the ImageJ internal editor about half of the time each, so all the changes done by my macros go to both places, keeping both prefs files up-to-date with almost the same settings.
Norbert can check if this is the case for him too, by deleting the local prefs file, if he has one. If not, then the cause must be elsewere for his case.
Stein
-----Original Message-----
From: ImageJ Interest Group <
[hidden email]> On Behalf Of Gabriel Landini
Sent: 23. oktober 2020 10:47
To:
[hidden email]
Subject: Re: Cannot change default plot font size
Hi Stein, Norbert,
Another possibility is that somebody has set the font size (recorded it) in the StartupMacros.file.
Perhaps check what is in that file in both computers?
Cheers
Gabriel
--
ImageJ mailing list:
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&data=04%7C01%7Cstein.rorvik%40sintef.no%7Ce92fa6a2483042ab6e7d08d877305e77%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637390396918640576%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ZRaLWc%2BEeSIVtSdS2RIn8gu7eKlO2xCWcMFo6DLLTw4%3D&reserved=0--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html