Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Show Figures Immedietly on Ubuntu 14.04

1 vue (au cours des 30 derniers jours)
Richard
Richard le 31 Déc 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
Linux Ubuntu 14.04 with Matlab R2015a
Hello,
I want my figures to appear as soon as I plot something. Currently, if my script generates 10 figures, all of them only appear after the entire script completes, in bulk at once. I want each figure window and subsequent plots within the window to appear as the script is running. I've searched for answers to this but have not found anything very useful. I'm looking for a system wide setting change so I don't have to keep doing this.
I'm not trying to implement movie like effects using pause and drawnow, to be clear. I'm trying to get my MATLAB install on Ubuntu to behave the way a default install usually does on Windows.
Rich

Réponses (1)

Walter Roberson
Walter Roberson le 31 Déc 2015
The defined behaviour for MATLAB is that graphics are not to be rendered until pause() or drawnow() or figure() or waitfor()/uiwait() are encountered, or just before MATLAB is ready for keyboard input (because the function or script is finished or because of keyboard())
If you were seeing a different behaviour than that on MS Windows then it was a bug. (Yes, a bug: rendering with every command in a script ruins performance, and triggers updates of some values that are defined as not being re-calculated until rendering happens, which makes a difference when fetching properties.)

Cette question est clôturée.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by