No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
plot errorbars on both axes

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

plot errorbars on both axes


Eran Ofek (view profile)


19 Jan 2006 (Updated )

errorbars on x and y axes with many options.

| Watch this File

File Information

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


This file inspired Superbar.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
04 May 2011 Martin

Martin (view profile)

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.


12 Aug 2009 Edgardo Garcia

Very useful.

25 Sep 2008 Johannes Kritzinger

09 Aug 2008 Roman -

Very useful

04 Feb 2008 Dimiter Prodanov

Handy addition to the standard plot command


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.

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.

20 Jan 2006 Jy T

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

Contact us