Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In general, I let MATLAB choose which renderer is most appropriate, which means leaving the <a href="https://www.mathworks.com/help/matlab/ref/figure-properties.html#property_d0e272585" rel="nofollow noreferrer"><code>RendererMode</code> property</a> of the figure set to its default value of <code>auto</code>. A brief description of the current <code>'Renderer'</code> options can be found <a href="https://www.mathworks.com/help/matlab/ref/figure-properties.html#property_d0e272286" rel="nofollow noreferrer">here</a>.</p> <p>I'll address your two problems separately:</p> <ul> <li><p><strong>A "thick red line" in the contour plot:</strong> Without seeing the code you use to make the contour plot, or a screenshot, I can't help you much with this other than to point out that you can control aspects of how the <a href="https://www.mathworks.com/help/matlab/ref/contour.html" rel="nofollow noreferrer">contour plot</a> renders by setting certain <a href="https://www.mathworks.com/help/matlab/ref/contour-properties.html" rel="nofollow noreferrer">contour plot properties</a>. For example, you can control the line width by setting the <code>LineWidth</code> property:</p> <pre><code>[C, h] = contour(peaks(20), 10); % Make a sample contour plot set(h, 'LineWidth', 3); % Make the lines thicker </code></pre></li> <li><p><strong>Figure "quality":</strong> The choice of renderer doesn't so much adjust the <em>quality</em> per se. The renderer generally influences the accuracy and speed of the graphics rendering as well as the rendering options available (i.e. lighting, transparency, etc.). If you want better <em>quality</em> images from your figures, I would suggest downloading the submission <a href="http://www.mathworks.com/matlabcentral/fileexchange/20979" rel="nofollow noreferrer">Myaa</a> by <a href="http://www.mathworks.com/matlabcentral/fileexchange/authors/31267" rel="nofollow noreferrer">Anders Brun</a> on <a href="http://www.mathworks.com/matlabcentral/fileexchange/" rel="nofollow noreferrer">The MathWorks File Exchange</a>. It allows you to create anti-aliased graphics in MATLAB. Here's a screenshot from the submission illustrating the improved figure quality:</p> <p><a href="https://i.stack.imgur.com/8umGz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8umGz.png" alt="enter image description here"></a></p></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload