image thumbnail

plot errorbar with tilt direction

version 1.0.0.0 (636 Bytes) by kefei
Plot errorbar with customized direction.

40 Downloads

Updated 29 Mar 2017

View License

plot errorbar with tilt direction .
Plot errorbar with customized direction. When you want to illustrate the error which is not on y axis, you can use this code. Even though you still can use it when the error is on y axis just by setting tiltAngle to 0.
% function [h]=errorbar_diag(x,y,se,tiltAngle,linespec)
% errorbar_diag(x,y,se)
% errorbar_diag(x,y,se,tiltAngle)
% errorbar_diag(x,y,se,tiltAngle,linespec)
% h=errorbar_diag(...)
% INPUT
% x,y: vectors of x and y data
% se: vectors of error on diagonal
% tiltAngle: tile angle of errorbar(unit is degree),vertical errorbar is 0. default:45(on diagonal)
% linespec: appearance of line

Cite As

kefei (2022). plot errorbar with tilt direction (https://www.mathworks.com/matlabcentral/fileexchange/62341-plot-errorbar-with-tilt-direction), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!