How can I resave old figures?

1 次查看(过去 30 天)
Mech Princess
Mech Princess 2016-9-22
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by