Borrar filtros
Borrar filtros

Is it possible to put xlabel text in two rows but with different font size?

24 visualizaciones (últimos 30 días)
Is it possible to put xlabel text in two rows but with different font size?

Respuesta aceptada

Jan
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)'})

Más respuestas (1)

Stalin Samuel
Stalin Samuel el 28 de Oct. de 2015
  1 comentario
Praveen Choudhary
Praveen Choudhary el 4 de Oct. de 2019
newline = char(10);
ylabel(['xyz and',newline,'xyz '],'FontName','Times New Roman','FontSize',12)

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by