make MATLAB plots fit dark mode theme backgrounds
現在この提出コンテンツをフォロー中です。
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます
編集メモ: This file was selected as MATLAB Central Pick of the Week
dark mode plot
This file was selected as MATLAB Central Pick of the Week!
Transform your MATLAB plots to fit dark mode theme backgrounds! The function test which of the figure colors are not suitable to be used over a dark background (via color contrast), and adjust colors accordingly using a desaturation and brightness approach. In addition, it transforms the relevant Matlab figure attributes, such as axis and text colors, and figure background. The result is a transformed figure that can be copied to a dark mode theme presentation or website.
Preparing this function I was inspired by https://material.io/design/color/dark-theme.html
How to use the function: generate or import a Matlab figure and run the function, for example:
plot(bsxfun(@times,[1:4],[2:5]'));xlabel('X');ylabel('Y');
plot_darkmode
Copy the figure from the clipboard using Edit>Copy Figure and paste it on top of the dark background theme, for example in PowerPoint. Make sure that in the Copy Option, the Transparent Background is enabled. The function was tested with Matlab 2019b - Win10.
引用
Adi Natan (2026). dark mode plot (https://github.com/adinatan/plot_darkmode/releases/tag/v1.15), GitHub. に取得済み.
一般的な情報
- バージョン 1.15.0.0 (369 KB)
-
GitHub でライセンスを表示
MATLAB リリースの互換性
- すべてのリリースと互換性あり
プラットフォームの互換性
- Windows
- macOS
- Linux
| バージョン | 公開済み | リリース ノート | Action |
|---|---|---|---|
| 1.15.0.0 | See release notes for this release on GitHub: https://github.com/adinatan/plot_darkmode/releases/tag/v1.15 |
||
| 1.14.0.0 | See release notes for this release on GitHub: https://github.com/adinatan/plot_darkmode/releases/tag/v1.14 |
||
| 1.13 | See release notes for this release on GitHub: https://github.com/adinatan/plot_darkmode/releases/tag/V1.13 |
||
| 1.12 | See release notes for this release on GitHub: https://github.com/adinatan/plot_darkmode/releases/tag/v1.12 |
||
| 1.11 | See release notes for this release on GitHub: https://github.com/adinatan/plot_darkmode/releases/tag/v1.11 |
||
| 1.1 | See release notes for this release on GitHub: https://github.com/adinatan/plot_darkmode/releases/tag/v1.1 |
||
| 1.0 |


