how can i get the default colormap to be JET in matlab 2014b?

조회 수: 11 (최근 30일)
Leo Diaz
Leo Diaz 2015년 10월 2일
댓글: Leo Diaz 2015년 10월 2일
old colormap JET was better. how do I get it back?

채택된 답변

Mike Garrity
Mike Garrity 2015년 10월 2일
There are two different things getting confused here.
There's the Colormap. The default for that changed from jet to parula. As Steven said, you can easily change the default for that using the instructions he pointed to. The Colormap is used by objects which are converting numeric data into colors. Examples include scatter, surface, and indexed images.
Then there's the ColorOrder. The ColorOrder is used by commands which just want to create a bunch of different colored objects. Examples include plot and errorbar. The default ColorOrder also changed in R2014b, but neither the old nor the new ones have names. The old one looked a bit like jet, but it actually wasn't quite. To get the old ColorOrder back, you would need to do this:
set(groot,'DefaultAxesColorOrder',[0 0 1; 0 .5 0; 1 0 0; 0 .75 .75; ...
.75 0 .75; .75 .75 0; .25 .25 .25])
It will probably still look a little different because of the antialiasing. That softens the colors a bit so they don't pop quite as much as they did in old versions. You could turn off GraphicsSmoothing if you really wanted them to look just like the old days.

추가 답변 (2개)

Sean de Wolski
Sean de Wolski 2015년 10월 2일
set(groot,'DefaultFigureColormap',jet)
But you might want to read these blog posts firsts:
  댓글 수: 1
Leo Diaz
Leo Diaz 2015년 10월 2일
I tried this but the plots don't have jet colors. how do I get the jet colors as default in the plots?

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


Steven Lord
Steven Lord 2015년 10월 2일
We haven't removed JET from the product, we simply change the default. You can add a command to your startup.m file to change the default colormap following the instructions in the documentation. The property whose default value you want to set is the Figure object's Colormap property.
  댓글 수: 4
Leo Diaz
Leo Diaz 2015년 10월 2일
colormap does not change the plot colors, just the surf and pcolor ones. new plot colors are hard to see. the old ones JET were much much better. can I have them back?
Mike Garrity
Mike Garrity 2015년 10월 2일
Sean said:
Change the 'DefaultFigureColorOrder'
That should be 'DefaultAxesColorOrder'. The Colormap is on the figure, but the ColorOrder is on the axes.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by