Axes Handle Object not avaliable in GUI
3 ビュー (過去 30 日間)
古いコメントを表示
Hi. I have taken some previous guy's work and continue developing. He was plotting into axes1 in a GUI without specifying which axes is the target, and it works. When I try to add "axes(handles.axes1)" before the plotting action I am getting error "Invalid object handle". When I check the value of handles.axes1 it does have a value. What could be the possible error here? How can I resolve it.
0 件のコメント
回答 (2 件)
Jan
2011 年 10 月 9 日
You cann search for "axes1" in the M-files. It should be defined anywhere. Either the author forgot to store the value and a GUIDATA must be inserted. Or the definition of axes1 is missing completely.
More precise suggestions are impossible without seeing the code.
Walter Roberson
2011 年 10 月 9 日
If you were to check
ishandle(handles.axes1)
you would find that it says 0 (false).
Graphics handles are represented by numeric values, but when the graphics object is deleted, the numeric value is not somehow automatically cleared. The code is attempting to use an axes that no longer exists.
参考
カテゴリ
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!