How to get back red waitbar?
Show older comments
In 2014b the waitbar appearance changed from the cool red to an ugly green windows-style one (btw in help documentation it still says "A wait bar is a figure that displays what percentage of a calculation is complete as the calculation proceeds by progressively filling a bar with red from left to right." ).
How can i revert it back to red?
Accepted Answer
More Answers (1)
Michael Haderlein
on 12 Nov 2014
I'm working with 2014a, but if they didn't change the entire waitbar, you should be able to modify the color this way:
h = waitbar(0,'Please wait...');
hc=get(get(h,'children'),'children');
steps = 1000;
for step = 1:steps
pause(0.001)
waitbar(step / steps)
set(hc(2),'facecolor',rand(1,3))
end
close(h)
Warning: Don't run this code too often, it might cause headache ;-)
1 Comment
Guillaume
on 12 Nov 2014
Unfortunately, it doesn't appear to work in 2014b
the child of the waitbar (an axis) does not have any children (that are exposed)
Categories
Find more on App Building in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!