title: save high resolution figures with parfor in matlab
body: <p>I am using <code>parfor</code> loop to produce and save quite big number of figures. Due to the amount of data which will be presented in the figures, the resolution of the figures need to be high, something around 920 dpi. Using the normal <code>for</code>, the function works fine. But when we switch to <code>parfor</code> the resolution of the produced and saved pictures becomes totally low.</p>
  
  <p>This is the figure handle creation part:</p>
  
  <pre><code>mainFig=figure('visible','off');
  set(mainFig, 'Renderer', 'OpenGL');
  </code></pre>
  
  <p>and here is the saving part code:</p>
  
  <pre><code>print(mainFig,'-djpeg','-r920',strcat(MyDir,measure,sec_suffix,'.jpeg'))
  </code></pre>
  
  <p>any idea?</p>
  
  <p>Thanks</p>