plotting poly shape with multiple regions and no holes plots some regions as holes

3 ビュー (過去 30 日間)
Robert
Robert 2022 年 2 月 14 日
回答済み: Dinesh 2024 年 2 月 1 日
I converted some voronoi cells into regions in polyshape using polyshape and addboundary with the 'Simplify' == false option. When I plot the resulting polyshape that contains 38 regions and no holes, the resulting plot does not shade some of the cells making it look like there are holes. However, if I plot each region individually, it plots correctly, as shown by plotting region 9 in second figure. (This is on Intel Macbook Pro). Is this a bug?
  1 件のコメント
Karan Singh
Karan Singh 2024 年 1 月 31 日
Hi Robert, can you provide some code for me to analyse?
Thanks!

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

回答 (1 件)

Dinesh
Dinesh 2024 年 2 月 1 日
Hi Robert,
The issue you're experiencing with the plot of polyshape regions not shading correctly may not necessarily be a bug, but rather a rendering or display issue. It can occur due to the complexity of the combined polyshape when plotting all 38 regions at once. To address this, you can try increasing the display resolution or adjusting the plot settings to improve the rendering of the combined polyshape. Additionally, make sure your MATLAB and graphics drivers are up-to-date, as updates can sometimes resolve rendering issues.
If you are still facing this issue, please share the code so that I can analyze it.

カテゴリ

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

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by