How to have 2D bar on side of 3D plot?

3 次查看(过去 30 天)
I have a 3D plot that contains a mesh that I update iteratively to create an animation.
Is there a way I can add a 2D bar to the side of the 3D figure similiar to how a colorbar looks, but instead of color data, I want to display one of my parameters that changes over time.
The final animation would show the mesh changing shape and a line of the 2D bar moving up and down depending on the value of a parameter.

回答(1 个)

Star Strider
Star Strider 2021-2-18
See if subplot or tiledlayout (introduced in R2019b) will do what you want. That is likely the closest it’s possible to get.

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by