Problem using LineStyle
이전 댓글 표시
When I use LineStyle to only change the shape of the line, it works fine. When I use it to change the color, it gives me this error:
??? Error using ==> line Bad property value found. Object Name : line Property Name : 'LineStyle'.
For example,
line(....'LineStyle', ':') works fine, but line(....'LineStyle', 'k:') will cause a crash
Can someone explain why?
채택된 답변
추가 답변 (1개)
Matt Fig
2011년 4월 5일
That is because you are using the LineStyle property to try to change the Color property.
L = plot(1:10);
set(L,'linestyle',':','color','k')
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!