MATLAB Answers

Why are the colors in my figures wrong?

조회 수: 16(최근 30일)
Zachary Duff
Zachary Duff 17 Apr 2016
답변: Rick Rosson 17 Apr 2016
Intermittently, over the last five or six times I have used plot and histogram the colors of the figures are wrong. When I assigned colors and when I didn't. If I restart Matlab the problem is sometimes resolved. The wrong color scheme appears to be green at the bottom of the figure, black in the middle, then red at the top. Sort of fading from top to bottom.
Code:
lambda = 5;
p = poissrnd(5,1,1000);
h = histogram(p,'Normalization', 'probability');
Notice how the bottom has that green fade.

  댓글 수: 1

Azzi Abdelmalek
Azzi Abdelmalek 17 Apr 2016
Didn't notice any difference!

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

답변(1개)

Rick Rosson
Rick Rosson 17 Apr 2016
Please see this answer.

  댓글 수: 0

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

Community Treasure Hunt

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

Start Hunting!

Translated by