How to make "facets" larger on a figure with faceted shading?
3 次查看(过去 30 天)
显示 更早的评论
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 :)
0 个评论
采纳的回答
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.
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!