フィルターのクリア

Programmatically hiding 'linkdata' information bar

1 回表示 (過去 30 日間)
Martin
Martin 2011 年 5 月 4 日
回答済み: Connor 2017 年 11 月 9 日
When linkdata is activated for a figure (either by function call or by GUI button), an information bar is shown just below the toolbar.
It is possible to hide the information bar using the GUI, but how do hide it programmatically?

採用された回答

Chris
Chris 2011 年 5 月 31 日
Had the same problem, you can control it using the datamanager.linkplotmanager:
dpm = datamanager.linkplotmanager;
dpm.Figures(1).Panel.close
The problem is that the datamanager.linkplotmanager figures don't reference the figure handle, so if the first plot you link data on is figure 5, in the datamanager it is listed as dpm.Figures(1). And it will remain dpm.Figures(1) until you close figure 5. I ended up simply making a for loop to close all the Panels on all my plots with linkdata on.
dpm = datamanager.linkplotmanager;
for xx = 1:1:length(dpm.Figures)
dpm.Figures(xx).Panel.close
end
  1 件のコメント
Martin
Martin 2011 年 7 月 6 日
Brilliant!
Ended up using a bit shorter notation:
% remove that annoying "linkdata" panel that pops up, on all figures
dpm = datamanager.linkplotmanager;
cellfun(@(x)x.close, {dpm.Figures.Panel});

サインインしてコメントする。

その他の回答 (1 件)

Connor
Connor 2017 年 11 月 9 日
As of 2017b, the above no longer works. For anyone else trying to accomplish this, you must now use the .getInstance() method of the datamanager.LinkplotManager class to return the handle, then close from there:
h = datamanager.LinkplotManager.getInstance()
h.Figures(1).Panel.close

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by