Cannot change default plot font size

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

Cannot change default plot font size

Norbert Vischer
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"?

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

Re: Cannot change default plot font size

Herbie
Greetings Norbert,

on my Mac and ImageJ version 1.53e the plot font size is kept.

Regards

Herbie

:::::::::::::::::::::::::::::::::::::::::::::
Am 18.10.20 um 22:31 schrieb Norbert Vischer:
> 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"?
>
> regards, Norbert

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

Re: Cannot change default plot font size

Michael Schmid
In reply to this post by Norbert Vischer
Hi Norbert,

the options are saved in IJ_Prefs.txt. On Linux, it is in the .imagej
hidden folder of the user's home directory.
On Macs, it is in the users Library/Preferences.
On Windows, it seems to be in the ImageJ directory. This requires write
access to the ImageJ directory (as also needed for Help>Update ImageJ)

The item for the plot font in IJ_Prefs.txt is named 'pp.fontsize', the
one for jpeg quality 'jpeg'.

Best wishes,

Michael
________________________________________________________________
On 18.10.20 22:31, Norbert Vischer 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"?

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

Re: Cannot change default plot font size

CARL Philippe (LBP)
Hi Michael,
How are you doing?
On Windows, the IJ_Prefs.txt file is (quite similarly as for Linux) saved in the .imagej folder (which isn't hidden) of the user's home directory.
My best regards,
Philippe

----- Mail original -----
De: "Michael Schmid" <[hidden email]>
À: "imagej" <[hidden email]>
Envoyé: Lundi 19 Octobre 2020 09:07:50
Objet: Re: Cannot change default plot font size

Hi Norbert,

the options are saved in IJ_Prefs.txt. On Linux, it is in the .imagej
hidden folder of the user's home directory.
On Macs, it is in the users Library/Preferences.
On Windows, it seems to be in the ImageJ directory. This requires write
access to the ImageJ directory (as also needed for Help>Update ImageJ)

The item for the plot font in IJ_Prefs.txt is named 'pp.fontsize', the
one for jpeg quality 'jpeg'.

Best wishes,

Michael
________________________________________________________________
On 18.10.20 22:31, Norbert Vischer 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"?

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

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

Re: Cannot change default plot font size

Stein Rørvik
In addition to this,
you can also place the IJ_Prefs.txt file in the ImageJ directory; then that location will override the default file in the home_dir/.imagej folder. This is useful for standalone installations with reproducible behaviour.

Steins

-----Original Message-----
From: ImageJ Interest Group <[hidden email]> On Behalf Of CARL Philippe (LBP)
Sent: 19. oktober 2020 11:17
To: [hidden email]
Subject: Re: Cannot change default plot font size

Hi Michael,
How are you doing?
On Windows, the IJ_Prefs.txt file is (quite similarly as for Linux) saved in the .imagej folder (which isn't hidden) of the user's home directory.
My best regards,
Philippe

----- Mail original -----
De: "Michael Schmid" <[hidden email]>
À: "imagej" <[hidden email]>
Envoyé: Lundi 19 Octobre 2020 09:07:50
Objet: Re: Cannot change default plot font size

Hi Norbert,

the options are saved in IJ_Prefs.txt. On Linux, it is in the .imagej hidden folder of the user's home directory.
On Macs, it is in the users Library/Preferences.
On Windows, it seems to be in the ImageJ directory. This requires write access to the ImageJ directory (as also needed for Help>Update ImageJ)

The item for the plot font in IJ_Prefs.txt is named 'pp.fontsize', the one for jpeg quality 'jpeg'.

Best wishes,

Michael
________________________________________________________________
On 18.10.20 22:31, Norbert Vischer 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"?

--
ImageJ mailing list: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7C42db37e4698c4353263408d8740ffa20%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637386959259195748%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=yGSDnMT9rQgDHsKkPPtuX%2FyFvkVyHZcnHpFoxpOgZ3c%3D&amp;reserved=0

--
ImageJ mailing list: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7C42db37e4698c4353263408d8740ffa20%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637386959259195748%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=yGSDnMT9rQgDHsKkPPtuX%2FyFvkVyHZcnHpFoxpOgZ3c%3D&amp;reserved=0

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

Re: Cannot change default plot font size

Fco. Javier Diez Guerra
Hello,

In my Windows 10 Education (v. 2004, 64 bit), the file IJ_Prefs.txt is
located by default at the folder C:\Users\"username"\.imagej

Javier


El 19/10/2020 a las 13:02, Stein Rørvik escribió:

> In addition to this,
> you can also place the IJ_Prefs.txt file in the ImageJ directory; then that location will override the default file in the home_dir/.imagej folder. This is useful for standalone installations with reproducible behaviour.
>
> Steins
>
> -----Original Message-----
> From: ImageJ Interest Group <[hidden email]> On Behalf Of CARL Philippe (LBP)
> Sent: 19. oktober 2020 11:17
> To: [hidden email]
> Subject: Re: Cannot change default plot font size
>
> Hi Michael,
> How are you doing?
> On Windows, the IJ_Prefs.txt file is (quite similarly as for Linux) saved in the .imagej folder (which isn't hidden) of the user's home directory.
> My best regards,
> Philippe
>
> ----- Mail original -----
> De: "Michael Schmid" <[hidden email]>
> À: "imagej" <[hidden email]>
> Envoyé: Lundi 19 Octobre 2020 09:07:50
> Objet: Re: Cannot change default plot font size
>
> Hi Norbert,
>
> the options are saved in IJ_Prefs.txt. On Linux, it is in the .imagej hidden folder of the user's home directory.
> On Macs, it is in the users Library/Preferences.
> On Windows, it seems to be in the ImageJ directory. This requires write access to the ImageJ directory (as also needed for Help>Update ImageJ)
>
> The item for the plot font in IJ_Prefs.txt is named 'pp.fontsize', the one for jpeg quality 'jpeg'.
>
> Best wishes,
>
> Michael
> ________________________________________________________________
> On 18.10.20 22:31, Norbert Vischer 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"?
> --
> ImageJ mailing list: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7C42db37e4698c4353263408d8740ffa20%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637386959259195748%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=yGSDnMT9rQgDHsKkPPtuX%2FyFvkVyHZcnHpFoxpOgZ3c%3D&amp;reserved=0
>
> --
> ImageJ mailing list: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7C42db37e4698c4353263408d8740ffa20%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637386959259195748%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=yGSDnMT9rQgDHsKkPPtuX%2FyFvkVyHZcnHpFoxpOgZ3c%3D&amp;reserved=0
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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

Re: Cannot change default plot font size

Fred Damen
In reply to this post by Norbert Vischer
Greetings Norbert,

I have noticed in the past that some preferences are saved upon exit of
imagej and not at the point in time that you changed them. Thus launching
a new imagej before closing the one in which you changed the preference
will probably not reflect the change.

Fred

On Sun, October 18, 2020 3:31 pm, Norbert Vischer 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"?
>
> regards, Norbert
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

Re: Cannot change default plot font size

Norbert Vischer
Hello all,

thanks for the useful hints!
However, I still can reproduce my problem with this sequence:


1.  set these defaults:
=======================
run("Plots...", "font=17");//set default to 17
run("Input/Output...", "jpeg=77");

2. Quit and relaunch
====================

3. Does Dialog  match Prefs file?
=================================

open("/Users/norbert/Library/Preferences/IJ_Prefs.txt");
run("Plots...");

Obviously JPEG quality listens but default Plot font size does not.
Stein, there was indeed a 6-year old .imagej folder in Home. I deleted it, but it didn't help

Best regards, Norbert



ImageJ 1.53e; Java 1.8.0_251 [64-bit]; Mac OS X 10.15.7






>
> On 19. Oct 2020, at 18:12, Fred Damen <[hidden email]> wrote:
>
> Greetings Norbert,
>
> I have noticed in the past that some preferences are saved upon exit of
> imagej and not at the point in time that you changed them. Thus launching
> a new imagej before closing the one in which you changed the preference
> will probably not reflect the change.
>
> Fred
>
> On Sun, October 18, 2020 3:31 pm, Norbert Vischer 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"?
>>
>> regards, Norbert
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

PastedGraphic-1.png (573K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot change default plot font size

Wayne Rasband-2
In reply to this post by Norbert Vischer
> 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: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Cannot change default plot font size

Stein Rørvik
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&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7Ca1b3657a3e024fbafc9a08d8748724f6%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637387471083575585%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Z5spLDsF1KBPSt6K8RP0l4cUk%2B9cBre0Hzy43s0f8o0%3D&amp;reserved=0

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

Re: Cannot change default plot font size

Michael Schmid
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&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7Ca1b3657a3e024fbafc9a08d8748724f6%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637387471083575585%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Z5spLDsF1KBPSt6K8RP0l4cUk%2B9cBre0Hzy43s0f8o0%3D&amp;reserved=0
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

Re: Cannot change default plot font size

Stein Rørvik
2) First; I use plain ImageJ 99.9% of the time, also in this case.

1) I tried your suggestion of deleting the prefs file from the homedir, and it worked.

However, when I closed ImageJ I noticed that the prefs file was written in the ImageJ directory instead of the previous default location of homedir/.imagej

So I tried to move the file from the ImageJ dir to homedir/.imagej and tested it; it still worked.

But having a IJ_Prefs.txt file both places recreates the problem:

The changes in the font option is written to ImageJ/IJ_Prefs.txt, but read from homedir/.imagej/IJ_Prefs.txt
So the changes are thus ignored.

I remember seeing an issue previously with a local prefs file being ignored when launching from the command line (I usually do that), and this seems to be the cause of the problem: Launching ImageJ via the Windows explorer by double-clinking the ImageJ.exe both reads and writes to the local file ImageJ/IJ_Prefs.txt.

Norbert says his prefs file in homedir/.imagej was several years old; this might indicate that he has his prefs file in the ImageJ dir. Norbert, are you launching ImageJ from the command line or using an external editor? This might explain why deleting the homedir/.imagej/IJ_Prefs.txt file did not fix your problem. If you deleted that file and ImageJ was launched from the command line or an external editor, ImageJ used its default options (as if there were no prefs file existant) when trying to read from that location.

Stein

-----Original Message-----
From: ImageJ Interest Group <[hidden email]> On Behalf Of Michael Schmid
Sent: 22. oktober 2020 16:44
To: [hidden email]
Subject: Re: Cannot change default plot font size

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&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7C28dc046cc261419a4ab508d876c191b9%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637389921028563076%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2FQckMmBBOPzoH9wrjS6yE759PEqsHGyMTh0MAKiDrNo%3D&amp;reserved=0
>
> --
> ImageJ mailing list: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7C28dc046cc261419a4ab508d876c191b9%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637389921028563076%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2FQckMmBBOPzoH9wrjS6yE759PEqsHGyMTh0MAKiDrNo%3D&amp;reserved=0
>

--
ImageJ mailing list: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7C28dc046cc261419a4ab508d876c191b9%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637389921028573034%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=y%2B4RIYGozIQe3kCKI%2BcmWklKWyKFf4JLzLxQNOF5aDI%3D&amp;reserved=0

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

Re: Cannot change default plot font size

Cammer, Michael-3
I have notice problems with the text size in ImageJ and wonder whether this is the same problem.  When I an using the Stacks > Label... command, the text size is not remembered.  Every time I use the GUI, the text returned to a default, not the last size I used.  Also, this is occurring with the standard text tool.  If I recall properly, the text size used to be remembered as the user set it until the software was quit and restarted.
Cheers-
Michael Cammer

-----Original Message-----
From: ImageJ Interest Group <[hidden email]> On Behalf Of Stein Rørvik
Sent: Thursday, October 22, 2020 4:28 PM
To: [hidden email]
Subject: Re: Cannot change default plot font size

[EXTERNAL]

2) First; I use plain ImageJ 99.9% of the time, also in this case.

1) I tried your suggestion of deleting the prefs file from the homedir, and it worked.

