Can I change the Simulink scope default from black bacground to white background?

235 ビュー (過去 30 日間)
Patrick Mawet
Patrick Mawet 2017 年 3 月 20 日
コメント済み: Peter Santner 2020 年 12 月 22 日
I prefer white background for the scope plots. The colors can be changed using the 'Style' dialog box, but is there as way to save a color scheme as default?

回答 (2 件)

Ed Marquez
Ed Marquez 2017 年 3 月 23 日
Hi,
Yes, you can. I assume you are using a Windows PC and R2016b.
To change the style of the scope block permanently:
-Go to this folder in your computer: C:\Program Files\MATLAB\R2016b\toolbox\simulink\blocks\library
-Open the library file named 'simulink' and double click 'Sinks'.
-Unlock the library and modify the scope block to have the style that you want.
- Save that library and lock it again.
After that, all scopes that you use in Simulink will have the customized style. I hope this helps!
  2 件のコメント
Caspar Ehmann
Caspar Ehmann 2018 年 2 月 19 日
It says permission denied when I want to save it. Or should I save it as a new file and not overwrite the old one ?
Markus Gurtner
Markus Gurtner 2018 年 4 月 5 日
Saving it temporary to a different location and then replacing the original file worked fine for me.

サインインしてコメントする。


Felipe Bazo Roldán
Felipe Bazo Roldán 2018 年 11 月 22 日
編集済み: Felipe Bazo Roldán 2018 年 11 月 22 日
Hi Ed, I did the steps as indicated on your answer, and I actually got to save the library simulink.slx file, as can be seen on the file attached. I tried quitting and restarting MATLAB and Simulink, but still when I run the simulation and open the scope, the default still has a black background. Also tried deleting the scopes on my simulation and inserting new ones, because maybe they had the default black background as an fixed attribute... still no help. Any ideas?
  1 件のコメント
Peter Santner
Peter Santner 2020 年 12 月 22 日
Hey, had the same problem. After restarting your PC it should work.
PS: works still for R2020b

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by