필터 지우기
필터 지우기

how can i plot errorbar on x-axe, without the line which connect each points

조회 수: 2 (최근 30일)
wei zhu
wei zhu 2016년 3월 31일
답변: Mann Baidi 2024년 6월 14일
hello, i have encounter a problem, when use herrorbar to plot errorbar on x-axe, there is line connect each point, but this line is not wanted. so how can i remove this line

답변 (1개)

Mann Baidi
Mann Baidi 2024년 6월 14일
Hi,
You can set the 'LineStyle' property of errorbar as 'none' using the following command.
errorbar(x,y,yneg,ypos,xneg,xpos,'LineStyle','none');
After doing this, the plot will not have line connecting the points.
x = 1:10:100;
y = zeros(1,10);
yneg = [1 3 5 3 5 3 6 4 3 3];
ypos = [2 5 3 5 2 5 2 2 5 5];
xneg = [1 3 5 3 5 3 6 4 3 3];
xpos = [2 5 3 5 2 5 2 2 5 5];
errorbar(x,y,yneg,ypos,xneg,xpos,'LineStyle','none')

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by