Why am I unable to specify a dashed line style for contour plots of large matrices in MATLAB 7.0 (R14)?
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
When I specify a dashed line style in the CONTOUR function in MATLAB 7.0 (R14) with a large input matrix, the resulting contour lines are not dashed. For example:
q=peaks(200);
contour(q,10,'--');
results in contour lines that are continuous rather than dashed.
Risposta accettata
MathWorks Support Team
il 8 Nov 2011
The lines appear continuous due to the large number of data points. Zooming in far enough shows the dashed nature of the lines.
However, to work around this problem, switch the renderer of the parent figure to "zbuffer" or "OpenGL". For example:
q=peaks(200);
contour(q,10,'--');
set(gcf,'renderer','zbuffer');
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Lighting, Transparency, and Shading 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!