Maintaining data cursor on axes on multiple tabs (tabPanel)
1 次查看(过去 30 天)
显示 更早的评论
I am currently building UIs using the GUI layout toolbox. I have multiple ways of visualizing data, so I currently place a series of xy-linked axes on a tab panel (uiextras.TabPanel). I then pull information off of the axes using a Data Cursor. The position of the cursor is used for a number of other tasks, but what is important is the position. When I swap to a new tab, the Data Cursor remains attached to the axes it was created on. However, the Data Cursor is a child of the figure, not the axes. I need some way of maintaining the same Data Cursor position across axes.
I have been banging my noggin' against this one for a bit. Options I have tried to figure out include:
1) preferred Changing the active axes of the cursor. It stays in the same place and stays visible. The value of the target data under the cursor on the new axes needs to update the cursor's text.
2) Save the data cursor position. Destroy the cursor. Rebuild cursor in the same location on the new axes. This will mess with some of my callbacks, so I would prefer not to.
Either way, this needs to be done programatically. Currently manually clicking on the new axes moves the data cursor to the new tab, but selecting the exact same spot is a nightmare.
Any ideas are appreciated! No MWE, sorry, may try to write one tomorrow.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!