Why change the color of the figures when I put them into a destination fig file?

1 view (last 30 days)
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?

Answers (1)

Walter Roberson
Walter Roberson on 15 Jun 2016
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.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!