errorbarxy

버전 1.3.0.0 (2.91 KB) 작성자: Jean-Yves Tinevez
Customizable error bar plot in X and Y direction
다운로드 수: 3.6K
업데이트 날짜: 2009/2/19

라이선스 보기

PLEASE NOTE:
A similar Matlab function, ploterr (FEX ID #22216), does all what this function does, plus some more. It should be preferred over this submission, which then might be deleted in a near future.

This function allows the user to plot the graph of x against y, along with both x and y errorbars.
With 4 numeric arguments (x,y,dx,dy), error bar are assumed to be of same magnitude in both direction.
One can specify lower and upper error bar with 6 numeric arguments (x,y,dx_high,dy_high,dx_low,dy_low).
x,y,dx,dy,... must be vectors of the same length.

[hp he] = errorbarxy(...) returns respectively the handle for the line plot object and the line error bar object.

It is possible to customize the line properties of the error bars by adding pair of 'field/value' fields (such as 'LineWidth',2) that can be understood by line. See LineProperties for more information.

--------
EXAMPLES
--------
X = 10 * rand(7,1);
Y = 10 * rand(7,1);
dx = rand(7,1);
dy = rand(7,1);
errorbarxy(X,Y,dx,dy,'Color','k','LineStyle','none','Marker','o',...
'MarkerFaceColor','w','LineWidth',1,'MarkerSize',11);

X = 10 * rand(7,1);
Y = 10 * rand(7,1);
dx = rand(7,1);
dy = rand(7,1);
dx2 = rand(7,1);
dy2 = rand(7,1);
errorbarxy(X,Y,dx,dy,dx2,dy2,'Color','B','LineStyle','--','Marker','s',...
'MarkerFaceColor','w','LineWidth',2,'MarkerSize',11);

This is a rewrite of the m-file errorbarxy of James Rooney, to add customizable line properties.

Author: Jean-Yves Tinevez
Work address: Max-Plank Insitute for Cell Biology and Genetics,
Dresden, Germany.
Email: tinevez AT mpi-cbg DOT de
November 2007;
Permission is given to distribute and modify this file as long as this notice remains in it. Permission is also given to write to the author for any suggestion, comment, modification or usage.

인용 양식

Jean-Yves Tinevez (2024). errorbarxy (https://www.mathworks.com/matlabcentral/fileexchange/19002-errorbarxy), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Animation에 대해 자세히 알아보기
도움

받음: errorbarxy

줌: errbar, errorbarxy

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

Added a reference to the FEX ID #22216 which does similar thing, in a much complete and better way.

1.2.0.0

Corrected minor bugs + updated picture

1.1.0.0

From Keith Brady feedback, prevent oddities when entering negative error bar length

1.0.0.0

Was still bad files. Updated with (hopefully) correct one and added docs.