필터 지우기
필터 지우기

Why am I unable to specify a dashed line style for contour plots of large matrices in MATLAB 7.0 (R14)?

조회 수: 15 (최근 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
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개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by