Strange brown color appears in saturated data points in parula colormap (R2015a for Win)
조회 수: 1 (최근 30일)
이전 댓글 표시
On R2015a for Windows, I noticed strange behaviour of the parula colormap.
[X,Y,Z] = peaks(25);
figure;
surf(X,Y,Z);
view(0,90)
shading interp
colorbar
axs = gca;
>> axs.CLim
ans =
-6.3265 7.9966
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151165/image.png)
So far so good. However, when I try the following
axs.CLim = [-6 0];
I've got this. The ugly brown area, which are saturated, is supposed to be bright yellow.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151167/image.png)
I saved this figure in jpeg format, and opened it on Mac. It just looks the same, excluding the possibility that my Windows machine's color representation is somehow messed up.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151169/image.jpeg)
With the same code, I could not reproduce the result on MATLAB R2015b for Mac (see below). Not sure it has been fixed in R2015b (could not find related information in Release note) or it's related to Windows environment or my particular Windows environment.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151171/image.png)
So, it appears a bug to me. Has any one experienced the same phenomenon? Is there any work around? At the moment, I'm mainly using R2015a for Win, and having a problem in installing R2015b for Win. So this is rather frustrating.
댓글 수: 0
채택된 답변
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!