Heatmap title - Interpreter (AppDesigner)

4 visualizaciones (últimos 30 días)
Jason
Jason el 18 de Nov. de 2020
Respondida: Benjamin Kraus el 20 de Sept. de 2023
Hello, I don't seem to be able to allow underscores in the title of heatmaps (Im using filenams that have underscores in them)
h1.Title = file;
set(h1,'Interpreter','tex');
I have read post's saying that it was not possible but they were dated 2017...I was wondering if was now possible
Thanks
Jason

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 18 de Nov. de 2020
It still does not support Interpreter. The workaround is to escape the underscore character
h1.Title = strrep(file, '_', '\_')
  2 comentarios
Jason
Jason el 18 de Nov. de 2020
Perfect, thankyou
Ameer Hamza
Ameer Hamza el 18 de Nov. de 2020
I am glad to be of help!

Iniciar sesión para comentar.

Más respuestas (1)

Benjamin Kraus
Benjamin Kraus el 20 de Sept. de 2023
Starting in MATLAB R2023b, the HeatmapChart now has an Interpreter property.
h1 = heatmap(magic(4));
h1.Title = 'file_name';
h1.Interpreter = 'none';

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by