maketransparent

バージョン 1.10.0.0 (193 KB) 作成者: Robert
Sets opacity of axes children
ダウンロード: 180
更新 2016/9/6

MAKETRANSPARENT(h,alpha) sets the transparency of the objects referenced
by h (or the children if the object is an Axes) to alpha.
Inputs
h: an axes handle (does all children) or specific line handle(s)
alpha: the opacity in [0,1] or [] (see below).
Sets the line and marker face opacity and add listener to reset them
in case they are redrawn automatically by MATLAB.
Use alpha = [] to remove the listeners. Note that this will not
revert the transparency automatically.
Example:
x = linspace(0,100,1000);
y1 = sin(x/10)+randn(size(x))/2;
y2 = sin(x/10);
h = plot(x,y1,'o',x,y2,'-');
set(h(1),'MarkerFaceColor',get(h(1),'Color'),'MarkerEdgeColor','none')
set(h(2),'LineWidth',8)
maketransparent(h,0.5)
Requires R2014b or newer (HG2)
Inspired by Yair Altman's UndocumentedMatlab.com

引用

Robert (2024). maketransparent (https://github.com/raaperrotta/maketransparent), GitHub. 取得済み .

MATLAB リリースの互換性
作成: R2016a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersGraphics Object Properties についてさらに検索

Community Treasure Hunt

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

Start Hunting!

GitHub の既定のブランチを使用するバージョンはダウンロードできません

バージョン 公開済み リリース ノート
1.10.0.0

Connected to github

1.1.0.0

Added image

1.0.0.0

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。