However, when I closed ImageJ I noticed that the prefs file was written in the ImageJ directory instead of the previous default location of homedir/.imagej

So I tried to move the file from the ImageJ dir to homedir/.imagej and tested it; it still worked.

But having a IJ_Prefs.txt file both places recreates the problem:

The changes in the font option is written to ImageJ/IJ_Prefs.txt, but read from homedir/.imagej/IJ_Prefs.txt So the changes are thus ignored.

I remember seeing an issue previously with a local prefs file being ignored when launching from the command line (I usually do that), and this seems to be the cause of the problem: Launching ImageJ via the Windows explorer by double-clinking the ImageJ.exe both reads and writes to the local file ImageJ/IJ_Prefs.txt.

Norbert says his prefs file in homedir/.imagej was several years old; this might indicate that he has his prefs file in the ImageJ dir. Norbert, are you launching ImageJ from the command line or using an external editor? This might explain why deleting the homedir/.imagej/IJ_Prefs.txt file did not fix your problem. If you deleted that file and ImageJ was launched from the command line or an external editor, ImageJ used its default options (as if there were no prefs file existant) when trying to read from that location.

Stein

-----Original Message-----
From: ImageJ Interest Group <[hidden email]> On Behalf Of Michael Schmid
Sent: 22. oktober 2020 16:44
To: [hidden email]
Subject: Re: Cannot change default plot font size

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://urldefense.proofpoint.com/v2/url?u=https-3A__eur03.safelinks.p
> rotection.outlook.com_-3Furl-3Dhttp-253A-252F-252Fimagej.nih.gov-252Fi
> j-252Flist.html-26amp-3Bdata-3D04-257C01-257Cstein.rorvik-2540sintef.n
> o-257C28dc046cc261419a4ab508d876c191b9-257Ce1f00f39604145b0b309e0210d8
> b32af-257C1-257C0-257C637389921028563076-257CUnknown-257CTWFpbGZsb3d8e
> yJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0-253D-25
> 7C1000-26amp-3Bsdata-3D-252FQckMmBBOPzoH9wrjS6yE759PEqsHGyMTh0MAKiDrNo
> -253D-26amp-3Breserved-3D0&d=DwIGaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3
> ExJHeIIZuCs&r=E0xNnPAQpUbDiPlC50tp7rW2nBkvV7fujQf0RknE5bU&m=3WGD_w5Ot5
> 1FtTGdyXKy6lQwvjGLkgWJxyc0U_HApIQ&s=tYIsYsgAk8zQo-XiFttgCtPZc7Z7GFWAji
> VeZTBKFZY&e=
>
> --
> ImageJ mailing list:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__eur03.safelinks.p
> rotection.outlook.com_-3Furl-3Dhttp-253A-252F-252Fimagej.nih.gov-252Fi
> j-252Flist.html-26amp-3Bdata-3D04-257C01-257Cstein.rorvik-2540sintef.n
> o-257C28dc046cc261419a4ab508d876c191b9-257Ce1f00f39604145b0b309e0210d8
> b32af-257C1-257C0-257C637389921028563076-257CUnknown-257CTWFpbGZsb3d8e
> yJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0-253D-25
> 7C1000-26amp-3Bsdata-3D-252FQckMmBBOPzoH9wrjS6yE759PEqsHGyMTh0MAKiDrNo
> -253D-26amp-3Breserved-3D0&d=DwIGaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3
> ExJHeIIZuCs&r=E0xNnPAQpUbDiPlC50tp7rW2nBkvV7fujQf0RknE5bU&m=3WGD_w5Ot5
> 1FtTGdyXKy6lQwvjGLkgWJxyc0U_HApIQ&s=tYIsYsgAk8zQo-XiFttgCtPZc7Z7GFWAji
> VeZTBKFZY&e=
>

