Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 13 Giu 2013
Modificato: Azzi Abdelmalek il 13 Giu 2013
Use hgsave and hgload function
  1 Commento
Iris Hinrichs
Iris Hinrichs il 13 Giu 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?

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Printing and Saving in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by