Toolbar of Plot hiding after loading file

3 次查看(过去 30 天)
Hey guys,
if have an issue. The toolbar within the plot in my GUI is hiding after loading data to the plot. Anybody an idea what's the issue about this?
Appreciate your help!
Roman
  1 个评论
Monica Roberts
Monica Roberts 2022-5-5
Can you provide an example or image or video? Is it possible that you're seeing the new-ish axes toolbar? The toolbar (with zoom, pan, etc) shows up in the axes, and if you hover your mouse over the axes it reappears.

请先登录,再进行评论。

回答(1 个)

Cameron B
Cameron B 2022-5-9
I've had this same issue in app designer as well. What I have done to get around is to simply tell the UIAxes to put another one there.
function InsertFileButtonPushed(app, event)
%insert all your data here and plot it in app.UIAxes
axtoolbar(app.UIAxes,{'export','brush','pan','zoomin','zoomout','restoreview'});
end
You can put whatever values you want in your axtoolbar, but this is how I managed to get around the disappearing toolbar.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by