Legend for Contour Plots

Adds a curve description legend to a contour plot

現在この提出コンテンツをフォロー中です。

Adds a curve description legend to a contour plot, this is preferable when putting labels on the contour curves clutter up the plot. The default description is the level, but you may optionally supply custom descriptions. You might also include descriptions of other plotted objects in the legend.
Example,
[X, Y, Z] = peaks(512);
figure
[~, hCont] = contour(X, Y, Z, 'LineWidth', 1.5);
contourLegend(hCont)
figure
[~, hCont] = contourf(X, Y, Z);
contourLegend(hCont)

引用

Patrik Forssén (2026). Legend for Contour Plots (https://jp.mathworks.com/matlabcentral/fileexchange/115120-legend-for-contour-plots), MATLAB Central File Exchange. に取得済み.

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.1.0

Removed "type" input and used hidden property instead

1.0.0