How to set specific contour line color/style using contourf?

14 ビュー (過去 30 日間)
Adewale Odukomaiya
Adewale Odukomaiya 2020 年 5 月 15 日
コメント済み: Adewale Odukomaiya 2020 年 5 月 17 日
Is it possible to set the line color of just one specific contour line when using contourf? In the attached figure? I would like to highlight the 150 contour by making it a different color, thickness, and maybe line type.

採用された回答

darova
darova 2020 年 5 月 16 日
Use contour again
hold on
contour(x,y,z,[150 150],'y','linew',2)
hold off
  4 件のコメント
darova
darova 2020 年 5 月 16 日
Create contour for levels you want
contour(x,y,z,[0 50 100 200 250 300],'showtext','on')
Create contour for '150' level separately with label
hold on
conttour(x,y,z,[150 150],'showtext','on')
hold off
Adewale Odukomaiya
Adewale Odukomaiya 2020 年 5 月 17 日
Thanks!

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by