scottclowe / matlab-schemer

Apply and save color schemes in MATLAB with ease.
BSD 2-Clause "Simplified" License
1.19k stars 273 forks source link

How to make new scheme persistent? #41

Closed rjrich closed 1 year ago

rjrich commented 1 year ago

I am new to Matlab and to matlab-schemer. I am running Matlab 2022b_r3 on Linux (Linux Mint 21.1 Xfce, based on Ubuntu 22.04 LTS). I have managed to use matlab-schemer to switch from the Matlab default color scheme to the cobalt scheme, but when I close Matlab and restart it, the color scheme has reverted to the Matlab default light color scheme. Is there a way to make the matlab-schemer cobalt scheme persistent so that Matlab starts up with the cobalt scheme?

scottclowe commented 1 year ago

That's unexpected, as the scheme is supposed to persist between closing and reopening MATLAB. It does the same thing as if you manually go in the preferences dialog and set the customizable GUI colours. If you manually set one of the colours in the preferences, does that persist between closing and reopening MATLAB?

rjrich commented 1 year ago

Thanks for your reply. I tried setting colors in the preferences and then Apply followed by OK. I then quit matlab and launched it again, but the colors had reverted to the matlab default light scheme.

On Mon, Feb 27, 2023 at 11:27 AM Scott Lowe @.***> wrote:

That's unexpected, as the scheme is supposed to persist between closing and reopening MATLAB. It does the same thing as if you manually go in the preferences dialog and set the customizable GUI colours. If you manually set one of the colours in the preferences, does that persist between closing and reopening MATLAB?

— Reply to this email directly, view it on GitHub https://github.com/scottclowe/matlab-schemer/issues/41#issuecomment-1446642609, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP6T7ITHGPW3YA52FLPZ5LWZTIVHANCNFSM6AAAAAAVH7QMRI . You are receiving this because you authored the thread.Message ID: @.***>

scottclowe commented 1 year ago

Okay, in that case its not an issue with Schemer, it's an issue with your MATLAB installation.

I think it this issue can be caused by installing MATLAB as root and running it as a user without sudo privileges. My recommendations are:

I will close this issue now, as it is not a problem with Schemer.

If you debug and find a solution to your problem, please post here so others will know a solution to try if they face the same problem and happen upon this post.

rjrich commented 1 year ago