Multiple subplots having same legend
9 次查看(过去 30 天)
显示 更早的评论
- I have 3 subplots in the format (3,1,1),(3,1,2),(3,1,3) and I want to add a common legend on top of these plots. How do I do that?
- How to add a title where I have a string and 3 numeric value I would like to take as input. It prints multiple times with my current code
A = 25
B = 0.02
C = 0.09
D = plaintext(E)% E might contain _ values
title(sprintf('D: %g A=%.2f, B=%.3f, C=%.3f',plaintext(E),A,B,C))
function s = plaintext( s )
s = regexprep( s, '[\\\^\_]','\\$0');
end
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!