Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Have a Problem with GUI axes

조회 수: 1 (최근 30일)
Giorgi
Giorgi 2015년 9월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi all! Well I want to make "gscatter" plot in GUI's axes (handles.axes2), but it does not work. here it is code and the error screenshot. Any idea would be a great job for me. Waiting for your response.
gscatter(handles.axes2,[2;2],[1;1],{'xxx';'kkk'})

답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 18일
gscatter() does not permit an axes to be passed in, and also does not appear to allow a 'Parent' property/value pair. There is no documented way to force gscatter() to draw on a particular axes.
You can get it to return the handles to the line objects and then you can set() the Parent property of the line objects to be your desired axes, but you would probably also be wanting to get the tick labels and so on that are generated, and you would need to find the legend-like object and take care of it. It might even be a legend; if so then before R2014b, it is in its own axes and so cannot be forced to be in a particular axes.
  댓글 수: 1
Giorgi
Giorgi 2015년 9월 18일
Thanks for activity :) Well as you see I used text legend and gscatter to write respective names to the points in GUI axes but none of them worked. So what do you think what is the solution in this case?

태그

Community Treasure Hunt

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

Start Hunting!

Translated by