版本 (2.6 KB) 作者: Brett Shoelson
Visualize lines as patch objects. Specify any valid patch property, including transparency.

7.5K 次下载

更新时间 2020/11/30


Using very simple syntax, patchline allows you to visualize lines as patches. This allows you to set any valid properties of the patch object, including 'EdgeAlpha' (to modify the transparency of the lines).
Note that the effectiveness of setting the transparency (edgealpha) may differ on different operating systems. Try different Figure Renderers (particularly openGL) to get the desired behavior.

Also, unix users may experience problems if the renderer is not set to "opengl software". This parameter cannot be set at runtime, but can be set in startup.m.

Patchline is useful if you want to create a transparent line or a transparent plot.


Brett Shoelson (2023). Patchline (, MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
Windows macOS Linux
Help CenterMATLAB Answers 中查找有关 Polygons 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明

Fixed a minor bug if varargin is empty.

Simply modified the description. No code changes.

Updated license

Improved the rice.png example, modified the description slightly.

Updated description, examples.