How to show axes when I build a GUI Scatter plot

5 ビュー (過去 30 日間)
Jiali
Jiali 2015 年 6 月 14 日
回答済み: Walter Roberson 2015 年 6 月 14 日
how to show axes and minortick when I build a GUI Scatter plot? By using the following code, no axes are shown in GUI. Please help me. I appreciate your efforts.
function Axes1_CreateFcn(hObject, eventdata, handles)
axis equal;
function Load_Callback(hObject, eventdata, handles)
axes(handles.Axes1);
hold on;
if ~isempty(A)
scatter(A(:,1),A(:,2),25,'b','filled');
scatter(B(:,1),B(:,2),25,'g','filled');
end
% here, A,B are data matrix that I want to plot

採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 14 日
function Load_Callback(hObject, eventdata, handles)
axes(handles.Axes1);
if ~isempty(A)
scatter(A(:,1),A(:,2),25,'b','filled');
hold on;
scatter(B(:,1),B(:,2),25,'g','filled');
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by