How to make "facets" larger on a figure with faceted shading?

3 ビュー (過去 30 日間)
Staxostax
Staxostax 2015 年 7 月 22 日
コメント済み: Staxostax 2015 年 7 月 27 日
Hello all,
I'm currently working on this guy:
which uses a faceted shading. My question is whether there is a way to make the squares bigger, say 10 cm each?
Sorry if that's a dumb question, I'm relatively new to MatLab.
Thanks :)

採用された回答

Sruthi Ayloo
Sruthi Ayloo 2015 年 7 月 24 日
編集済み: Sruthi Ayloo 2015 年 7 月 24 日
Hi,
From your question, I understand that you want to make the square meshes on the cube larger in size (10cm).
There are 2 ways to go about this:
1.If you make the plotting data less dense i.e plot the cube for every 10cm, you can see the square mesh for every 10 cm. But this would affect the shading of the cube.
Taking the following example from Interpolating Gridded Data :
If the plotting data is made less dense, the following would be observed:
More Dense data plot
Less Dense Data Plot
2. If you do not want the shading to be affected, you can use the following command to set the shading color property to “interp”
>> shading interp
This property varies the color in each line segment and face by interpolating the colormap index or true color value across the line or face. The output of this command would be:
Then, you can explicitly draw the square meshes at every location you want.
Hope this helps.
  1 件のコメント
Staxostax
Staxostax 2015 年 7 月 27 日
Yep, that solved my problem. Thank you so much!

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

その他の回答 (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