How to plot on a current figure ?
3 ビュー (過去 30 日間)
古いコメントを表示
Good morning everyone !
I have a function returning a figure.
So, i plot that figure on a step of my code, but i would like to modify this figure later in my code.
This function " h_fig = display(RGBtriplet) " is composed of a slider and an axes. I have a function " SliderCallbacks" for the slider, and mysubplot(RGB,cur_serial) allowing to plot on the axes according to the value of the cur_serial ( corresponding to one image ).
I thought i would modify the plot of my axes ( mysubplot) out of my function but i don't know how, or if it's the best solution. I wanted to manipulate the handles but i didn't succeed to ^^".
If you have any idea, please let me know. If you want the whole code of my function, do not hesitate.
Have a nice day !
0 件のコメント
回答 (1 件)
Walter Roberson
2015 年 8 月 26 日
subax = findobj(h_fig, 'type', 'axes');
now subax is a vector of the axes handles from within h_fig . You can modify the properties. For example,
set(subax, 'Visible', 'off');
参考
カテゴリ
Help Center および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!