【发布时间】:2017-11-13 13:37:21
【问题描述】:
我有一个 .fig 文件,其中包含 9 个子图,按 3 x 3 排列。现在我想将我在 plotlabels(i) 中写入的标签添加到子图 i 上的点 (xcoordinates(i),0.01)。我试试这个
plotlabels = ['A','B','C','D','E','F','G','H','I'];
xcoordinates = [30,1000,1000,1000,1000,1000,1000,1000,1000];
fig = openfig('degreedistribution.fig');
for i = drange(1,9)
subplot(3,3,i);
text(xcoordinates(i),0.01,plotlabels(i),'FontWeight','bold'); hold on
end
该图与子图 1、4 和 7(左列)blanc 一起返回。在其他子图中,在正确的位置添加了正确的标签。我检查了子图 1、4 和 7 中的标签位置是否与图兼容。那么发生了什么?
【问题讨论】: