Different Colormap in Two Separate Axes with custom colormaps

조회 수: 2 (최근 30일)
ww
ww 2011년 9월 19일
I'm trying to use two different colormaps for two subplots plotting temperature and topography data. http://www.mathworks.com/support/tech-notes/1200/1215.html#Example_2 This solution hasn't helped because I dont know how to modify it to load the my own colormaps instead of the built in ones..
paths to my colormaps: cmaps/cmap_cmap1 cmaps/cmap_cmap2
can anyone help, please? I'm not so good with matlab syntax yet :(

답변 (1개)

Walter Roberson
Walter Roberson 2011년 9월 19일
What file format are your cmaps/cmap_cmap1 and cmaps/cmap_cmap2 in ?
  댓글 수: 1
ww
ww 2011년 9월 19일
Hi Walter,
Oops I forgot that part. They are .mat files. I saved them with the following commands from the colormap editor documentation:
%Saving the Modified Colormap
mycmap = get(fig,'Colormap');
set(new_fig,'Colormap',mycmap)
mycmap workspace variable:
save('MyColormaps','mycmap')
Thanks!

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by