Why are the colors in my figures wrong?

23 ビュー (過去 30 日間)
Zachary Duff
Zachary Duff 2016 年 4 月 17 日
回答済み: Rick Rosson 2016 年 4 月 17 日
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 2016 年 4 月 17 日
Didn't notice any difference!

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

回答 (1 件)

Rick Rosson
Rick Rosson 2016 年 4 月 17 日
Please see this answer.

Community Treasure Hunt

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

Start Hunting!

Translated by