打开.fig文件并删除其中的一些绘图条目 - Matlab

3
我有一个名为f7.fig的图片。我想再次打开它并删除除第一个(红色),第二个(蓝色)和最后一个(青色)之外的所有条目。我还想从图例中删除它们。这可能吗?

enter image description here

1个回答

1
一个简单的交互式方法可以像这样:

savefig(h, 'somefig.fig`); % Save figure
% Close the figure ...
openfig('somefig.fig'); % Open figure
% Click on the curves you wanted to delete ....
delete(gco); % delete object -> this takes care of the legend too
% Click on the curves you wanted to delete ....
delete(gco); 
% so on...

这种方法在这里也是一种选择。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接