last legend on a subplot not plotting
10 次查看(过去 30 天)
显示 更早的评论
Has anyone had this issue: when doing a figure with subplots and legends in each one, the last legend does not appear? It doesn't matter if there are 2 subplots or 10 and I don't recall if this was always the case or a new problem. I'm running R2012a. I've attached an image of what I'm talking about - in my code, legend is there for subplot(313) just like the other two and when I run that segment of code alone (not as a subplot), the legend appears. Any suggestions about how to fix this? Thanks!
0 个评论
采纳的回答
Star Strider
2015-4-22
You didn’t post your code, but legend can take the handle of the particular axes object as its first argument. See if the technique in Specify Axes for Legend solves your problem.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!