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

36 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by