How to display values on the Sobol index plot automatically on top of the bars without using annotate or text function? I need to display the plot like the one attached here
1 view (last 30 days)
Show older comments
I have obtained the plot for Sobol index using Global sensitivity analysis tool in matlab. Now in order to get the value of Sobol index clearly, i want the index value to be displayed on the top of the bar 1 and bar 2 as shown in the attached file for example. Is there any automatic way to do the same? I have gone through multiple documents, but everywhere the use of 'text' or 'annotate' is suggested, which is not my requirement. Any help is highly appreciable.
1 Comment
Shivam
on 13 Oct 2023
Hi,
Why do you not want to use 'text' and 'annotate' functions to help me identify the root cause issue in your workflow?
Answers (1)
Shivam
on 13 Oct 2023
Hi Darshna,
I understand that you want to label the bars of the plot without using the 'text' and 'annotate' functions.
You can use the 'barlabel' function to label the bars. You can download the 'barlabel.m' file through the following file-exchange link and keep it in the working directory. This resource should provide valuable insights on how to proceed with it.
I hope it helps to resolve your query.
0 Comments
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!