【发布时间】:2014-06-28 01:11:36
【问题描述】:
我正在 Matlab 中制作 GUI。这是我的代码示例
function plotResults(handles)
% Create output data plot in proper axes
plot(handles.outputAxes, handles.outputCurrentData, handles.outputVoltageData,'.-')
set(handles.outputAxes, 'XMinorTick', 'on')
grid on
% Create magnet data plot in proper axes
plot(handles.magnetAxes, handles.magnetCurrentData, handles.magnetVoltageData, '.-')
set(handles.magnetAxes, 'XMinorTick', 'on')
grid on
但是,只有第 2 个轴显示一个网格,第一个轴没有。谁能告诉我为什么?谢谢
【问题讨论】:
-
@GeoffHayes 谢谢 Geoff,成功了!
标签: matlab user-interface grid