Change eye diagram plot color into black on white

조회 수: 12 (최근 30일)
Muhammad Afif Ramadhan
Muhammad Afif Ramadhan 2021년 8월 9일
댓글: Chunru 2022년 9월 9일
Eye diagram in MATLAB 2020b was a blue on white background, and now for some reason after I upgrade to 2021a, the plot invert its color into yellow lines on black background. Is there a way to change it back?
Below I attach pictures to illustrate the difference.
  댓글 수: 1
Muhammad Afif Ramadhan
Muhammad Afif Ramadhan 2021년 8월 11일
After a lot of tinkering, I found the best method to change it is to access the property inspector and click on the object you want to change the color. Thanks the answer everyone.

댓글을 달려면 로그인하십시오.

답변 (2개)

Awais Saeed
Awais Saeed 2021년 8월 9일
Use
set(gca,'Color','white')
to change the background color after the plot command

Chunru
Chunru 2021년 8월 9일
get a handle of the object and there are color properties for you to change. You may also need to change the Children object color.
  댓글 수: 2
Jerry Malone
Jerry Malone 2022년 9월 9일
So how do you do that?
The default colors make eyediagram unusable. I need to change the background from black to the usual figure background color, the plot lines from yellow to blue, the axes to black, the two subplot backgrounds to the usual backround color, turn the grids on, and clean up the titles.
It's not worth my time to figure out how to do all that, when I can just write my own eyediagram code.
That's the problem with the comms tools.
Chunru
Chunru 2022년 9월 9일
Can you post your code?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by