MATLAB GUI axes(handles.axes1) does not work?
1 次查看(过去 30 天)
显示 更早的评论
Hello;
I have this simple code that is supposed to draw the line having its slope and y intercept. But when I use axes(handles.axes1);
nothing happens. What should I do?
2 个评论
the cyclist
2013-8-18
Can you post a self-contained example that we can run that shows what you mean, in context?
回答(1 个)
Image Analyst
2013-8-19
axes() just switches focus to that particular axes control. It does not actually do any plotting at all. For that you'll need to use the plot() function
plot(x, y, 'bo-', 'LineWidth', 2, 'MarkerSize', 10);
grid on;
axis on;
ylabel('Y', 'FontSize', 30);
xlabel('X', 'FontSize', 30);
4 个评论
Md Nafiul Islam
2017-12-21
Dear, I have used the same code and I draw the line but I need two line of the same graph. Do anyone help me how I update this code to two line. TIA
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!