[Scilab-users] ticks labels with coma instead of dot for decimal separator

sgougeon at free.fr sgougeon at free.fr
Tue May 17 15:35:14 CEST 2016


>De: "grivet"
>Envoyé: Mardi 17 Mai 2016 11:57:32
>Objet: Re: [Scilab-users] How to find the number of polylines automatically
>
>Hello,
>Is it possible, within Scilab 5.2, to display tics_labels in European 
>format, i.e. with commas instead of points as
>decimal separators ?

Hello,

As far as i know, gca().ticks_format does not allow to change the decimal separator.
However, you can post-process default labels with strsubst():

x = linspace(0,2,100);
plot(x, sin(x))
ax = gca();
ax.x_ticks.labels = strsubst(ax.x_ticks.labels,".",",");
ax.y_ticks.labels = strsubst(ax.y_ticks.labels,".",",");
ax.font_size = 3;

HTH
Samuel Gougeon



More information about the users mailing list