How to make Binscatter Plot transparent over Contour Lines?

1 回表示 (過去 30 日間)
Syed Muhammad Asad Raza
Syed Muhammad Asad Raza 2021 年 6 月 2 日
編集済み: Syed Muhammad Asad Raza 2021 年 6 月 2 日
I want make the Blue Contour Lines to appear on the Binscatter plot, with some amount of Transparency. These blues should be visible on the Yellow and Red boxes but not fully blue, a lightened version.
This is the relevant code:
h = binscatter(nplot,tqplot)

採用された回答

Walter Roberson
Walter Roberson 2021 年 6 月 2 日
h.FaceAlpha = 0.7; %or other transparency level, 0 being fully transparent
There are also approaches involving moving the contour plot to the top of the graphic hierarchy and then setting alpha on the contour lines. There is no documented method of setting the alpha for contour lines, but it is possible; undocumentedmatlab shows how to do it.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by