Maintaining data cursor on axes on multiple tabs (tabPanel)

1 vue (au cours des 30 derniers jours)
D. Plotnick
D. Plotnick le 6 Mai 2016
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.

Réponses (0)

Catégories

En savoir plus sur Specifying Target for Graphics Output dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by