Why am I unable to specify a dashed line style for contour plots of large matrices in MATLAB 7.0 (R14)?
13 次查看(过去 30 天)
显示 更早的评论
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.
采纳的回答
MathWorks Support Team
2011-11-8
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!