Filter löschen
Filter löschen

How can I resave old figures?

1 Ansicht (letzte 30 Tage)
Mech Princess
Mech Princess am 22 Sep. 2016
hi everyone, I have an old figure saved in MyFigure.fig format. Now I want to edit/add/remove something from this. So I open the figure in matlab
fig1=openfig('MyFigure.fig');
Then I do my edits and now I want to save it. I have no problem printing the figure, for example
print('-djpeg100', '-r100', ['MyFigure_edited']);
prints the figure and saves as jpeg. But I want to save it as MyFigure_edited'.fig If I click "save" button on top, it gives me a dialog box with the following message: "Object must have an ancestor of type 'figure'". When I give the following
saveas(fig1,['MyFigure_edited''], 'fig')
I get the following
Error using getProxyValueFromHandle (line 23)
Object must have an ancestor of type 'figure'.
Error in plotedit (line 91)
[varargout{1:nargout}] = feval(args{:});
Error in specgraph.barseries/preserialize (line 10)
peerVals = plotedit({'getProxyValueFromHandle',hPeers});
Error in hgsaveStructDbl (line 80)
olddata{i} = {hh,preserialize(hh)};
Error in hgsave (line 58)
FF.Format2Data = hgsaveStructDbl(h, SaveAll);
Error in saveasfig (line 7)
hgsave( h, name );
Error in saveas (line 126)
feval( ['saveas' format], h, name )
I do not have the data to replot the figures and there are at least 10 figures with the font sizes or colors that need to be changed. Which I can do but cannot save the edited version of figure. thanks

Antworten (0)

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by