MATLAB Answers


Different Colormap in Two Separate Axes with custom colormaps

さんによって質問されました 2011 年 9 月 19 日
I'm trying to use two different colormaps for two subplots plotting temperature and topography data. 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 :(

  0 件のコメント

サインイン to comment.

1 件の回答

Walter Roberson
回答者: Walter Roberson
2011 年 9 月 19 日

What file format are your cmaps/cmap_cmap1 and cmaps/cmap_cmap2 in ?

  1 件のコメント

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');
mycmap workspace variable:

サインイン to comment.

Translated by