Posted by
Michael Schmid on
Oct 22, 2020; 2:43pm
URL: http://imagej.273.s1.nabble.com/Cannot-change-default-plot-font-size-tp5024084p5024100.html
Hi Stein, Norbert,
no problem for me: ImageJ remembers the font size and also uses it for
new plots (I tried both profiles and plotting data from a ResultsTable).
ImageJ 1.53f48; Java 1.8.0_112 [64-bit]; Linux 4.4.0-190-generic
I am sure it was also working with earlier versions of ImageJ.
To me, the code for reading the default font size looks rather clear, I
don't think that it could have a problem.
Possible ideas:
(1) A corrupt IJ_Prefs.txt file, and ImageJ does not read it beyond some
point where it has a problem. You could try moving the line with
pp.fontsize to the beginning of the IJ_Prefs.txt with a text editor. and
see whether the problem persists.
You could also try running Imagej from the command line and check for
possible error messages.
I tried artificially inserting a malformed unicode \uxyz in IJ_Prefs.txt
and it caused ImageJ to crash with an
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
But maybe there can be other problems in IJ_Prefs.txt not causing ImageJ
to crash but rather to stop reading the file from some point.
(2) Rather remote possibility: Are you using plain ImageJ or Fiji? Maybe
some Fiji patch to ImageJ could cause a problem?
Michael
________________________________________________________________
On 22.10.20 12:59, Stein Rørvik wrote:
> I can reproduce the problem.
> Apparently the plot font size is saved in settings, but is not respected by ImageJ.
>
> My prefs file has an entry
> pp.fontsize=14
> (I never changed this as I am happy with the default)
>
> If I go to Options - Plot and change it to 18 and quit, the prefs file now has the entry
> pp.fontsize=18
>
> But when I reopen ImageJ, plots still have a 14 point fontsize, and Options - Plot also show a fontsize of 14
> The prefs file still has the entry
> pp.fontsize=18
> though.
>
> ImageJ 1.53f45, Java 1.8.0_172
>
> Stein
>
> -----Original Message-----
> From: ImageJ Interest Group <
[hidden email]> On Behalf Of Wayne Rasband
> Sent: 20. oktober 2020 01:30
> To:
[hidden email]
> Subject: Re: Cannot change default plot font size
>
>> On Oct 18, 2020, at 4:31 PM, Norbert Vischer <
[hidden email]> wrote:
>>
>> Hello,
>>
>> After relaunching ImageJ, the Plot font size is always set to "9", on another computer to "12".
>> How can I change the default font size? "More>Plot Defaults> Font Size" does not survive relaunch.
>> And more generally, where are all the other defaults saved like "JPEG quality = 85”?
>
> Hi Norbert,
>
> I am not able to reproduce this problem. How do you exit ImageJ? The preferences are saved when you exit normally by either clicking the close button in the “ImageJ” window or by using the File>Quit command.
>
> -wayne
>
> --
> 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%7Ca1b3657a3e024fbafc9a08d8748724f6%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637387471083575585%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Z5spLDsF1KBPSt6K8RP0l4cUk%2B9cBre0Hzy43s0f8o0%3D&reserved=0>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html