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

1 visualizzazione (ultimi 30 giorni)
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?

Risposte (1)

Walter Roberson
Walter Roberson il 15 Giu 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.

Categorie

Scopri di più su Graphics Object Identification in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by