Turn on 'View Figure Toolbar' programmaticaly

I have generated a figure to which I add text via a uicontrol command. This turns off visibility of the 'Figure Toolbar'.
I can use the 'View' menu to toggle visibility but I wish to force visibility programmatically. The figure properties do not seem to allow this. Any suggestions ?

 采纳的回答

Try this:
set(fig, 'toolbar', 'figure')
where fig is the figure you are working with

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by