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

23 visualizaciones (últimos 30 días)
Ni Made Ayu Sinta Dewi
Ni Made Ayu Sinta Dewi el 4 de Jul. de 2021
Comentada: Yazan el 6 de Jul. de 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!

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Contour Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by