Using Greek characters in heatmap

1 visualización (últimos 30 días)
Muhammad Hamza Khalid
Muhammad Hamza Khalid el 30 de Abr. de 2019
Comentada: Muhammad Hamza Khalid el 1 de Mayo de 2019
I am using heatmap and want to display x-axis in expressions of pi instead of numbers. Is there a way to do this. I tried xticklabels but it does not work with heatmap.
h = heatmap(phipt,ept,e1);
My x-axis
h.XVariable = {'0','\pi/4','\pi/2','3\pi/4','\pi'}

Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Abr. de 2019
h.XDisplayLabels = {'0', '\pi/4', '\pi/2', '3\pi/4', '\pi'};
  2 comentarios
Walter Roberson
Walter Roberson el 30 de Abr. de 2019
Before R2019a, you would also do
h.NodeChildren(3).XAxis.TickLabelInterpreter = 'tex';
Muhammad Hamza Khalid
Muhammad Hamza Khalid el 1 de Mayo de 2019
Thank You!
This worked.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Distribution 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