Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

Show Figures Immedietly on Ubuntu 14.04

1 view (last 30 days)
Richard
Richard on 31 Dec 2015
Closed: MATLAB Answer Bot on 20 Aug 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

Answers (1)

Walter Roberson
Walter Roberson on 31 Dec 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.)

This question is closed.

Products

Community Treasure Hunt

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

Start Hunting!