Effacer les filtres
Effacer les filtres

saveas: problems with axes when saving a figure as .fig

2 vues (au cours des 30 derniers jours)
Iris Hinrichs
Iris Hinrichs le 13 Juin 2013
Hi there,
I created a figure with subplots which I save as a .fig file. Apparently, the axes are changed when the figure is saved or not correctly reproduced when I open the .fig file (by double-clicking on it): The subplots have higher spacings between each other. How do I avoid this?
(I had a look at export_fig, but this does not seem to save figures as .fig files) Thanks, kind regards, Iris

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 13 Juin 2013
Modifié(e) : Azzi Abdelmalek le 13 Juin 2013
Use hgsave and hgload function
  1 commentaire
Iris Hinrichs
Iris Hinrichs le 13 Juin 2013
Thanks, it works for the subplot problem I mentioned above. Unfortunately it does not work for keeping the colorbar labels in the right place. An example: figure imagesc(rand(10,10)) cb = colorbar; set(cb, 'ytick', [0.1:0.3:1], 'yticklabel', {'a'; 'b'; 'c'}) hgsave(gcf,'test.fig')
If you compare the figure as created by this code and the reopened file test.fig, you'll see that the colorbar labels are different. The version I am working on is 7.6.0.324 (R2008a)
Is there a solution for this?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by