Switching between axes in GUI
古いコメントを表示
I'm creating a GUI using guide, with two axes. I plot a 3d isosurface in one and use drawline on top of a plot in the second. The issue is that I need to be able to rotate the 3d plot and modify the drawline, but after I make the drawline I can no longer rotate the 3d plot. If I replot the 3d plot I can start rotatting it again, but then I can no longer modify the drawline object. Replotting it does not help.
So, questions is - How can I switch between the axes and continue to rotate the 3d figure and modify the drawline object?
回答 (2 件)
Rik
2019 年 1 月 17 日
0 投票
With the rotate3d function you can enable and disable this mouse interaction for a specific axis or figure. I presume this will override previous settings.
1 件のコメント
Christoffer Johansson Westheim
2019 年 1 月 17 日
Image Analyst
2019 年 1 月 17 日
I'm not sure how you're rotating it (automatically via code, or by the user grabbing it and spinning it), but bascially to switch focus between different axes, use the axes function:
% Now stuff will happen in axes1.
axes(handles.axes1);
plot(1:10); % Whatever....
% Now stuff will happen in axes2.
axes(handles.axes2);
3 件のコメント
Christoffer Johansson Westheim
2019 年 1 月 17 日
Jan
2019 年 1 月 17 日
@Christoffer: Can you post some code, which reproduces the problem? I'm not sure what "modify a drawline" means.
Christoffer Johansson Westheim
2019 年 1 月 17 日
カテゴリ
ヘルプ センター および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!