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

37 vues (au cours des 30 derniers jours)
Ni Made Ayu Sinta Dewi
Ni Made Ayu Sinta Dewi le 4 Juil 2021
Commenté : Yazan le 6 Juil 2021
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!

Réponse acceptée

Yazan
Yazan le 4 Juil 2021
Use '%%' to write the '%' symbol:
fprintf('%%\n');
  6 commentaires
Ni Made Ayu Sinta Dewi
Ni Made Ayu Sinta Dewi le 6 Juil 2021
Thank you anyway!
Yazan
Yazan le 6 Juil 2021
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by