[Scilab-users] Sprintf and Italic font.
Dang Ngoc Chan, Christophe
Christophe.Dang at sidel.com
Mon Mar 18 09:12:31 CET 2019
Hello Marcus,
> De : Marcus Vinicius Pereira de Souza
> Envoyé : lundi 18 mars 2019 01:56
>
> I am generating a graphic
> and would like some information in the title to be in italics.
> […]
> title(sprintf('y(t) = -%0.2f exp(-0.5t)\ + %0.2f cos(4t)\ + %0.2f sin(4t) ',kp1,kp1,kp2))
The online doc tells me that sprintf() is obsolete
https://help.scilab.org/docs/6.0.2/en_US/msprintf.html
Apart from this, when I want to make some text layout, I usually use the LaTeX feature.
How don't know how it mixes with (m)sprint but maybe you could try something like
title("$" + msprintf(…) + "$")
(I did not try so I don't know if it works).
HTH,
regards
--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
More information about the users
mailing list