フィルターのクリア

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

1 回表示 (過去 30 日間)
Adam Neuf
Adam Neuf 2015 年 5 月 19 日
回答済み: Umakant 2015 年 5 月 20 日
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,

採用された回答

Umakant
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 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by