Return cursor to commandline after plotting

4 vues (au cours des 30 derniers jours)
Tim
Tim le 21 Août 2024
Commenté : Adam Danz le 9 Déc 2024
I just upgraded to R2024a and am using dark mode. Previously, in my R2023b release, if I used the plot function in the command line (e.g. "plot(randn(1, 100))") a figure would pop up, but the cursor would remain active in the command window. This was helpful for rapid data exploration - I could type a plot command, look at the results, then programatically close it in the command line and continue on.
Now, after a plotting function is called, the command window is no longer active. I have to manually select the command window using the cursor if I want to continue entering commands. Is there some setting or preference that can be flipped to automatically return control back to the command window? I tried using keyboard shortcuts to return to the command window (ctrl-0, from Use Keyboard Shortcuts to Navigate MATLAB - MATLAB & Simulink (mathworks.com)), but this does nothing. Thanks,
  2 commentaires
Mohamed
Mohamed le 8 Déc 2024
i want an answer to this problem, thanks .
Adam Danz
Adam Danz le 9 Déc 2024
This issue is fixed in the beta desktop and will soon be part of the general release.

Connectez-vous pour commenter.

Réponse acceptée

Adam Danz
Adam Danz le 21 Août 2024
Modifié(e) : Adam Danz le 22 Août 2024
I'm familiar with this issue. Please consider reporting your thoughts on the matter to Tech Support. The best way to do that is from the Feedback option in the Beta desktop.
Two workarounds in the R2024a beta:
  1. If you dock your figures, control will return to the command window. To dock all future figures, set(groot,'DefaultFigureWindowStyle','docked')
  2. When the figure is not docked and the focus goes to the figure, pressing Tab returns focus to the command window after the figure is rendered.
I'd be interested in knowing whether either of these options don't work for you or if you find something better.
  1 commentaire
Tim
Tim le 21 Août 2024
The "Tab" shortcut is what I was looking for, thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Desktop dans Help Center et File Exchange

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by