【发布时间】:2016-10-02 10:02:19
【问题描述】:
我需要为子图 (1-2) 分配单位 英寸。 我为该图添加了 movegui(),之后我开始收到错误。 没有它,我不会收到错误消息。 代码
hFig3=figure('Units', 'inches', 'Name', 'Time, Potential, T-p, T-p tiff');
movegui(hFig3,'northeast'); % without this, you do not get the error
% TechnicalMonitoring
b1=subplot(2,2,1);
b2=subplot(2,2,2);
b3=subplot(2,2,3);
b4=subplot(2,2,4);
% b1, b2
hFig3.Children(1).Units = 'inches';
hFig3.Children(2).Units = 'inches';
错误
No public property Units exists for class matlab.graphics.GraphicsPlaceholder.
Error in code_1s (line 488)
hFig3.Children(1).Units = 'inches';
Matlab:2016a
操作系统:Debian 8.5 64 位
【问题讨论】:
标签: matlab matlab-figure subplot