Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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,

Risposta accettata

Umakant
Umakant il 20 Mag 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

Più risposte (0)

Categorie

Scopri di più su Graphics Performance in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by