How to increase text size for asterisk for significant data
Show older comments
I am using the function sigstar, which helps make significance bars for data. An example of the code is:
R=randn(30,2);
R(:,1)=R(:,1)+3;
boxplot(R)
set(gca,'XTick',1:2,'XTickLabel',{'A','B'})
H=sigstar({{'A','B'}},0.01);
ylim([-3,6.5])
set(H,'color','r')
I want to increase the size of the asterisks that form on top of the bars. Does anyone know how to do this?

Attached above is an example of the bar graph I made.
I have tried the following code and here is the error:
>> set(H,'color','r','LineWidth',1,'TextSize',12)
Error using set
Unrecognized property TextSize for class Line.
Accepted Answer
More Answers (1)
Aniketh
on 10 Jul 2023
0 votes
The correct parameter for matlab plots is 'FontSize'
1 Comment
Pushti Shah
on 10 Jul 2023
Categories
Find more on Descriptive Statistics and Visualization 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!