Can I revert to 2014a graphics, while keeping all other 2015a functionality?
2 次查看(过去 30 天)
显示 更早的评论
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,
0 个评论
采纳的回答
Umakant
2015-5-20
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
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!