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

2 visualizaciones (últimos 30 días)
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?

Respuestas (1)

Walter Roberson
Walter Roberson el 15 de Jun. de 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.

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by