Is it possible to put xlabel text in two rows but with different font size?
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mr M.
el 28 de Oct. de 2015
Comentada: Praveen Choudhary
el 4 de Oct. de 2019
Is it possible to put xlabel text in two rows but with different font size?
0 comentarios
Respuesta aceptada
Jan
el 28 de Oct. de 2015
The documentation of xlabel explains with an example, how a multi-line output works. Did you read it? Then the only problem is the font size, which is explained there also:
plot((1:10).^2)
xlabel({'\fontsize{15}Population','\fontsize{20}(in thousands)'})
0 comentarios
Más respuestas (1)
Stalin Samuel
el 28 de Oct. de 2015
1 comentario
Praveen Choudhary
el 4 de Oct. de 2019
newline = char(10);
ylabel(['xyz and',newline,'xyz '],'FontName','Times New Roman','FontSize',12)
Ver también
Categorías
Más información sobre Axis Labels 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!