Errorline-Function (errlinefunc(x, y,xerr,yerr, varargin))

Version 2.1 (2.83 KB) by Ingo Hermann
Errorline, Error, Errorbar, Fehler, Fehlergerade
119 Downloads
Updated 8 Jan 2020

View License

This is a function, that creates min and max errorlines for a data set. As seen in the graph, the max and min error lines are depicted together with the errorbars and a box surrounding everything. Many option enable the possibility to change LineWidth, MarkerSize, Marker, Color of the single lines, LegendNames and so on:
'Box' ... Plots a box around min and max errorline (Default: off)
'BoxColor',BoxColor ... this changes the color of the box (Default: black)
'LineColor',LineColor ... changes color of error lines (Default: blue)
'LineWidth',LineWidth ... changes all line widths (Default: 1.5)
'Plot' ... Plots input x and y with errorbar xerr and yerr (Default: off)
'PlotColor',PlotColor ... changes the color of the plot (Default: black)
'MarkerSize',MarkerSize .... changes size of plot marker (Default: 10)
'Marker',Marker .... changes marker of the plot (Default: '.')
'Fit' ... draws the fit through x and y (Default: off)
'FitColor',FitColor ... colors the fit (Default: green)
'Fill',
'FillColor',FillColor
'UseStd'
'Legend' ... activates the legend for the chosen plot option
'Location',Location ... plots the legend at a certain location (Default: NorthWest)
'LegendNames',LegendNames ... is a cell array containing the names for the legend (Default: {['Data with errorbars','Fit','max error line','min
error line']})
For questions just ask me!

Cite As

Ingo Hermann (2024). Errorline-Function (errlinefunc(x, y,xerr,yerr, varargin)) (https://www.mathworks.com/matlabcentral/fileexchange/52620-errorline-function-errlinefunc-x-y-xerr-yerr-varargin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Errorbars in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
2.1

Added the possibility, that the x-vector does not have to be sorted and the errorlines can be deactivate. 'Fill' filles the area of the errorbar box.

2.0

This is a total new version (after 4 years) with much more option like changing the LineWidth or adding a legend and changing all specific colors.

1.0.0.0