MATLAB Answers

Add percentage symbol (%) on contour lines (2019a)

조회 수: 36(최근 30일)
Ni Made Ayu Sinta Dewi
Ni Made Ayu Sinta Dewi 2021년 7월 4일
댓글: Yazan 2021년 7월 6일
Help! I want to add the percentage symbol (%) after the elevation label (ex: 1%, 3%, 5%) in a contour plot (photo attached). Is there any way to do this? I have read about clabel, but I am not sure it can do this. Thank you in advance!

채택된 답변

Yazan
Yazan 2021년 7월 4일
Use '%%' to write the '%' symbol:
fprintf('%%\n');
  댓글 수: 6
Yazan
Yazan 2021년 7월 6일
Overall, I believe the best practice in your case is to just divide the levels by 100, as they are percentages, and keep the default level visualization by Matlab.

댓글을 달려면 로그인하십시오.

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by