Hi,
I am combining a bar plot with a line plot and want to use the '_' as the marker for the line plot. However when I run the command, I get the following error
plot(1:1:4,1:1:4,'k','LineStyle','none','Marker','_')
Error using plot
'_' is not a valid value. Use one of these values: '+' | 'o' | '*' | '.' | 'x' | 'square' | 'diamond' | 'v' | '^' | '>' | '<' | 'pentagram' | 'hexagram' | 'none'.
The Matlab help for the line specfication says that '_' is an option but it somehow does not work.

댓글 수: 1

Adam Danz
Adam Danz 2020년 10월 13일
편집: Adam Danz 2020년 10월 13일
There's a demo of the '_' marker combined with a bar plot in this community highlight (r2020b or later required).

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2020년 10월 13일

1 개 추천

The '_' (and '|') markers were introduced in R2020b. So to use it, you will need to upgrade to the latest release. (The online documentatiion is for R2020b.)

카테고리

도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 10월 13일

편집:

2020년 10월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by