Why change the color of the figures when I put them into a destination fig file?
2 次查看(过去 30 天)
显示 更早的评论
Dear All,
I tried to putt 4 .fig files into one .fig file. One of them is just a colorbar what I defined myself. When I merged them based on a previous suggestion in http://www.mathworks.com/matlabcentral/answers/101273-how-can-i-put-existing-figures-in-different-subplots-in-another-figure-in-matlab-6-5-r13 the color of figures change. How can I copy the defined colors?
0 个评论
回答(1 个)
Walter Roberson
2016-6-15
Which MATLAB release are you using?
In MATLAB R2014a and earlier, there is only one colormap per figure, and the steps you followed put all of the plots into the same figure. To get around that problem you should get freezeColors from the File Exchange and run it on the figures before you copy their data to the new figure.
In R2014b and later there can be different colormaps for every axes, but depending on how the plots were built it is possible that they were relying on colormaps for the figure.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!