Grid not showing on UIAxes
54 次查看(过去 30 天)
显示 更早的评论
Hello. I am plotting some data on a Canvas in appdesigner, and the grid isn't showing.
(The plot is fine)
ax=app.UIAxes10;
IP=app.plotdata; %my data
plot(ax,IP,'-.','LineWidth',0.3);
grid(ax,'on');
ax.Color=[0.15 0.15 0.15];
ax.GridColor=[1 1 1];
ax.MinorGridColor=[1 0 1];
hold(ax,'on');
However, If i now do a
cla(app.UIAxes10,'reset')
then when I plot again it does show!
0 个评论
采纳的回答
Jason
2021-4-30
1 个评论
Benjamin Kraus
2021-4-30
编辑:Benjamin Kraus
2021-4-30
Note that you can reset XTickMode and XTickLabelMode to 'auto' within App Designer as well as within code.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!