Why Does "linkdata on" Fail on the First Figure When Activated from Code
显示 更早的评论
I have code that grabs a data stream and bring it into matlab as a structure in the base workspace. To display this data I have a GUI that users can use to created 'linked plots.' However, the first time I create a plot after starting up matlab the linking fails.
"linkdata on" is executed in the code, and the linkdata banner shows up on the figure, and Link Data is checked under the Tools drop down menu. But the plot does not update with the data.
I can force the plot to update by unchecking/checking Link Data in the Tools menu. Linking also starts if I bring up a matlab editor window. But until one of these actions is performed the plots will not update. After I start the first plot updating all the rest will update as expected without intervention.
I'd appreciate any ideas. I even thought of adding a 'Fix Linking" button to the GUI that would simply cycle linkdata, but cycling lindata from the command line does not fix the issue, it appears to need sopmeone to actively click on the figure to cycle Link Data.
回答(0 个)
类别
在 帮助中心 和 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!