image thumbnail

linealpha(x,y,varar​gin)

version 1.0.0.0 (2.43 KB) by Kouichi Nakamura
linealpha allows you to draw a line with transparency alpha taking advantage of patch object.

245 Downloads

Updated 22 Feb 2016

View License

linealpha allows you to draw a line with transparency alpha taking
advantage of patch object.
h = linealpha(x,y)
h = linealpha(x,y,edgecolor)
h = linealpha(x,y,edgecolor,edgealpha)
h = linealpha(___,'patchparams',{Param1,Value1,...});

INPUT ARGUMENTS
x,y Vectors of the same length or arrays of the same size.
If they are arrays, each column represents one sample of data.

edgecolor EdgeColor property of the patch object.

edgealpha EdgeAloha property of the patch object.

OPTIONAL PARAMETER/VALUE PAIRS
'patchparams' You can set parameter/value pairs for the patch object by
the syntax

h = linealpha(___,'patchparams',{Param1,Value1,...});

OUTPUT ARGUMENTS
h Handle of the patch object

Based on Brett Shoelson's patchline.m
http://www.mathworks.com/matlabcentral/fileexchange/36953-patchline/content/patchline.m

See also
K_shadedErrorBar, patch

Written by
Kouchi C. Nakamura, Ph.D.
Kyoto University
28-12-2015

Cite As

Kouichi Nakamura (2022). linealpha(x,y,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/55586-linealpha-x-y-varargin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired by: Patchline

Community Treasure Hunt

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

Start Hunting!