last legend on a subplot not plotting

9 ビュー (過去 30 日間)
Doug G
Doug G 2015 年 4 月 22 日
コメント済み: Star Strider 2015 年 7 月 3 日
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!

採用された回答

Star Strider
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.
  4 件のコメント
Doug G
Doug G 2015 年 7 月 3 日
ah, that helps! Thanks!
Star Strider
Star Strider 2015 年 7 月 3 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by