--
ImageJ mailing list: https://urldefense.proofpoint.com/v2/url?u=https-3A__eur03.safelinks.protection.outlook.com_-3Furl-3Dhttp-253A-252F-252Fimagej.nih.gov-252Fij-252Flist.html-26amp-3Bdata-3D04-257C01-257Cstein.rorvik-2540sintef.no-257C28dc046cc261419a4ab508d876c191b9-257Ce1f00f39604145b0b309e0210d8b32af-257C1-257C0-257C637389921028573034-257CUnknown-257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0-253D-257C1000-26amp-3Bsdata-3Dy-252B4RIYGozIQe3kCKI-252BcmWklKWyKFf4JLzLxQNOF5aDI-253D-26amp-3Breserved-3D0&d=DwIGaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=E0xNnPAQpUbDiPlC50tp7rW2nBkvV7fujQf0RknE5bU&m=3WGD_w5Ot51FtTGdyXKy6lQwvjGLkgWJxyc0U_HApIQ&s=L8lTkmWz8i-1cmV7nTkifKbTZSZt8VD7M0fsZWXmyQE&e=

--
ImageJ mailing list: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=DwIGaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=E0xNnPAQpUbDiPlC50tp7rW2nBkvV7fujQf0RknE5bU&m=3WGD_w5Ot51FtTGdyXKy6lQwvjGLkgWJxyc0U_HApIQ&s=r6_UZyyoAthGEHKggW2YsHqzCWCBn8CXGIW4NgTCmWU&e=

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================


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

Re: Cannot change default plot font size

Gabriel Landini
In reply to this post by Michael Schmid
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: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Cannot change default plot font size

Stein Rørvik
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&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7Ce92fa6a2483042ab6e7d08d877305e77%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637390396918640576%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ZRaLWc%2BEeSIVtSdS2RIn8gu7eKlO2xCWcMFo6DLLTw4%3D&amp;reserved=0

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

Re: Cannot change default plot font size

Norbert Vischer
Hello all, problem solved.

First thanks for the suggestions and hints about Prefs.

Problem: There was a startup command which changed the font size.
I did check "StartupMacros.txt" for "AutoRun",
but wasn't aware of the newer autorun method via
"Edit>Options>Startup" which creates/modifies the file:
        RunAtStartup.ijm
Stein thanks for the hint.
best regards, Norbert


On 23. Oct 2020, at 13:43, Stein Rørvik <[hidden email]> wrote:

>
> 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&amp;data=04%7C01%7Cstein.rorvik%40sintef.no%7Ce92fa6a2483042ab6e7d08d877305e77%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637390396918640576%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ZRaLWc%2BEeSIVtSdS2RIn8gu7eKlO2xCWcMFo6DLLTw4%3D&amp;reserved=0
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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