フィルターのクリア

Patch color and transparency problem

3 ビュー (過去 30 日間)
Churlzu Lim
Churlzu Lim 2017 年 5 月 29 日
回答済み: Abel Babu 2017 年 6 月 1 日
I used 2014a to plot 3d boxes using patch. The same code on 2017a (perhaps 2014b and newer versions too) shows a different plot.
2014a:
2017a:
Not only the colors are different, but also the left box is not even transparent. I would appreciate your answer.

回答 (1 件)

Abel Babu
Abel Babu 2017 年 6 月 1 日
Hi Churlzu,
A lot changed from R2014a to R2014b (and on onward), primarily in terms of the graphics. A list of the major changes can be found here: https://in.mathworks.com/help/matlab/graphics-changes-in-r2014b.html
To the specific queries that you raised:
  • Change of Color
The change of color is an expected result due to the change in the way graphics is handled. This has been captured in detail in this link: https://in.mathworks.com/help/matlab/graphics_transition/why-are-plot-lines-different-colors.html
  • Issue in Transparency
I think this MATLAB answer addresses the issue from the backdrop of changes in Graphics from R2014a to R2014b: https://in.mathworks.com/matlabcentral/answers/168264-how-do-i-set-transparency-of-area-plot-in-r2014b
Abel

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by