[Scilab-users] {EXT} do not manage to show text labels along the x-axis

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Wed Oct 4 11:44:36 CEST 2017


Hello,

> De : Heinz Nabielek
> Envoyé : mercredi 4 octobre 2017 11:16
>
> I do not manage to show text labels along the x-axis.

Please try:

// **********

plot(1:np, p, "-d");

h=gca();

foo = h.x_ticks;

foo(2) = (1:np)';

foo(3) = blood';

h.x_ticks=foo;

// **********

Explanation:
gca() retrieves the handle tha point to the axes,
you can then modify the x_ticks data
but the size of the second and third parts must always be consistent,
the reason why you have to use a foo variable.

HTH

--
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