Adding a color bar to an existing plot.
1 view (last 30 days)
Show older comments
My code generates the figure below; I wish to add a colour bar that indicates the variation in stress of the deflected shape. I have the values for the stress stored in an array for each member, I wish to change the colour of the plotted members (blue) to correspond to that of the colour bar variation.
The stored data that I believe would be relevant is as follows:
- Coordinates of each node (x,y,z): [3 x 1049]
- Connectivity of nodes to form members:[2 x 4888]
- Shear stress within each member: [1 x 4888]
If anybody could point me in the right direction it would be very much appreciated. Thus far I'm finding it tricky to assign the correct values of stress to the color bar whilst also plotting it in the correction position.
Sam!
0 Comments
Answers (0)
See Also
Categories
Find more on Stress and Strain in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!