How to make "facets" larger on a figure with faceted shading?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Staxostax
el 22 de Jul. de 2015
Comentada: Staxostax
el 27 de Jul. de 2015
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 comentarios
Respuesta aceptada
Sruthi Ayloo
el 24 de Jul. de 2015
Editada: Sruthi Ayloo
el 24 de Jul. de 2015
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Colormaps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!