dark mode plot

버전 1.15.0.0 (369 KB) 작성자: Adi Natan
make MATLAB plots fit dark mode theme backgrounds
다운로드 수: 1.7K
업데이트 날짜: 2023/5/17

편집자 메모: This file was selected as MATLAB Central Pick of the Week

dark mode plot

View dark mode plot  on File Exchange 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.

plot plot

인용 양식

Adi Natan (2024). dark mode plot (https://github.com/adinatan/plot_darkmode/releases/tag/v1.15), GitHub. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2019b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
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

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.