Can I revert to 2014a graphics, while keeping all other 2015a functionality?

1 view (last 30 days)
I recently upgraded to 2015a and am now having problems with it running slowly during plotting operations. I've upgraded my graphics card and have ensured that it is using opengl hardware, but it's still slower than 2014a on my worse graphics card. I started to use the drawnow command which helps a bit, but I'd like to revert to 2014a graphics while keeping other upgrades, is this possible? Also is there a way to set drawnow to default(every time I plot something no matter what it draws immediately) without putting it after every plot command and cluttering my code?
Thanks,

Accepted Answer

Umakant
Umakant on 20 May 2015
Hi Adam,
The 'drawnow' function instructs the MATLAB to flush the event queue while creating and updating figure window. You can achieve this by specifying the 'drawnow' command as the default create function(CreateFcn) in file 'startup.m'. The general form to do this would be as follows:
set(0,'DefaultObjectTypeCreateFcn','drawnow')
For example, to ensure that line, patch, and surface objects are fully drawn by default when being created, include the following lines in your startup.m file:
set(0,'DefaultLineCreateFcn','drawnow');
set(0,'DefaultPatchCreateFcn','drawnow');
set(0,'DefaultSurfaceCreateFcn','drawnow');
It may not be possible to switch to older graphics when you are using newer version of MATLAB. If you are facing any performance issues and there are any 'clf' or 'figure' commands in the code, try replacing them by following code:
f = clf;
set(f,'Visible','off');
This will disable the visibility of the figure window. Also, add the following line before ending the function:
set(f,'Visible','on');
Try the above. It may help improving the performance.
Thanks,
Umakant

More Answers (0)

Categories

Find more on Graphics Performance 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!