How to fill only half of the rectangle with any color?

3 ビュー (過去 30 日間)
Chandra Kishore Danduri
Chandra Kishore Danduri 2018 年 1 月 30 日
回答済み: Harish Ramachandran 2018 年 2 月 2 日
How to fill only half of the rectangle with any color?
  2 件のコメント
Adam
Adam 2018 年 1 月 30 日
Which rectangle?
Matt J
Matt J 2018 年 1 月 30 日
And which half?

サインインしてコメントする。

採用された回答

Harish Ramachandran
Harish Ramachandran 2018 年 2 月 2 日
Something which I would try is to fill the entire rectangle A.
Modify the rectangle A's position properties to be halved (depending on which half). Now create a second rectangle B which is transparent (no fill) to start from the boundary of rectangle A.
Now you'll have two rectangles. However, it gives an illusion that it is a single rectangle in your application / use case.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by