No BSD License  

Highlights from
errorbarxy

4.64286

4.6 | 14 ratings Rate this file 26 Downloads (last 30 days) File Size: 1.97 KB File ID: #4065

errorbarxy

by James Rooney

 

17 Oct 2003 (Updated 21 Oct 2003)

Errorbarxy allows the user to plot both horizontal and vertical errorbars.

| Watch this File

File Information
Description

This function allows the user to plot the graph of x against y, along with both x and y errorbars.

For the x and y errors it is possible to input both lower (lx and ly) and upper (ux and uy) values for the errors at a particular point. If the upper values are not specified then the program assumes the errors are symmetrical and use the lower values. it is also possible to specify the plot line colour, marker, and linestyle using the standard 'plot' command notation in the input variable 'linecol'. Also the line colour for the errobars can be specified in the variable 'errorcol'. It is important to note that if these colour options are to be used and any of the error limit vectors are empty then they should not be excluded, but presented in a [] form signifying an empty vector.

James Rooney, 17 October 2003

Acknowledgements
This submission has inspired the following:
errorbarxy
MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (15)
14 Jan 2004 Jukka Koskinen  
18 May 2005 R V

Doesn't work. Unusable as is.

20 May 2005 Dusia Shova

It DOES work!

22 Aug 2005 Emile Zonta

Appears to work fine, though help is a bit pedantic. Try this help file:
% Plots x and y variables with x and y errorbars
% usage: errorbarxy(x,y,lx,ly,ux,uy,linecol,errorcol)
% lx,ly are lower error bounds, must be same size as x,y
% ux uy are upper bounds (optional, if omitted, errorbarsxy uses lx,ly on both sides)
% linecol: Propertes for data, same as for the plot function
% errorcol: Propertes for data, same as for the plot function
%
% to use properties:
% usage: errorbarxy(x,y,lx,ly,[],[],linecol,errorcol)

%James Rooney, 17 October 2003

24 Aug 2005 jeremie Brocard

Great!thanks

12 May 2006 Johannes Sarnthein

works fine, thanks.
and thanks for the concise help add-on

08 Feb 2007 Jon Schuller

Did exactly what I wanted. Recommend Emile Zonta's help file add-on.

02 May 2007 Kent Conover

Performs as advertised!

Regards,

Kent Conover

07 Mar 2008 Brett Andrzejewski

Nice job! I couldn't believe that Matlab didn't have this function/program already in it's libraries.

28 Jun 2008 Geert Geleijnse

Awesome, this saved me a lot of time.

Strange that this is not a standard Matlab function.

Anyway,
Thanks a lot!

02 Jul 2008 Gonzalo A

Thanks, works perfect!

11 Sep 2008 Christoph Schi

Thanks again!

You did a good job.

28 Feb 2010 Kan Wu

very good

01 Mar 2010 Kan Wu

There is a small bug. When I display legend, the original curve and errorbar are two different items. In Matlab errorbar() function, they are one curve. Hope you can modify it

26 Jan 2012 Martina Callaghan  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation James Rooney 22 Oct 2008 07:08:47
customization James Rooney 22 Oct 2008 07:08:47
errorbar James Rooney 22 Oct 2008 07:08:47
horizontal James Rooney 22 Oct 2008 07:08:47
vertical James Rooney 22 Oct 2008 07:08:47
graphics James Rooney 22 Oct 2008 07:08:47

Contact us at files@mathworks.com