position of legend contour plot
1 回表示 (過去 30 日間)
古いコメントを表示
I have a contour plot obtained via the function "contour", and it places the legend inside the figure. For regular plots there is this additional option to specify the location of the legend, however it does not seem to exist for the contour function. Is there anyway I can move it outside of the figure?
0 件のコメント
採用された回答
Star Strider
2015 年 3 月 7 日
編集済み: Star Strider
2015 年 3 月 7 日
Use one of the ‘...outside’ 'Location' options:
M = magic(10);
figure(1)
contour(M)
legend('Data','Location','northeastoutside')
2 件のコメント
Star Strider
2015 年 3 月 7 日
There are version differences, so the exact syntax can vary. This works with R2014b.
その他の回答 (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!