4.5

4.5 | 8 ratings Rate this file 71 Downloads (last 30 days) File Size: 9.96 KB File ID: #9693

plot errorbars on both axes

by Eran Ofek

 

19 Jan 2006 (Updated 19 Jan 2006)

errorbars on x and y axes with many options.

| Watch this File

File Information
Description

Plot graph with error bars on both axes.
% simple example:
Data = [1 10 1; 2 9 0.5; 3 8 0.7];
errorxy(Data)

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
20 Jan 2006 Jy T

A great m files that should be on standard Matlab distribution. Well documented and working all right.

20 Jan 2006 John D'Errico

Seems useful. I have only a couple of minor points. The use of property/value pairs is very valuable for tools like this where you have many different parameters, most of which have default values. BUT - do not make those properties case sensitive as has been done here. The user does not want to remember that to specify which column the y errors comes from, they must use the property 'ColYe'. Instead, allow them to specify 'colye' instead. Your code should ignore case. The function "lower" can help you here. Next, its also nice to allow the user to shorten a property, as long as that shortening is unambiguous. Thus, properties 'hist', 'histfacecolor' and 'histedgecolor' should be able to be shortened to as small as 'hist', 'histf', or 'histe'. Strmatch or strncmpi can help with this.

09 Jan 2008 JONATHAN FRAM

I use errorxy, but I've modified it so that the data point markers plot over the error bars and so that I can change the thickness of the data point markers. The code is structured well so that it is easy to modify.

04 Feb 2008 Dimiter Prodanov

Handy addition to the standard plot command

09 Aug 2008 Roman -

Very useful

25 Sep 2008 Johannes Kritzinger  
12 Aug 2009 Edgardo Garcia

Very useful.

04 May 2011 Martin

Very very useful code.
@ Jonathan - How to make the error bars invisible behind the makers? It would be great if you can help me with this.

Thanks

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation Eran Ofek 22 Oct 2008 08:12:50
customization Eran Ofek 22 Oct 2008 08:12:50
plot errorbars Eran Ofek 22 Oct 2008 08:12:50
axes Eran Ofek 22 Oct 2008 08:12:50
x Eran Ofek 22 Oct 2008 08:12:50
y Eran Ofek 22 Oct 2008 08:12:50
graphics Eran Ofek 22 Oct 2008 08:12:50
plot annotation Eran Ofek 22 Oct 2008 08:12:50
plot Eran Ofek 22 Oct 2008 08:12:50

Contact us at files@mathworks.com