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

2 vues (au cours des 30 derniers jours)
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?

Réponses (1)

Walter Roberson
Walter Roberson le 15 Juin 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.

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by